public class ExtendedFunctionTokenFactory
extends shuntingyard.DelegatingFactory
Constructor and Description |
---|
ExtendedFunctionTokenFactory() |
Modifier and Type | Method and Description |
---|---|
int |
calculateRegexMatchEnd(java.util.regex.Matcher m)
Override to make sure the parenthesis, needed to correctly identify the Token,
doesn't become part of the token string itself.
|
shuntingyard.Token |
create(java.lang.String tokenString,
int position) |
shuntingyard.Token |
generateInstance(java.lang.String tokenString) |
int |
getNiceness() |
java.lang.String |
getRegex() |
public java.lang.String getRegex()
getRegex
in class shuntingyard.DelegatingFactory
public shuntingyard.Token generateInstance(java.lang.String tokenString)
generateInstance
in class shuntingyard.DelegatingFactory
public int calculateRegexMatchEnd(java.util.regex.Matcher m)
calculateRegexMatchEnd
in class shuntingyard.TokenFactory
m
- public int getNiceness()
getNiceness
in class shuntingyard.TokenFactory
public shuntingyard.Token create(java.lang.String tokenString, int position) throws shuntingyard.CompilerException
create
in class shuntingyard.DelegatingFactory
shuntingyard.CompilerException