Module org.apache.wicket.util
Class IntegerVariableAssignmentParser
java.lang.Object
org.apache.wicket.util.parse.metapattern.parsers.MetaPatternParser
org.apache.wicket.util.parse.metapattern.parsers.IntegerVariableAssignmentParser
Parses integer variable assignments, such as "x = 9" or "x=9".
- Author:
- Jonathan Locke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Gets the int part (eg the '9' from 'x = 9').long
Gets the int part as a long.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 Details
-
IntegerVariableAssignmentParser
Construct.- Parameters:
input
- to parse
-
-
Method Details
-
getVariable
Gets the variable part (eg the 'x' from 'x = 9').- Returns:
- the variable part
-
getIntValue
Gets the int part (eg the '9' from 'x = 9').- Returns:
- the int part.
-
getLongValue
Gets the int part as a long.- Returns:
- the int part as a long
-