Examples of enclClass()


Examples of com.sun.tools.javac.code.Symbol.enclClass()

                    if (!newArg.equals(arg)) {
                        init.args = rs.injectBefore(arg, init.args, true, newArg);
                    }
                }
            }
            final boolean accessible = isAccessible(initSym, initSym.enclClass(), cut, n);
            ifExp.type = rs.getType(initSym);
            if (!accessible) {
                reflect(initSym, cut, n, init.args, encBlock);
                ifExp = getReflectedAccess(initSym, cut, null, init.args, n);
                constructorInjected = true;
View Full Code Here

Examples of com.sun.tools.javac.code.Symbol.enclClass()

        return (JCMethodDecl) getTree((Element) method);
    }

    public JCTree getTree(Element element) {
        Symbol symbol = (Symbol) element;
        TypeSymbol enclosing = symbol.enclClass();
        Env<AttrContext> env = enter.getEnv(enclosing);
        if (env == null)
            return null;
        JCClassDecl classNode = env.enclClass;
        if (classNode != null) {
View Full Code Here

Examples of com.sun.tools.javac.code.Symbol.enclClass()

            VarSymbol vsym = (ref.paramTypes != null) ? null : findField(sym, memberName);
            // prefer a field over a method with no parameters
            if (vsym != null &&
                    (msym == null ||
                        types.isSubtypeUnchecked(vsym.enclClass().asType(), msym.enclClass().asType()))) {
                return vsym;
            } else {
                return msym;
            }
        } catch (Abort e) { // may be thrown by Check.completionError in case of bad class file
View Full Code Here

Examples of com.sun.tools.javac.code.Symbol.enclClass()

            Env<AttrContext> lambdaEnv;
            Symbol owner = env.info.scope.owner;
            if (owner.kind == VAR && owner.owner.kind == TYP) {
                //field initializer
                lambdaEnv = env.dup(that, env.info.dup(env.info.scope.dupUnshared()));
                ClassSymbol enclClass = owner.enclClass();
                /* if the field isn't static, then we can get the first constructor
                 * and use it as the owner of the environment. This is what
                 * LTM code is doing to look for type annotations so we are fine.
                 */
                if ((owner.flags() & STATIC) == 0) {
View Full Code Here

Examples of com.sun.tools.javac.code.Symbol.enclClass()

                if (!newArg.equals(arg)) {
                    init.args = rs.injectBefore(arg, init.args, true, cast((JCMethodInvocation) newArg, argType));
                }
            }
        }
        final boolean accessible = isAccessible(initSym, initSym.enclClass(), cut, n);
        init.type = rs.getType(initSym);
        if (accessible) {
            return init;
        }
View Full Code Here

Examples of com.sun.tools.javac.code.Symbol.enclClass()

        return (JCMethodDecl) getTree((Element) method);
    }
   
    public JCTree getTree(Element element) {
        Symbol symbol = (Symbol) element;
        TypeSymbol enclosing = symbol.enclClass();
        Env<AttrContext> env = enter.getEnv(enclosing);
        if (env == null)
            return null;
        JCClassDecl classNode = env.enclClass;
        if (classNode != null) {
View Full Code Here

Examples of com.sun.tools.javac.code.Symbol.enclClass()

        return (JCMethodDecl) getTree((Element) method);
    }

    public JCTree getTree(Element element) {
        Symbol symbol = (Symbol) element;
        TypeSymbol enclosing = symbol.enclClass();
        Env<AttrContext> env = enter.getEnv(enclosing);
        if (env == null)
            return null;
        JCClassDecl classNode = env.enclClass;
        if (classNode != null) {
View Full Code Here

Examples of com.sun.tools.javac.code.Symbol.enclClass()

        return (JCMethodDecl) getTree((Element) method);
    }

    public JCTree getTree(Element element) {
        Symbol symbol = (Symbol) element;
        TypeSymbol enclosing = symbol.enclClass();
        Env<AttrContext> env = enter.getEnv(enclosing);
        if (env == null)
            return null;
        JCClassDecl classNode = env.enclClass;
        if (classNode != null) {
View Full Code Here

Examples of com.sun.tools.javac.code.Symbol.enclClass()

        return (JCMethodDecl) getTree((Element) method);
    }
   
    public JCTree getTree(Element element) {
        Symbol symbol = (Symbol) element;
        TypeSymbol enclosing = symbol.enclClass();
        Env<AttrContext> env = enter.getEnv(enclosing);
        if (env == null)
            return null;
        JCClassDecl classNode = env.enclClass;
        if (classNode != null) {
View Full Code Here

Examples of com.sun.tools.javac.code.Symbol.enclClass()

                    if (!newArg.equals(arg)) {
                        init.args = rs.injectBefore(arg, init.args, true, newArg);
                    }
                }
            }
            final boolean accessible = isAccessible(initSym, initSym.enclClass(), cut, stmt);
            ifExp.type = rs.getType(initSym);
            if (!accessible) {
                encBlock.stats = reflect(initSym, cut, encBlock.stats, stmt, init.args);
                ifExp = getReflectedAccess(initSym, cut, null, init.args, stmt);
                constructorInjected = true;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.