Class IntegerVariableAssignmentParser


  • public final class IntegerVariableAssignmentParser
    extends MetaPatternParser
    Parses integer variable assignments, such as "x = 9" or "x=9".
    Author:
    Jonathan Locke
    • Constructor Detail

      • IntegerVariableAssignmentParser

        public IntegerVariableAssignmentParser​(java.lang.CharSequence input)
        Construct.
        Parameters:
        input - to parse
    • Method Detail

      • getVariable

        public java.lang.String getVariable()
        Gets the variable part (eg the 'x' from 'x = 9').
        Returns:
        the variable part
      • getIntValue

        public int getIntValue()
        Gets the int part (eg the '9' from 'x = 9').
        Returns:
        the int part.
      • getLongValue

        public long getLongValue()
        Gets the int part as a long.
        Returns:
        the int part as a long