|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJFlex.Action
public final class Action
Encapsulates an action in the specification. It stores the Java code as String together with a priority (line number in the specification).
Constructor Summary | |
---|---|
Action(java.lang.String content,
int priority)
Creates a new Action object with specified content and line number. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Test for equality to another object. |
Action |
getHigherPriority(Action other)
Compares the priority value of this Action with the specified action. |
int |
hashCode()
Calculate hash value. |
boolean |
isEquiv(Action a)
Returns true iff the parameter is an
Action with the same content as this one. |
boolean |
isLookAction()
Return look ahead flag. |
void |
setLookAction(boolean b)
Sets the look ahead flag for this action |
java.lang.String |
toString()
Returns the String representation of this object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Action(java.lang.String content, int priority)
content
- java codepriority
- line numberMethod Detail |
---|
public Action getHigherPriority(Action other)
other
- the other Action to compare this Action with.
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isEquiv(Action a)
true
iff the parameter is an
Action with the same content as this one.
a
- the object to compare this Action with
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the other object.isEquiv(Action)
public boolean isLookAction()
public void setLookAction(boolean b)
b
- set to true if this action belongs to a look ahead rule
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |