Search in sources :

Example 1 with VariableMirror

use of com.redhat.ceylon.model.loader.mirror.VariableMirror in project ceylon-compiler by ceylon.

the class JavacMethod method getParameters.

@Override
public List<VariableMirror> getParameters() {
    if (parameters == null) {
        com.sun.tools.javac.util.List<VarSymbol> params = methodSymbol.getParameters();
        List<VariableMirror> ret = new ArrayList<VariableMirror>(params.size());
        for (VarSymbol parameter : params) ret.add(new JavacVariable(parameter));
        parameters = Collections.unmodifiableList(ret);
    }
    return parameters;
}
Also used : VariableMirror(com.redhat.ceylon.model.loader.mirror.VariableMirror) ArrayList(java.util.ArrayList) VarSymbol(com.sun.tools.javac.code.Symbol.VarSymbol)

Aggregations

VariableMirror (com.redhat.ceylon.model.loader.mirror.VariableMirror)1 VarSymbol (com.sun.tools.javac.code.Symbol.VarSymbol)1 ArrayList (java.util.ArrayList)1