Package org.codehaus.janino.Java

Examples of org.codehaus.janino.Java.TypeBodyDeclaration


        // For classes that enclose surrounding scopes, trawl their initializers looking for synthetic fields.
        if (icd instanceof AnonymousClassDeclaration || icd instanceof LocalClassDeclaration) {
            Java.ClassDeclaration cd = (Java.ClassDeclaration) icd;
            for (int i = 0; i < cd.variableDeclaratorsAndInitializers.size(); ++i) {
                TypeBodyDeclaration tbd = (TypeBodyDeclaration) cd.variableDeclaratorsAndInitializers.get(i);
                if (tbd instanceof FieldDeclaration) {
                    FieldDeclaration fd = (FieldDeclaration) tbd;
                    for (int j = 0; j < fd.variableDeclarators.length; ++j) {
                        VariableDeclarator vd = fd.variableDeclarators[j];
                        if (vd.optionalInitializer != null) {
View Full Code Here

TOP

Related Classes of org.codehaus.janino.Java.TypeBodyDeclaration

Copyright © 2018 www.massapicom. 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.