Interface EnumerationConstantNode

All Superinterfaces:
ASTNode, ConstantNode, ExpressionNode, ForLoopInitializerNode, InitializerNode, SizeableNode

public interface EnumerationConstantNode extends ConstantNode
An enumeration constant node represents a use of an enumeration constant as an expression. It wraps an identifier node.
  • Method Details

    • getName

      IdentifierNode getName()
      Returns the underlying identifier node.
      Returns:
      the underlying identifier node which is the name of the enumeration constant
    • setName

      void setName(IdentifierNode name)
      Sets the value returned by getName().
      Parameters:
      name - the underlying identifier node which is the name of the enumeration constant
    • copy

      Description copied from interface: ASTNode
      Returns a deep copy of this AST node. The node and all of its descendants will be cloned. The cloning does not copy analysis or attribute information.
      Specified by:
      copy in interface ASTNode
      Specified by:
      copy in interface ConstantNode
      Specified by:
      copy in interface ExpressionNode
      Specified by:
      copy in interface ForLoopInitializerNode
      Specified by:
      copy in interface InitializerNode
      Specified by:
      copy in interface SizeableNode
      Returns:
      deep copy of this node