Class Value


  • public class Value
    extends TreeNode
    The disassembler value node - bound to an instruction decoder rule name.
    • Constructor Detail

      • Value

        public Value​(java.lang.String name)
        Constructs the value.
        Parameters:
        name - the rule name
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the name, as obtained from the input.
        Returns:
        the name
      • getRule

        public Rule getRule()
        Returns the rule associated with this value.
        Returns:
        the rule object
      • setRule

        public void setRule​(Rule rule)
        Sets the rule associated with this value.
        Parameters:
        rule - the rule object
      • getFieldName

        public java.lang.String getFieldName()
        Returns the field name which should be generated for this value.
        Returns:
        the field name
      • getStrategies

        public java.util.List<java.lang.String> getStrategies()
        Returns the constant decoding strategies.
        Returns:
        list of strategy names - e.g., "little_endian"
      • setStrategies

        public void setStrategies​(java.util.List<java.lang.String> strategies)
        Sets the constant decoding strategy.
        Parameters:
        strategies - the strategy name - e.g., "big_endian"
      • toString

        public java.lang.String toString()
        Returns a string representation of the object.
        Overrides:
        toString in class java.lang.Object
        Returns:
        the string
      • equals

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