|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jpicedt.format.input.util.AbstractRegularExpression jpicedt.format.input.util.AlternateExpression
public class AlternateExpression
A regular expression that mimics the "x|y" RegExp syntax.
Constructor Summary | |
---|---|
AlternateExpression()
Creates a new AlternateExpression with no element |
|
AlternateExpression(AbstractRegularExpression expr)
Creates a new AlternateExpression with the given expr as first element |
|
AlternateExpression(AbstractRegularExpression expr1,
AbstractRegularExpression expr2)
Creates a new AlternateExpression with the given expr as first and second element |
|
AlternateExpression(AbstractRegularExpression expr1,
AbstractRegularExpression expr2,
AbstractRegularExpression expr3)
Creates a new AlternateExpression with the given expr as first, second and third element |
Method Summary | |
---|---|
void |
add(AbstractRegularExpression expr)
Add a new child to this AlternateExpression. |
ArrayList |
getExpressionList()
Return a list containing every expression in this AlternateExpression |
boolean |
interpret(Context c)
Calls "action" with value=Integer(index of first expression parsed with success, starting from 0). |
String |
toString()
|
Methods inherited from class jpicedt.format.input.util.AbstractRegularExpression |
---|
action |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AlternateExpression(AbstractRegularExpression expr)
public AlternateExpression(AbstractRegularExpression expr1, AbstractRegularExpression expr2)
public AlternateExpression(AbstractRegularExpression expr1, AbstractRegularExpression expr2, AbstractRegularExpression expr3)
public AlternateExpression()
Method Detail |
---|
public void add(AbstractRegularExpression expr)
public boolean interpret(Context c) throws REParserException
interpret
in class AbstractRegularExpression
true
as soon as one of the expressions contained in this
AlternateExpression
has been found ; false
if no match.
REParserException
- if an error occur during parsingpublic ArrayList getExpressionList()
public String toString()
toString
in class Object
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |