Class Constructor

  • All Implemented Interfaces:
    java.lang.Comparable<Constructor>

    public class Constructor
    extends java.lang.Object
    implements java.lang.Comparable<Constructor>
    The primary sleigh concept representing a semantic action taking operands (semantic values) as input producing a semantic value as output matching a particular pattern printing in a certain way
    • Constructor Detail

      • Constructor

        public Constructor()
    • Method Detail

      • toString

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

        public java.util.List<java.lang.String> getPrintPieces()
      • getFlowthruIndex

        public int getFlowthruIndex()
      • getMinimumLength

        public int getMinimumLength()
      • setId

        public void setId​(int val)
      • getId

        public int getId()
      • getLineno

        public int getLineno()
      • getNumOperands

        public int getNumOperands()
      • getContextChanges

        public java.util.List<ContextChange> getContextChanges()
      • printSeparator

        public java.lang.String printSeparator​(int separatorIndex)
      • getNamedTempl

        public ConstructTpl getNamedTempl​(int secnum)
        Retrieve a named p-code template section
        Parameters:
        secnum - is the id of the section to return
        Returns:
        the named section (or null)
      • getOpsPrintOrder

        public int[] getOpsPrintOrder()
        Return the indices of the operands in an array in the order they are printed (after the first white space)
        Returns:
        array of operand indices
      • compareTo

        public int compareTo​(Constructor that)
        Specified by:
        compareTo in interface java.lang.Comparable<Constructor>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • getSourceFile

        public java.lang.String getSourceFile()
        Returns the source file
        Returns:
        source file