Package org.jfugue.pattern
Class Token
- java.lang.Object
-
- org.jfugue.pattern.Token
-
- All Implemented Interfaces:
PatternProducer
public class Token extends java.lang.Object implements PatternProducer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Token.TokenType
-
Constructor Summary
Constructors Constructor Description Token(java.lang.String string, Token.TokenType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Pattern
getPattern()
Returns a patternToken.TokenType
getType()
Involves the Staccato parsers to figure out what type of token this isjava.lang.String
toString()
-
-
-
Constructor Detail
-
Token
public Token(java.lang.String string, Token.TokenType type)
-
-
Method Detail
-
getType
public Token.TokenType getType()
Involves the Staccato parsers to figure out what type of token this is
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getPattern
public Pattern getPattern()
Description copied from interface:PatternProducer
Returns a pattern- Specified by:
getPattern
in interfacePatternProducer
-
-