Class Directive
- java.lang.Object
-
- net.sourceforge.pmd.lang.vm.directive.Directive
-
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
Block,Break,Evaluate,Foreach,InputBase,Literal,Macro,RuntimeMacro,Stop,VelocimacroProxy
@Deprecated public abstract class Directive extends Object implements Cloneable
Deprecated.for removal in PMD 7.0.0Base class for all directives used in Velocity.- Version:
- $Id: Directive.java 778045 2009-05-23 22:17:46Z nbubna $
- Author:
- Jason van Zyl, Nathan Bubna
-
-
Constructor Summary
Constructors Constructor Description Directive()Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intgetColumn()Deprecated.for log msg purposesintgetLine()Deprecated.for log msg purposesabstract StringgetName()Deprecated.Return the name of this directive.StringgetScopeName()Deprecated.StringgetTemplateName()Deprecated.abstract intgetType()Deprecated.Get the directive type BLOCK/LINE.booleanisScopeProvided()Deprecated.voidsetLocation(int line, int column)Deprecated.Allows the template location to be set.voidsetLocation(int line, int column, String templateName)Deprecated.Allows the template location to be set.
-
-
-
Field Detail
-
BLOCK
public static final int BLOCK
Deprecated.Block directive indicator- See Also:
- Constant Field Values
-
LINE
public static final int LINE
Deprecated.Line directive indicator- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public abstract String getName()
Deprecated.Return the name of this directive.- Returns:
- The name of this directive.
-
getType
public abstract int getType()
Deprecated.Get the directive type BLOCK/LINE.- Returns:
- The directive type BLOCK/LINE.
-
setLocation
public void setLocation(int line, int column)Deprecated.Allows the template location to be set.- Parameters:
line-column-
-
setLocation
public void setLocation(int line, int column, String templateName)Deprecated.Allows the template location to be set.- Parameters:
line-column-
-
getLine
public int getLine()
Deprecated.for log msg purposes- Returns:
- The current line for log msg purposes.
-
getColumn
public int getColumn()
Deprecated.for log msg purposes- Returns:
- The current column for log msg purposes.
-
getTemplateName
public String getTemplateName()
Deprecated.- Returns:
- The template file name this directive was defined in, or null if not defined in a file.
-
getScopeName
public String getScopeName()
Deprecated.- Returns:
- the name to be used when a scope control is provided for this directive.
-
isScopeProvided
public boolean isScopeProvided()
Deprecated.- Returns:
- true if there will be a scope control injected into the context when rendering this directive.
-
-