public class Instruction extends ContentElement
| Constructor and Description |
|---|
Instruction(java.lang.String code,
java.lang.String arg,
int startIndex,
int endIndex,
DiagCollector diagCollector,
Location sourceLocation) |
| Modifier and Type | Method and Description |
|---|---|
void |
error(java.lang.String message,
java.lang.Object... params)
Reports error message.
|
void |
evalute(Element element)
Evaluate the instruction in context of given element.
|
java.lang.String |
getArg()
Returns the instruction argument.
|
java.lang.String |
getCode()
Returns the instruction code
|
java.lang.String |
getContent()
Return the content (empty for instruction).
|
int |
getEndIndex()
The end index (exclusive) of the content the node represents from the source.
|
int |
getStartIndex()
The start index (inclusive) of the content the node represents from the source.
|
public Instruction(java.lang.String code,
java.lang.String arg,
int startIndex,
int endIndex,
DiagCollector diagCollector,
Location sourceLocation)
public java.lang.String getCode()
public java.lang.String getArg()
public java.lang.String getContent()
getContent in class ContentElementpublic void evalute(Element element)
public int getStartIndex()
public int getEndIndex()
public void error(java.lang.String message,
java.lang.Object... params)