Package com.strobel.decompiler.languages.java.ast

Examples of com.strobel.decompiler.languages.java.ast.VariableDeclarationStatement


    public final boolean matches(final INode other, final Match match) {
        if (other instanceof AstNode) {
            final INode lastInGroup = lastOrDefault(match.get(_referencedGroupName));

            if (lastInGroup instanceof VariableDeclarationStatement) {
                final VariableDeclarationStatement referenced = (VariableDeclarationStatement) lastInGroup;
                final AstNodeCollection<VariableInitializer> variables = referenced.getVariables();

                return variables.hasSingleElement() &&
                       matchString(
                           variables.firstOrNullObject().getName(),
                           ((AstNode) other).getChildByRole(Roles.IDENTIFIER).getName()
View Full Code Here


    public final boolean matches(final INode other, final Match match) {
        if (other instanceof AstNode) {
            final INode lastInGroup = lastOrDefault(match.get(_referencedGroupName));

            if (lastInGroup instanceof VariableDeclarationStatement) {
                final VariableDeclarationStatement referenced = (VariableDeclarationStatement) lastInGroup;
                final AstNodeCollection<VariableInitializer> variables = referenced.getVariables();

                return variables.hasSingleElement() &&
                       matchString(
                           variables.firstOrNullObject().getName(),
                           ((AstNode) other).getChildByRole(Roles.IDENTIFIER).getName()
View Full Code Here

TOP

Related Classes of com.strobel.decompiler.languages.java.ast.VariableDeclarationStatement

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.