@Override public TypeMirror getReturnType() { if (returnType == null) { Type retType = methodSymbol.getReturnType(); if (retType != null) { returnType = new JavacType(retType); } } return returnType; }
@Override public List<VariableMirror> getParameters() { if (parameters == null) { com.redhat.ceylon.langtools.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; }
@Override public boolean isStaticInit() { return methodSymbol.getKind() == ElementKind.STATIC_INIT; }
@Override public boolean isConstructor() { return methodSymbol.isConstructor(); }
@Override public boolean isDefaultAccess() { return (methodSymbol.flags() & (Flags.PROTECTED | Flags.PUBLIC | Flags.PRIVATE)) == 0; }
@Override public boolean isProtected() { return (methodSymbol.flags() & Flags.PROTECTED) != 0; }
@Override public boolean isPublic() { return (methodSymbol.flags() & Flags.PUBLIC) != 0; }
@Override public boolean isStatic() { return methodSymbol.isStatic(); }
@Override public boolean isDefault() { return methodSymbol.getDefaultValue() != null; }
@Override public boolean isFinal() { return (methodSymbol.flags() & Flags.FINAL) != 0; }
@Override public boolean isAbstract() { return (methodSymbol.flags() & Flags.ABSTRACT) != 0; }
@Override public boolean isVariadic() { return methodSymbol.isVarArgs(); }