|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.parcinj.AbstractSymbol<P>
net.sf.parcinj.TerminalSymbol<P>
net.sf.parcinj.TerminalSymbolByText<P>
public class TerminalSymbolByText<P extends Processor>
A terminal symbol which matches a Token
by token text.
Constructor Summary | |
---|---|
TerminalSymbolByText(java.lang.String terminalSymbol)
Creates an instance for the specified terminal symbol text. |
|
TerminalSymbolByText(TerminalSymbolType terminalSymbolType)
Creates an instance for the string representation of the specified terminal symbol type. |
Method Summary | |
---|---|
MatchingResult |
matches(Token token)
Returns MatchingResult.OK the specified token is not
null and its token text equals the terminal symbol text
specified in the constructor. |
Methods inherited from class net.sf.parcinj.TerminalSymbol |
---|
doProcess, process |
Methods inherited from class net.sf.parcinj.AbstractSymbol |
---|
followedBy, oneOrMoreTimes, optional, or, process, zeroOrMoreTimes, zeroOrMoreTimesSeparatedBy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TerminalSymbolByText(TerminalSymbolType terminalSymbolType)
public TerminalSymbolByText(java.lang.String terminalSymbol)
Method Detail |
---|
public MatchingResult matches(Token token)
MatchingResult.OK
the specified token is not
null
and its token text equals the terminal symbol text
specified in the constructor.
token
- Token to be checked. Will be null
if beyond last
token.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |