Class ConstantTemplate

  • All Implemented Interfaces:
    java.io.Serializable

    public class ConstantTemplate
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Detail

      • ConstantTemplate

        public ConstantTemplate​(long val)
      • ConstantTemplate

        public ConstantTemplate​(int t)
      • ConstantTemplate

        public ConstantTemplate​(Operand o,
                                int sel1,
                                int sel2)
      • ConstantTemplate

        public ConstantTemplate​(Operand o,
                                int sel1)
                         throws SledException
        Constructor ConstantTemplate.
        Parameters:
        o - the operand
        sel1 - the first selection
        Throws:
        SledException
    • Method Detail

      • type

        public int type()
      • select1

        public int select1()
      • select2

        public int select2()
      • resolve

        public long resolve​(Position position,
                            int off)
                     throws java.lang.Exception
        Method resolve.
        Parameters:
        position - the position of the constant to resolve
        off - the offset of the constant
        Returns:
        long
        Throws:
        java.lang.Exception
      • resolve

        public long resolve​(java.util.HashMap<java.lang.Object,​Handle> handles,
                            Position position,
                            int off)
                     throws java.lang.Exception
        Parameters:
        handles - optional map of handles to be used for resolving
        Returns:
        long
        Throws:
        java.lang.Exception
        See Also:
        resolve(Position, int)
      • operand

        public Operand operand()
      • hashCode

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object