Class Literal
- java.lang.Object
-
- net.sourceforge.pmd.lang.vm.directive.Directive
-
- net.sourceforge.pmd.lang.vm.directive.Literal
-
- All Implemented Interfaces:
Cloneable
@Deprecated public class Literal extends Directive
Deprecated.Use the #[[unparsed content]]# syntax instead. Deprecated for removal in PMD 7.0.0A very simple directive that leverages the Node.literal() to grab the literal rendition of a node. We basically grab the literal value on init(), then repeatedly use that during render(). This is deprecated and will be removed in Velocity 2.0; please use #[[unparsed content]]# instead.- Version:
- $Id: Literal.java 746438 2009-02-21 05:41:24Z nbubna $
- Author:
- Jason van Zyl
-
-
Constructor Summary
Constructors Constructor Description Literal()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getName()
Deprecated.Return name of this directive.int
getType()
Deprecated.Return type of this directive.boolean
isScopeProvided()
Deprecated.Since there is no processing of content, there is never a need for an internal scope.-
Methods inherited from class net.sourceforge.pmd.lang.vm.directive.Directive
getColumn, getLine, getScopeName, getTemplateName, setLocation, setLocation
-
-
-
-
Method Detail
-
getName
public String getName()
Deprecated.Return name of this directive.
-
getType
public int getType()
Deprecated.Return type of this directive.
-
isScopeProvided
public boolean isScopeProvided()
Deprecated.Since there is no processing of content, there is never a need for an internal scope.- Overrides:
isScopeProvided
in classDirective
- Returns:
- true if there will be a scope control injected into the context when rendering this directive.
-
-