Class ExplicitTextToken
- java.lang.Object
-
- org.opendaylight.yangtools.yang.parser.rfc7950.antlr.ExplicitTextToken
-
-
Constructor Summary
Constructors Constructor Description ExplicitTextToken(int type, String text)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getChannel()
int
getCharPositionInLine()
org.antlr.v4.runtime.CharStream
getInputStream()
int
getLine()
int
getStartIndex()
int
getStopIndex()
String
getText()
int
getTokenIndex()
org.antlr.v4.runtime.TokenSource
getTokenSource()
int
getType()
void
setChannel(int channel)
void
setCharPositionInLine(int pos)
void
setLine(int line)
void
setText(String text)
void
setTokenIndex(int index)
void
setType(int ttype)
-
-
-
Constructor Detail
-
ExplicitTextToken
public ExplicitTextToken(int type, String text)
-
-
Method Detail
-
getText
public String getText()
-
getType
public int getType()
-
getLine
public int getLine()
-
getCharPositionInLine
public int getCharPositionInLine()
-
getStartIndex
public int getStartIndex()
-
getStopIndex
public int getStopIndex()
-
getTokenSource
public org.antlr.v4.runtime.TokenSource getTokenSource()
-
getInputStream
public org.antlr.v4.runtime.CharStream getInputStream()
-
getChannel
public final int getChannel()
- Specified by:
getChannel
in interfaceorg.antlr.v4.runtime.Token
-
getTokenIndex
public final int getTokenIndex()
- Specified by:
getTokenIndex
in interfaceorg.antlr.v4.runtime.Token
-
setTokenIndex
public final void setTokenIndex(int index)
- Specified by:
setTokenIndex
in interfaceorg.antlr.v4.runtime.WritableToken
-
setText
public final void setText(String text)
- Specified by:
setText
in interfaceorg.antlr.v4.runtime.WritableToken
-
setType
public final void setType(int ttype)
- Specified by:
setType
in interfaceorg.antlr.v4.runtime.WritableToken
-
setLine
public final void setLine(int line)
- Specified by:
setLine
in interfaceorg.antlr.v4.runtime.WritableToken
-
setCharPositionInLine
public final void setCharPositionInLine(int pos)
- Specified by:
setCharPositionInLine
in interfaceorg.antlr.v4.runtime.WritableToken
-
setChannel
public final void setChannel(int channel)
- Specified by:
setChannel
in interfaceorg.antlr.v4.runtime.WritableToken
-
-