|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.EventObject
fr.ove.openmath.jome.ctrl.linear.events.LinearParserEvent
The event sent during the parsing of a linear form of an expression.
Each event sent corresponds to token in the expression parsed. The tokens are the following :
| Field Summary | |
static int |
ADDITION
|
static int |
CLOSE_BRACKET
|
static int |
CLOSE_CURLY
|
static int |
CLOSE_PAREN
|
static int |
DIVISION
|
static int |
END_EXPRESSION
|
static int |
EQUAL
|
static int |
FLOAT
|
static int |
FUNCTION
|
static int |
FUNCTION2
|
static int |
GREATER
|
static int |
GREATEREQUAL
|
static int |
GROUP_END
|
static int |
GROUP_START
|
static int |
INTEGER
|
static int |
LESS
|
static int |
LESSEQUAL
|
static int |
MULTIPLICATION
|
static int |
OPEN_BRACKET
|
static int |
OPEN_CURLY
|
static int |
OPEN_PAREN
|
static int |
POWER
|
static int |
RESERVED
|
static int |
SEPARATOR
|
static int |
SPECIALIZED
|
static int |
START_EXPRESSION
|
static int |
SUBSTRACTION
|
static int |
SYMBOL
|
static int |
UNDERSCRIPT
|
static int |
UNEQUAL
|
static int |
VARIABLE
The different command tokens. |
| Fields inherited from class java.util.EventObject |
source |
| Constructor Summary | |
LinearParserEvent(java.lang.Object src)
The constructor. |
|
| Method Summary | |
int |
getIdentifier()
Returns the identifier of the token wrapped into the event. |
java.lang.String |
getIdentifierAsString()
Returns the identifier of the token wrapped into the event, as a string |
static int |
getStringIdentifierAsInt(java.lang.String identifier)
Returns the int value of the specified identifier string representation . |
java.lang.String |
getValue()
Returns the value of the identifier. |
void |
setToken(int identifier,
java.lang.String value)
Sets the identifier of the token and its value, if needed. |
java.lang.String |
toString()
Returns a @see String representation of the instance. |
| Methods inherited from class java.util.EventObject |
getSource |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int VARIABLE
public static final int INTEGER
public static final int FLOAT
public static final int ADDITION
public static final int SUBSTRACTION
public static final int MULTIPLICATION
public static final int DIVISION
public static final int POWER
public static final int EQUAL
public static final int UNEQUAL
public static final int LESS
public static final int LESSEQUAL
public static final int GREATER
public static final int GREATEREQUAL
public static final int FUNCTION
public static final int SEPARATOR
public static final int OPEN_PAREN
public static final int CLOSE_PAREN
public static final int OPEN_BRACKET
public static final int CLOSE_BRACKET
public static final int OPEN_CURLY
public static final int CLOSE_CURLY
public static final int RESERVED
public static final int UNDERSCRIPT
public static final int SPECIALIZED
public static final int START_EXPRESSION
public static final int END_EXPRESSION
public static final int SYMBOL
public static final int GROUP_START
public static final int GROUP_END
public static final int FUNCTION2
| Constructor Detail |
public LinearParserEvent(java.lang.Object src)
src - the object which produces this event.| Method Detail |
public void setToken(int identifier,
java.lang.String value)
identifier - the token identifier.value - the token value.public int getIdentifier()
public java.lang.String getIdentifierAsString()
public static int getStringIdentifierAsInt(java.lang.String identifier)
public java.lang.String getValue()
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||