Package gnu.expr

Class ObjectExp

All Implemented Interfaces:
gnu.kawa.format.Printable, Named, SourceLocator, SourceLocator, Locator

public class ObjectExp extends ClassExp
An expression that evaluated to an instance of an anonymous class. It's conceptually questionable that this inherits from ClassExp - it should perhaps inherit from ApplyExp.
  • Constructor Details

    • ObjectExp

      public ObjectExp()
  • Method Details

    • calculateType

      protected Type calculateType()
      Description copied from class: ClassExp
      The ClassType generated for this class. Note difference from getClassType: The value of a ClassExp (viewed as an expression) is a class/type object, so getType returns the type of a type.
      Overrides:
      calculateType in class ClassExp
    • visit

      protected <R, D> R visit(ExpVisitor<R,D> visitor, D d)
      Overrides:
      visit in class ClassExp
    • compile

      public void compile(Compilation comp, Target target)
      Overrides:
      compile in class ClassExp