Class TypeExpr

All Implemented Interfaces:
NodeWithRange<Node>, NodeWithTokenRange<Node>, NodeWithType<TypeExpr,Type>, Observable, Visitable, HasParentNode<Node>, Cloneable

public class TypeExpr extends Expression implements NodeWithType<TypeExpr,Type>
This class is just instantiated as scopes for MethodReferenceExpr nodes to encapsulate Types.
In World::greet the ClassOrInterfaceType "World" is wrapped in a TypeExpr before it is set as the scope of the MethodReferenceExpr.
  • Field Details

    • type

      private Type type
  • Constructor Details

    • TypeExpr

      public TypeExpr()
    • TypeExpr

      public TypeExpr(Type type)
    • TypeExpr

      public TypeExpr(TokenRange tokenRange, Type type)
      This constructor is used by the parser and is considered private.
  • Method Details