< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/code/Types.java

Print this page

        

*** 1477,1486 **** --- 1477,1499 ---- } }; // </editor-fold> + public List<VarSymbol> recordVars(Type t) { + List<VarSymbol> vars = List.nil(); + while (!t.hasTag(NONE)) { + if (t.hasTag(CLASS)) { + for (Symbol s : t.tsym.members().getSymbols(s -> s.kind == VAR && (s.flags() & RECORD) != 0)) { + vars = vars.prepend((VarSymbol)s); + } + } + t = supertype(t); + } + return vars; + } + // <editor-fold defaultstate="collapsed" desc="Contains Type"> public boolean containedBy(Type t, Type s) { switch (t.getTag()) { case UNDETVAR: if (s.hasTag(WILDCARD)) {
*** 5175,5185 **** } } append('>'); } ! private void assembleSig(List<Type> types) { for (List<Type> ts = types; ts.nonEmpty(); ts = ts.tail) { assembleSig(ts.head); } } } --- 5188,5198 ---- } } append('>'); } ! public void assembleSig(List<Type> types) { for (List<Type> ts = types; ts.nonEmpty(); ts = ts.tail) { assembleSig(ts.head); } } }
< prev index next >