DeferredDiagnosticHandler handler = new DeferredDiagnosticHandler(log); try { return resolve.resolveInternalMethod(
/** Look up a method in a given scope. */ private MethodSymbol lookupMethod(DiagnosticPosition pos, Name name, Type qual, List<Type> args) { return rs.resolveInternalMethod(pos, attrEnv, qual, name, args, null); }
/** Look up a method in a given scope. */ private MethodSymbol lookupMethod(DiagnosticPosition pos, Name name, Type qual, List<Type> args) { return rs.resolveInternalMethod(pos, attrEnv, qual, name, args, null); }
/** Look up a method in a given scope. */ private MethodSymbol lookupMethod(DiagnosticPosition pos, Name name, Type qual, List<Type> args) { return rs.resolveInternalMethod(pos, attrEnv, qual, name, args, List.<Type>nil()); }
/** Look up a method in a given scope. */ private MethodSymbol lookupMethod(DiagnosticPosition pos, Name name, Type qual, List<Type> args) { return rs.resolveInternalMethod(pos, attrEnv, qual, name, args, List.<Type>nil()); }
public Symbol.MethodSymbol lookupMethod( final Element e, final DiagnosticPosition pos, final Name name, final Type qual, final List<Type> argTypes ) { return rs.resolveInternalMethod( pos, getEnv( e, trees ), qual, name, argTypes, List.<Type>nil() ); }
Symbol getStringBufferAppend(JCTree tree, Type t) { assert t.constValue() == null; Symbol method = stringBufferAppend.get(t); if (method == null) { method = rs.resolveInternalMethod(tree.pos(), attrEnv, stringBufferType, names.append, List.of(t), null); stringBufferAppend.put(t, method); } return method; }
Symbol getStringBufferAppend(JCTree tree, Type t) { assert t.constValue() == null; Symbol method = stringBufferAppend.get(t); if (method == null) { method = rs.resolveInternalMethod(tree.pos(), attrEnv, stringBufferType, names.append, List.of(t), null); stringBufferAppend.put(t, method); } return method; }
Symbol getStringBufferAppend(JCTree tree, Type t) { Assert.checkNull(t.constValue()); Symbol method = stringBufferAppend.get(t); if (method == null) { method = rs.resolveInternalMethod(tree.pos(), attrEnv, stringBufferType, names.append, List.of(t), null); stringBufferAppend.put(t, method); } return method; }
Symbol getStringBufferAppend(JCTree tree, Type t) { Assert.checkNull(t.constValue()); Symbol method = stringBufferAppend.get(t); if (method == null) { method = rs.resolveInternalMethod(tree.pos(), attrEnv, stringBufferType, names.append, List.of(t), null); stringBufferAppend.put(t, method); } return method; }
private static Symbol.MethodSymbol resolveMethod( JCDiagnostic.DiagnosticPosition pos, Context ctx, JCTree.JCCompilationUnit compUnit, Name name, Type qual, List<Type> args ) { Resolve rs = Resolve.instance( ctx ); AttrContext attrContext = new AttrContext(); Env<AttrContext> env = new AttrContextEnv( pos.getTree(), attrContext ); env.toplevel = compUnit; return rs.resolveInternalMethod( pos, env, qual, name, args, null ); } }
private static Symbol.MethodSymbol resolveMethod( JCDiagnostic.DiagnosticPosition pos, Context ctx, JCTree.JCCompilationUnit compUnit, Name name, Type qual, List<Type> args ) { Resolve rs = Resolve.instance( ctx ); AttrContext attrContext = new AttrContext(); Env<AttrContext> env = new AttrContextEnv( pos.getTree(), attrContext ); env.toplevel = compUnit; return rs.resolveInternalMethod( pos, env, qual, name, args, null ); } }
/** Generate code to call a non-private method or constructor. * @param pos Position to be used for error reporting. * @param site The type of which the method is a member. * @param name The method's name. * @param argtypes The method's argument types. * @param isStatic A flag that indicates whether we call a * static or instance method. */ void callMethod(DiagnosticPosition pos, Type site, Name name, List<Type> argtypes, boolean isStatic) { Symbol msym = rs. resolveInternalMethod(pos, attrEnv, site, name, argtypes, null); if (isStatic) items.makeStaticItem(msym).invoke(); else items.makeMemberItem(msym, name == names.init).invoke(); }
/** Generate code to call a non-private method or constructor. * @param pos Position to be used for error reporting. * @param site The type of which the method is a member. * @param name The method's name. * @param argtypes The method's argument types. * @param isStatic A flag that indicates whether we call a * static or instance method. */ void callMethod(DiagnosticPosition pos, Type site, Name name, List<Type> argtypes, boolean isStatic) { Symbol msym = rs. resolveInternalMethod(pos, attrEnv, site, name, argtypes, null); if (isStatic) items.makeStaticItem(msym).invoke(); else items.makeMemberItem(msym, name == names.init).invoke(); }
/** Generate code to call a non-private method or constructor. * @param pos Position to be used for error reporting. * @param site The type of which the method is a member. * @param name The method's name. * @param argtypes The method's argument types. * @param isStatic A flag that indicates whether we call a * static or instance method. */ void callMethod(DiagnosticPosition pos, Type site, Name name, List<Type> argtypes, boolean isStatic) { Symbol msym = rs. resolveInternalMethod(pos, attrEnv, site, name, argtypes, null); if (isStatic) items.makeStaticItem(msym).invoke(); else items.makeMemberItem(msym, name == names.init).invoke(); }
/** Generate code to call a non-private method or constructor. * @param pos Position to be used for error reporting. * @param site The type of which the method is a member. * @param name The method's name. * @param argtypes The method's argument types. * @param isStatic A flag that indicates whether we call a * static or instance method. */ void callMethod(DiagnosticPosition pos, Type site, Name name, List<Type> argtypes, boolean isStatic) { Symbol msym = rs. resolveInternalMethod(pos, attrEnv, site, name, argtypes, null); if (isStatic) items.makeStaticItem(msym).invoke(); else items.makeMemberItem(msym, name == names.init).invoke(); }
public void resolve( ClassReader reader, Names names, Resolve rs, Types types, Env<AttrContext> env ) { if( sym == null ) { // Re-resolve names etc since the context is not the same as during the annotation phase MethodSymbol sym_ = (MethodSymbol) elem; MethodType type = (MethodType) sym_.type; String name = sym_.name.toString(); // correct ? ClassSymbol recvsym = resolveClassSym( reader, names, sym_.owner.type ); res = getType( types, reader, names, type.restype ); arg0 = getType( types, reader, names, type.argtypes.get( 0 ) ); arg1 = getType( types, reader, names, type.argtypes.get( 1 ) ); mt = new MethodType( List.of( arg0, arg1 ), res, List.<Type> nil(), recvsym ); Name methodName = names.fromString( name ); sym = rs.resolveInternalMethod( null, env, recvsym.type, methodName, List.of( arg0, arg1 ), null ); } }
DeferredDiagnosticHandler handler = new DeferredDiagnosticHandler(log); try { return resolve.resolveInternalMethod(
syms.methodTypeType).appendList(bsmStaticArgToTypes(staticArgs)); Symbol bsm = rs.resolveInternalMethod(pos, attrEnv, site, bsmName, bsm_staticArgs, List.<Type>nil());
syms.methodTypeType).appendList(bsmStaticArgToTypes(staticArgs)); Symbol bsm = rs.resolveInternalMethod(pos, attrEnv, site, bsmName, bsm_staticArgs, List.<Type>nil());