org.apache.wicket.util.parse.metapattern.parsers
Class IntegerVariableAssignmentParser

java.lang.Object
  extended by org.apache.wicket.util.parse.metapattern.parsers.MetaPatternParser
      extended by 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
IntegerVariableAssignmentParser(CharSequence input)
          Construct.
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.