final boolean isSuperCall = elem != null && elem.getKind().isField() && elem.getSimpleName().contentEquals(SUPER_KEYWORD); final Scope scope = env.getScope(); if ((isThisCall || isSuperCall) && tu.isStaticContext(scope)) { return;
final TypeElement enclClass = scope.getEnclosingClass(); final boolean isStatic = enclClass == null ? false : (tu.isStaticContext(scope) || (env.getPath().getLeaf().getKind() == Tree.Kind.BLOCK && ((BlockTree) env.getPath().getLeaf()).isStatic())); ElementUtilities.ElementAcceptor acceptor = new ElementUtilities.ElementAcceptor() { @Override
final boolean isSuperCall = elem != null && elem.getKind().isField() && elem.getSimpleName().contentEquals(SUPER_KEYWORD); final Scope scope = env.getScope(); if ((isThisCall || isSuperCall) && tu.isStaticContext(scope)) { return;
final TypeElement enclClass = scope.getEnclosingClass(); final boolean isStatic = enclClass == null ? false : (tu.isStaticContext(scope) || (env.getPath().getLeaf().getKind() == Tree.Kind.BLOCK && ((BlockTree) env.getPath().getLeaf()).isStatic())); ElementUtilities.ElementAcceptor acceptor = new ElementUtilities.ElementAcceptor() { @Override
final TypeElement enclClass = scope.getEnclosingClass(); final boolean isStatic = enclClass == null ? false : (controller.getTreeUtilities().isStaticContext(scope) || (env.getPath().getLeaf().getKind() == Tree.Kind.BLOCK && ((BlockTree) env.getPath().getLeaf()).isStatic())); final Map<Name, ? extends Element> illegalForwardRefs = env.getForwardReferences(); final ExecutableElement method = scope.getEnclosingMethod();
final Trees trees = controller.getTrees(); final TypeElement enclClass = scope.getEnclosingClass(); final boolean isStatic = enclClass != null ? (tu.isStaticContext(scope) || (env.getPath().getLeaf().getKind() == Tree.Kind.BLOCK && ((BlockTree) env.getPath().getLeaf()).isStatic())) : false; final Map<Name, ? extends Element> illegalForwardRefs = env.getForwardReferences(); final ExecutableElement method = scope.getEnclosingMethod();
final Trees trs = controller.getTrees(); final TypeElement enclClass = scope.getEnclosingClass(); final boolean isStatic = enclClass != null ? (tu.isStaticContext(scope) || (env.getPath().getLeaf().getKind() == Tree.Kind.BLOCK && ((BlockTree) env.getPath().getLeaf()).isStatic())) : false; if (SUPER_KEYWORD.equals(name) && enclClass != null) { ElementUtilities.ElementAcceptor acceptor = new ElementUtilities.ElementAcceptor() {
final Trees trees = controller.getTrees(); final TypeElement enclClass = scope.getEnclosingClass(); final boolean isStatic = enclClass != null ? (tu.isStaticContext(scope) || (env.getPath().getLeaf().getKind() == Tree.Kind.BLOCK && ((BlockTree) env.getPath().getLeaf()).isStatic())) : false; ElementUtilities.ElementAcceptor acceptor = new ElementUtilities.ElementAcceptor() { @Override
final TypeElement enclClass = scope.getEnclosingClass(); final boolean enclStatic = enclClass != null && enclClass.getModifiers().contains(Modifier.STATIC); final boolean ctxStatic = enclClass != null && (tu.isStaticContext(scope) || (env.getPath().getLeaf().getKind() == Tree.Kind.BLOCK && ((BlockTree) env.getPath().getLeaf()).isStatic())); final Map<Name, ? extends Element> illegalForwardRefs = env.getForwardReferences(); final ExecutableElement method = scope.getEnclosingMethod() != null && scope.getEnclosingMethod().getEnclosingElement() == enclClass ? scope.getEnclosingMethod() : null;