Class OpLabel

  • All Implemented Interfaces:, Op, Named, PrintSerializable

    public class OpLabel
    extends Op1
    Do-nothing class that means that tags/labels/comments can be left in the algebra tree. If serialized, toString called on the object, reparsing yields a string. Can have zero one sub ops.
    • Method Detail

      • create

        public static Op create​(java.lang.Object label,
                                Op op)
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in class OpBase
      • visit

        public void visit​(OpVisitor opVisitor)
      • getObject

        public java.lang.Object getObject()
      • hasSubOp

        public boolean hasSubOp()
      • getName

        public java.lang.String getName()
      • copy

        public Op1 copy​(Op subOp)
        Specified by:
        copy in class Op1