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

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


    }

    @Override
    public boolean matches(final INode other, final Match match) {
        if (other instanceof IdentifierExpression) {
            final IdentifierExpression identifier = (IdentifierExpression) other;
            final Variable variable = identifier.getUserData(Keys.VARIABLE);

            if (variable != null &&
                variable.isParameter() &&
                variable.getOriginalParameter().getPosition() == _parameterPosition) {
View Full Code Here


    }

    @Override
    public boolean matches(final INode other, final Match match) {
        if (other instanceof IdentifierExpression) {
            final IdentifierExpression identifier = (IdentifierExpression) other;

            if (_pattern.matcher(identifier.getIdentifier()).matches()) {
                match.add(_groupName, identifier);
                return true;
            }
        }
View Full Code Here

    }

    @Override
    public boolean matches(final INode other, final Match match) {
        if (other instanceof IdentifierExpression) {
            final IdentifierExpression identifier = (IdentifierExpression) other;
            final Variable variable = identifier.getUserData(Keys.VARIABLE);

            if (variable != null &&
                variable.isParameter() &&
                variable.getOriginalParameter().getPosition() == _parameterPosition) {
View Full Code Here

    }

    @Override
    public boolean matches(final INode other, final Match match) {
        if (other instanceof IdentifierExpression) {
            final IdentifierExpression identifier = (IdentifierExpression) other;

            if (_pattern.matcher(identifier.getIdentifier()).matches()) {
                match.add(_groupName, identifier);
                return true;
            }
        }
View Full Code Here

        for (final AstNode n : traversal) {
            if (!(n instanceof IdentifierExpression)) {
                continue;
            }

            final IdentifierExpression identifier = (IdentifierExpression) n;
            final UsageType usage = UsageClassifier.getUsageType(identifier);

            if (mode == CorrelationMode.Read) {
                if (usage != UsageType.Read && usage != UsageType.ReadWrite) {
                    continue;
                }
            }
            else if (usage != UsageType.Write && usage != UsageType.ReadWrite) {
                continue;
            }

            IMetadataTypeMember member = identifier.getUserData(Keys.MEMBER_REFERENCE);

            if (member != null) {
                members.add(member);
                continue;
            }

            final Variable variable = identifier.getUserData(Keys.VARIABLE);

            if (variable != null) {
                if (variable.isParameter()) {
                    member = variable.getOriginalParameter();
                }
View Full Code Here

TOP

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

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.