|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.prorefactor.core.TokenTypes
public class TokenTypes
This static class provides information about Proparse's token types as well as all of the static, final names for each token type.
Constructor Summary | |
---|---|
TokenTypes()
|
Method Summary | |
---|---|
static java.lang.String |
getDefaultText(int tokenType)
For integer token types that represent a keyword in the syntax, this returns the full keyword text/name. |
java.lang.String |
getName(int tokenType)
Implements TokenTypesI, calls getTokenName(). |
static java.lang.String |
getTokenName(int tokenType)
Get the token name for this token type. |
static boolean |
hasDefaultText(int tokenType)
Proparse tracks keywords that are part of the syntax, but does not track keywords that are only attribute/method names. |
static boolean |
isNatural(int tokenType)
A "natural" node is one that represents a real token in the original source code. |
static boolean |
isValid(int tokenType)
Is the integer a valid token type? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TokenTypes()
Method Detail |
---|
public static java.lang.String getDefaultText(int tokenType)
hasDefaultText(int)
public java.lang.String getName(int tokenType)
getName
in interface TokenTypesI
public static java.lang.String getTokenName(int tokenType)
public static boolean isNatural(int tokenType)
public static boolean hasDefaultText(int tokenType)
public static boolean isValid(int tokenType)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |