|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.pmd.lang.vm.directive.Directive
public abstract class Directive
Base class for all directives used in Velocity.
Field Summary | |
---|---|
static int |
BLOCK
Block directive indicator |
static int |
LINE
Line directive indicator |
Constructor Summary | |
---|---|
Directive()
|
Method Summary | |
---|---|
int |
getColumn()
for log msg purposes |
int |
getLine()
for log msg purposes |
abstract String |
getName()
Return the name of this directive. |
String |
getScopeName()
|
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,
String templateName)
Allows the template location to be set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int BLOCK
public static final int LINE
Constructor Detail |
---|
public Directive()
Method Detail |
---|
public abstract String getName()
public abstract int getType()
public void setLocation(int line, int column)
line
- column
- public void setLocation(int line, int column, String templateName)
line
- column
- public int getLine()
public int getColumn()
public String getTemplateName()
public String getScopeName()
public boolean isScopeProvided()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |