Interface ASTType

All Superinterfaces:
Annotatable, GenericNode<JavaNode>, JavaNode, JjtreeNode<JavaNode>, Node, Reportable, TextAvailableNode, TypeNode
All Known Subinterfaces:
ASTReferenceType
All Known Implementing Classes:
ASTAmbiguousName, ASTArrayType, ASTClassType, ASTIntersectionType, ASTPrimitiveType, ASTUnionType, ASTVoidType, ASTWildcardType

public interface ASTType extends TypeNode, Annotatable
Represents a type reference.

Corresponds to the JLS's Type and UnannType at the same time. In some contexts this can also be an intersection type, though the JLS has no production for that.


 Type ::= ReferenceType
        | PrimitiveType
        | VoidType

 
  • Method Details

    • isVoid

      @NoAttribute default boolean isVoid()
      Returns true if this is the "void" pseudo-type, ie an ASTVoidType.