Class PointerStatement

  • All Implemented Interfaces:
    Comparable<Object>
    Direct Known Subclasses:
    SpecialPointer

    public class PointerStatement
    extends Statement
    This class is the object representation of a pointer statement in a label.
    Version:
    $Revision$
    Author:
    pramirez, jagander
    • Field Detail

      • value

        protected Value value
      • externalReference

        protected boolean externalReference
    • Constructor Detail

      • PointerStatement

        protected PointerStatement​(Label sourceLabel,
                                   int lineNumber,
                                   DictIdentifier identifier)
        Constructs essentially a null pointer
        Parameters:
        pointerType - indicates whether it is data location, include, or description pointer
        lineNumber - at which the statement occurs
        identifier - of the statement
      • PointerStatement

        protected PointerStatement​(Label sourceLabel,
                                   int lineNumber,
                                   DictIdentifier identifier,
                                   Value value)
        Constructs a pointer with a value on the right hand side
        Parameters:
        pointerType - indicates whether it is data location, include, or description pointer
        lineNumber - at which the statement occurs
        identifier - of the statement
        value - of the assignment
    • Method Detail

      • getValue

        public Value getValue()
        Returns the value portion (right hand side) of the statement.
        Returns:
        value
      • hasMultipleReferences

        public boolean hasMultipleReferences()
      • hashcode

        public int hashcode()