|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.unitesk.atp.tree.tool.antlr.PositionFactory
public abstract class PositionFactory
Create positions from token.
| Constructor Summary | |
|---|---|
PositionFactory()
|
|
| Method Summary | |
|---|---|
static Position |
getEndPosition(antlr.Token t)
Get end position of one-line token. |
static OffsetPosition |
getOffsetPosition(antlr.Token t)
Get offset position. |
static Position |
getPosition(antlr.Token t)
Get position of token. |
static OffsetRange |
getRange(antlr.Token t)
Get range of the given one-line token. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PositionFactory()
| Method Detail |
|---|
public static Position getPosition(antlr.Token t)
t - Token to get position.
public static Position getEndPosition(antlr.Token t)
t - Token to get end position.
public static OffsetPosition getOffsetPosition(antlr.Token t)
t - must be of type OffsetToken
ClassCastException - if t is not of type OffsetPositionpublic static OffsetRange getRange(antlr.Token t)
t - offset token
ClassCastException - if t is not of type OffsetPosition
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||