public interface IsAntlrRuntimeObject extends CategoryIs, HasText
Interface for objects that represent ANTLR runtime objects (which have source, line, column, and other characteristics).
| Modifier and Type | Method and Description |
|---|---|
static IsAntlrRuntimeObject |
create(Object obj)
Creates a new object from an object.
|
Object |
getAntlrObject()
Returns the ANTLR runtime object.
|
default int |
getColumn()
Returns the column (character position in line) for the ANTLR object.
|
default String |
getFilename()
Returns the source file of the ANTLR object.
|
default int |
getLine()
Returns the line for the ANTLR object.
|
default String |
getText()
Returns text representation of an object.
|
Object getAntlrObject()
Returns the ANTLR runtime object.
default int getColumn()
Returns the column (character position in line) for the ANTLR object.
default int getLine()
Returns the line for the ANTLR object.
default String getFilename()
Returns the source file of the ANTLR object.
default String getText()
HasTextReturns text representation of an object.
static IsAntlrRuntimeObject create(Object obj)
Creates a new object from an object.
obj - the object for creationNullPointerException - if the obj was nullIllegalArgumentException - if obj was not an accepted ANTRL runtime objectCopyright © 2016–2017. All rights reserved.