Class IntegerVariableAssignmentParser
- java.lang.Object
-
- org.apache.wicket.util.parse.metapattern.parsers.MetaPatternParser
-
- org.apache.wicket.util.parse.metapattern.parsers.IntegerVariableAssignmentParser
-
public final class IntegerVariableAssignmentParser extends MetaPatternParser
Parses integer variable assignments, such as "x = 9" or "x=9".- Author:
- Jonathan Locke
-
-
Constructor Summary
Constructors Constructor Description IntegerVariableAssignmentParser(CharSequence input)
Construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getIntValue()
Gets the int part (eg the '9' from 'x = 9').long
getLongValue()
Gets the int part as a long.String
getVariable()
Gets the variable part (eg the 'x' from 'x = 9').-
Methods inherited from class org.apache.wicket.util.parse.metapattern.parsers.MetaPatternParser
advance, atEnd, matcher, matches, setPattern
-
-
-
-
Constructor Detail
-
IntegerVariableAssignmentParser
public IntegerVariableAssignmentParser(CharSequence input)
Construct.- Parameters:
input
- to parse
-
-
Method Detail
-
getVariable
public 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
-
-