public class TokenInfo
extends java.lang.Object
TokenInfo stores information about one token of an OrgPolicy string
(like begin and end column within the string).| Constructor and Description |
|---|
TokenInfo()
Constructs a new
TokenInfo with begin column of 0 and end
column of Integer.MAX_VALUE. |
TokenInfo(int beginColumn,
int endColumn)
Constructs a new
TokenInfo with the given begin and end column. |
| Modifier and Type | Method and Description |
|---|---|
int |
getBeginColumn()
Returns the begin column.
|
int |
getEndColumn()
Returns the end column.
|
void |
setBeginColumn(int beginColumn)
Sets the begin column of this token.
|
void |
setEndColumn(int endColumn)
Sets the end column of this token.
|
public TokenInfo()
TokenInfo with begin column of 0 and end
column of Integer.MAX_VALUE.public TokenInfo(int beginColumn,
int endColumn)
TokenInfo with the given begin and end column.beginColumn - the begin columnendColumn - the end columnpublic int getBeginColumn()
public void setBeginColumn(int beginColumn)
beginColumn - the begin column of this tokenpublic int getEndColumn()
public void setEndColumn(int endColumn)
endColumn - the end column of this token