Package org.eclipse.jdt.internal.compiler.ast

Examples of org.eclipse.jdt.internal.compiler.ast.ClassLiteralAccess


      this.endPosition));
}
protected void consumePrimaryNoNewArrayPrimitiveArrayType() {
  // PrimaryNoNewArray ::= PrimitiveType Dims '.' 'class'
  this.intPtr--; // remove the class start position
  ClassLiteralAccess cla;
  pushOnExpressionStack(
    cla = new ClassLiteralAccess(this.intStack[this.intPtr--], getTypeReference(this.intStack[this.intPtr--])));
  rejectIllegalTypeAnnotations(cla.type, true /* tolerate annotations on dimensions for bug compatibility for now */);
}
 
View Full Code Here


  rejectIllegalTypeAnnotations(cla.type, true /* tolerate annotations on dimensions for bug compatibility for now */);
}
protected void consumePrimaryNoNewArrayPrimitiveType() {
  // PrimaryNoNewArray ::= PrimitiveType '.' 'class'
  this.intPtr--; // remove the class start position
  ClassLiteralAccess cla;
  pushOnExpressionStack(
    cla = new ClassLiteralAccess(this.intStack[this.intPtr--], getTypeReference(0)));
  rejectIllegalTypeAnnotations(cla.type);
}
View Full Code Here

            + elementValueExpression.resolvedType.id);
      }

      elementValue = getConstantValue(constant);
    } else if (elementValueExpression instanceof ClassLiteralAccess) {
      ClassLiteralAccess classLiteral = (ClassLiteralAccess) elementValueExpression;
      elementValue = getClassLiteral(logger, classLiteral.targetType);
    } else if (elementValueExpression instanceof ArrayInitializer) {
      elementValue = getAnnotationElementValueArray(logger,
          (ArrayInitializer) elementValueExpression);
    } else if (elementValueExpression instanceof NameReference) {
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.compiler.ast.ClassLiteralAccess

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.