|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.generic.constraint.Scanner
This class provides methods for doing a lexical analysis on a
String. This functionalities are used by the
ConstraintParser.
Constraint,
ConstraintParser| Constructor Summary | |
Scanner(java.lang.String input)
Constructs a scanner instance with the given String input. |
|
| Method Summary | |
double |
dval()
Gets the double that was parsed most recently. |
java.lang.String |
getInput()
Returns the input this scanner is parsing |
int |
ival()
Gets the integer that was parsed most recently. |
MetricExpression |
mexp_val()
Returns the MetricExpression that was parsed most recently.
|
int |
nextToken()
Advances the scanner and returns the next token as a symbol identifier. |
java.lang.String |
sval()
Gets the string that was parsed most recently. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Scanner(java.lang.String input)
String input.
input - a String providing the data to scan, the
value may not be null.| Method Detail |
public final int ival()
int
value was scanned by this instance, then 0 is returned.
public final double dval()
double
value was scanned by this instance, then 0.0 is returned.
public final java.lang.String sval()
String
value was scanned by this instance, then null is returned.
public final MetricExpression mexp_val()
MetricExpression that was parsed most recently.
If no MetricExpression value was scanned null
is returned.
MetricExpression valuepublic int nextToken()
public java.lang.String getInput()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||