Class CAstImpl.CAstValueImpl

    • Field Detail

      • value

        protected final Object value
    • Constructor Detail

      • CAstValueImpl

        protected CAstValueImpl​(Object value)
    • Method Detail

      • getKind

        public int getKind()
        Description copied from interface: CAstNode
        What kind of node is this? Should return some constant from this file.
        Specified by:
        getKind in interface CAstNode
      • getValue

        public Object getValue()
        Description copied from interface: CAstNode
        Returns the constant value represented by this node, if appropriate, and null otherwise.
        Specified by:
        getValue in interface CAstNode
      • getChild

        public CAstNode getChild​(int n)
        Description copied from interface: CAstNode
        Return the nth child of this node. If there is no such child, this method should throw a NoSuchElementException.
        Specified by:
        getChild in interface CAstNode
      • getChildCount

        public int getChildCount()
        Description copied from interface: CAstNode
        How many children does this node have?
        Specified by:
        getChildCount in interface CAstNode
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object