Package redempt.redlex.token
Class ListToken
java.lang.Object
redempt.redlex.data.TokenType
redempt.redlex.token.ListToken
- All Implemented Interfaces:
ParentToken
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancharacterMatches(String input, int pos, int offset) findForward(String str, int pos, LexContext ctx) booleanlengthMatches(int length) intintvoidsetChildren(TokenType[] children) Methods inherited from class redempt.redlex.data.TokenType
getFirstCharacters, getLexer, getMessage, getName, nameMatches, replacePlaceholders, setLexer, setName, toString, walk
-
Constructor Details
-
ListToken
-
-
Method Details
-
characterMatches
- Specified by:
characterMatchesin classTokenType
-
findForward
- Overrides:
findForwardin classTokenType
-
lengthMatches
public boolean lengthMatches(int length) - Specified by:
lengthMatchesin classTokenType
-
minLength
public int minLength() -
maxLength
public int maxLength() -
calcFirstCharacters
- Specified by:
calcFirstCharactersin classTokenType
-
getChildren
- Specified by:
getChildrenin interfaceParentToken
-
setChildren
- Specified by:
setChildrenin interfaceParentToken
-