Package org.jetbrains.plugins.groovy.lang.psi.api.statements.arguments

Examples of org.jetbrains.plugins.groovy.lang.psi.api.statements.arguments.GrArgumentList


  public static GrLiteral getStepDefinitionPattern(final GrMethodCall stepDefinition) {
    return ApplicationManager.getApplication().runReadAction(new NullableComputable<GrLiteral>() {
      @Nullable
      @Override
      public GrLiteral compute() {
        GrArgumentList argumentList = stepDefinition.getArgumentList();
        if (argumentList == null) return null;

        GroovyPsiElement[] arguments = argumentList.getAllArguments();
        if (arguments.length == 0 || arguments.length > 2) return null;

        GroovyPsiElement arg = arguments[0];
        if (!(arg instanceof GrUnaryExpression && ((GrUnaryExpression)arg).getOperationTokenType() == GroovyTokenTypes.mBNOT)) return null;
View Full Code Here

TOP

Related Classes of org.jetbrains.plugins.groovy.lang.psi.api.statements.arguments.GrArgumentList

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.