use of com.redhat.ceylon.model.loader.mirror.FieldMirror in project ceylon-compiler by ceylon.
the class JavacClass method getDirectFields.
@Override
public List<FieldMirror> getDirectFields() {
if (fields == null) {
List<FieldMirror> ret = new LinkedList<FieldMirror>();
for (Symbol sym : classSymbol.getEnclosedElements()) {
if (sym instanceof VarSymbol && (sym.flags() & Flags.PRIVATE) == 0) {
ret.add(new JavacField((VarSymbol) sym));
}
}
fields = Collections.unmodifiableList(ret);
}
return fields;
}
Aggregations