Class BitConstantNode

All Implemented Interfaces:
Visitable
Direct Known Subclasses:
VarbitConstantNode

class BitConstantNode extends ConstantNode
  • Constructor Details

  • Method Details

    • getConstantValueAsObject

      Object getConstantValueAsObject() throws StandardException
      Return an Object representing the bind time value of this expression tree. If the expression tree does not evaluate to a constant at bind time then we return null. This is useful for bind time resolution of VTIs. RESOLVE: What do we do for primitives?
      Overrides:
      getConstantValueAsObject in class ValueNode
      Returns:
      An Object representing the bind time value of this expression tree. (null if not a bind time constant.)
      Throws:
      StandardException - Thrown on error
    • generateConstant

      void generateConstant(ExpressionClassBuilder acb, MethodBuilder mb) throws StandardException
      This generates the proper constant. It is implemented by every specific constant node (e.g. IntConstantNode).
      Specified by:
      generateConstant in class ConstantNode
      Parameters:
      acb - The ExpressionClassBuilder for the class being built
      mb - The method the code to place the code
      Throws:
      StandardException - Thrown on error