Class Value

  • All Implemented Interfaces:
    java.lang.Cloneable
    Direct Known Subclasses:
    Value.E0Expr, Value.E1Expr, Value.E2Expr, Value.EnExpr

    public abstract class Value
    extends java.lang.Object
    implements java.lang.Cloneable
    Represent a local/constant/expression
    • Field Detail

      • et

        public final ET et
        The number of argument
      • valueType

        public java.lang.String valueType
      • tag

        public java.lang.Object tag
      • vt

        public final Value.VT vt
        Value Type
    • Constructor Detail

      • Value

        protected Value​(Value.VT vt,
                        ET et)
        Parameters:
        vt - Value Type
        et - The number of argument
    • Method Detail

      • setOp

        public void setOp​(Value op)
      • setOp1

        public void setOp1​(Value op)
      • setOp2

        public void setOp2​(Value op)
      • setOps

        public void setOps​(Value[] op)
      • clone

        public abstract Value clone()
        Overrides:
        clone in class java.lang.Object
      • getOp

        public Value getOp()
      • getOp1

        public Value getOp1()
      • getOp2

        public Value getOp2()
      • getOps

        public Value[] getOps()
      • releaseMemory

        protected void releaseMemory()
        clean resource used by this value,release memory
      • toString

        public final java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toString0

        protected abstract java.lang.String toString0()
      • trim

        public Value trim()