Examples of astIdentifier()


Examples of lombok.ast.TypeReferencePart.astIdentifier()

        classTypeArgs0.setPosition(identifierNode.getPosition());
      }
    }
   
    TypeReference typeReference = new TypeReference().astParts().addToEnd(
        classTypeArgs0.astIdentifier(createIdentifierIfNeeded(identifierNode, currentPos())));
    if (!classTypeArgsCorrect) {
      if (identifier != null && identifier.getValue() != null) {
        typeReference.setPosition(identifier.getValue().getPosition());
      }
    } else {
View Full Code Here

Examples of lombok.ast.VariableReference.astIdentifier()

        if (methodName.equals(FORMAT_METHOD)) {
            // String.format(getResources().getString(R.string.foo), arg1, arg2, ...)
            // Check that the arguments in R.string.foo match arg1, arg2, ...
            if (node.astOperand() instanceof VariableReference) {
                VariableReference ref = (VariableReference) node.astOperand();
                if ("String".equals(ref.astIdentifier().astValue())) { //$NON-NLS-1$
                    // Found a String.format call
                    // Look inside to see if we can find an R string
                    // Find surrounding method
                    checkFormatCall(context, node);
                }
View Full Code Here

Examples of lombok.ast.VariableReference.astIdentifier()

        public boolean visitMethodInvocation(MethodInvocation node) {
            if (node == mTargetNode) {
                Expression arg = getTargetArgument();
                if (arg instanceof VariableReference) {
                      VariableReference reference = (VariableReference) arg;
                      String variable = reference.astIdentifier().astValue();
                      mName = mMap.get(variable);
                      mDone = true;
                      return true;
                }
            }
View Full Code Here

Examples of lombok.ast.VariableReference.astIdentifier()

        public boolean visitConstructorInvocation(ConstructorInvocation node) {
            if (node == mTargetNode) {
                Expression arg = getTargetArgument();
                if (arg instanceof VariableReference) {
                      VariableReference reference = (VariableReference) arg;
                      String variable = reference.astIdentifier().astValue();
                      mName = mMap.get(variable);
                      mDone = true;
                      return true;
                }
            }
View Full Code Here

Examples of lombok.ast.VariableReference.astIdentifier()

            if (expression == null) {
              return null;
            }
            if (expression instanceof VariableReference) {
                VariableReference reference = (VariableReference) expression;
                String variable = reference.astIdentifier().astValue();
                return mTypes.get(variable);
            } else if (expression instanceof MethodInvocation) {
                MethodInvocation method = (MethodInvocation) expression;
                String methodName = method.astName().astValue();
                if (methodName.equals(GET_STRING_METHOD)) {
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.