| java.lang.Object com.Ostermiller.util.PropertiesToken
PropertiesToken | class PropertiesToken (Code) | | A PropertiesToken is a token that is returned by a lexer that is lexing a Java
Properties file. It has several attributes describing the token:
The type of token, the text of the token, the line number on which it
occurred, the number of characters into the input at which it started, and
similarly, the number of characters into the input at which it ended.
author: Stephen Ostermiller http://ostermiller.org/contact.pl?regarding=Java+Utilities since: ostermillerutils 1.00.00 |
COMMENT | final public static int COMMENT(Code) | | comment -- 0
|
CONTINUE_LINE | final public static int CONTINUE_LINE(Code) | | continue line -- 4
|
END_LINE_WHITE_SPACE | final public static int END_LINE_WHITE_SPACE(Code) | | end of line white space -- 1
|
NAME | final public static int NAME(Code) | | name -- 5
|
SEPARATOR | final public static int SEPARATOR(Code) | | separator -- 3
|
VALUE | final public static int VALUE(Code) | | value -- 6
|
WHITE_SPACE | final public static int WHITE_SPACE(Code) | | white space -- 2
|
PropertiesToken | public PropertiesToken(int ID, String contents)(Code) | | Create a new token.
The constructor is typically called by the lexer
Parameters: ID - the id number of the token Parameters: contents - A string representing the text of the token since: ostermillerutils 1.00.00 |
getContents | public String getContents()(Code) | | get the contents of this token
A string representing the text of the token since: ostermillerutils 1.00.00 |
getID | public int getID()(Code) | | get the ID number of this token
the id number of the token since: ostermillerutils 1.00.00 |
toString | public String toString()(Code) | | String representation appropriate for debugging.
String representation since: ostermillerutils 1.00.00 |
|
|