Lines Matching refs:sym

156         Symbol sym = (clazz == ClassSymbol.class)
161 if (sym == null)
162 sym = javaCompiler.resolveIdent(nameStr);
164 sym.complete();
166 return (sym.kind != Kinds.ERR &&
167 sym.exists() &&
168 clazz.isInstance(sym) &&
169 name.equals(sym.getQualifiedName()))
170 ? clazz.cast(sym)
218 Symbol sym = cast(Symbol.class, e);
239 sym.getAnnotationMirrors(),
317 private JCExpression scanForAssign(final MethodSymbol sym,
332 if (ident.sym == sym)
371 Symbol sym = cast(Symbol.class, e);
372 return (sym.flags() & Flags.DEPRECATED) != 0;
400 Symbol sym = cast(Symbol.class, element);
401 Scope scope = sym.members().dupUnshared();
402 List<Type> closure = types.closure(sym.asType());
411 Scope.Entry overrider = scope.lookup(e.sym.getSimpleName());
413 if (overrider.sym.kind == e.sym.kind
414 && (overrider.sym.flags() & Flags.SYNTHETIC) == 0)
416 if (overrider.sym.getKind() == ElementKind.METHOD
417 && overrides((ExecutableElement)overrider.sym, (ExecutableElement)e.sym, (TypeElement)type.asElement())) {
423 boolean derived = e.sym.getEnclosingElement() != scope.owner;
424 ElementKind kind = e.sym.getKind();
428 if (!derived || (!initializer && e.sym.isInheritedIn(scope.owner, types)))
429 scope.enter(e.sym);
441 Symbol sym = cast(Symbol.class, e);
442 List<Attribute.Compound> annos = sym.getAnnotationMirrors();
443 while (sym.getKind() == ElementKind.CLASS) {
444 Type sup = ((ClassSymbol) sym).getSuperclass();
449 sym = sup.tsym;
451 for (Attribute.Compound anno : sym.getAnnotationMirrors()) {
570 Symbol sym = cast(Symbol.class, e);
571 Env<AttrContext> enterEnv = getEnterEnv(sym);
574 JCTree tree = TreeInfo.declarationFor(sym, enterEnv.tree);
614 private Env<AttrContext> getEnterEnv(Symbol sym) {
615 // Get enclosing class of sym, or sym itself if it is a class
617 TypeSymbol ts = (sym.kind != Kinds.PCK)
618 ? sym.enclClass()
619 : (PackageSymbol) sym;