java.lang.CloneableBlock, Break, Evaluate, Foreach, InputBase, Literal, Macro, RuntimeMacro, Stop, VelocimacroProxypublic abstract class Directive
extends java.lang.Object
implements java.lang.Cloneable
| Modifier and Type | Field | Description |
|---|---|---|
static int |
BLOCK |
Block directive indicator
|
static int |
LINE |
Line directive indicator
|
| Constructor | Description |
|---|---|
Directive() |
| Modifier and Type | Method | Description |
|---|---|---|
int |
getColumn() |
for log msg purposes
|
int |
getLine() |
for log msg purposes
|
abstract java.lang.String |
getName() |
Return the name of this directive.
|
java.lang.String |
getScopeName() |
|
java.lang.String |
getTemplateName() |
|
abstract int |
getType() |
Get the directive type BLOCK/LINE.
|
boolean |
isScopeProvided() |
|
void |
setLocation(int line,
int column) |
Allows the template location to be set.
|
void |
setLocation(int line,
int column,
java.lang.String templateName) |
Allows the template location to be set.
|
public static final int BLOCK
public static final int LINE
public abstract java.lang.String getName()
public abstract int getType()
public void setLocation(int line,
int column)
line - column - public void setLocation(int line,
int column,
java.lang.String templateName)
line - column - public int getLine()
public int getColumn()
public java.lang.String getTemplateName()
public java.lang.String getScopeName()
public boolean isScopeProvided()
Copyright © 2002–2018 PMD. All rights reserved.