net.sourceforge.pmd.lang.vm.directive
Class Block

java.lang.Object
  extended by net.sourceforge.pmd.lang.vm.directive.Directive
      extended by net.sourceforge.pmd.lang.vm.directive.Block
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
BlockMacro, Define

public abstract class Block
extends Directive

Directive that puts an unrendered AST block in the context under the specified key, postponing rendering until the reference is used and rendered.

Since:
1.7
Version:
$Id: Block.java 686842 2008-08-18 18:29:31Z nbubna $
Author:
Andrew Tetlaw, Nathan Bubna, Jarkko Viinamaki

Field Summary
protected  String key
           
 
Fields inherited from class net.sourceforge.pmd.lang.vm.directive.Directive
BLOCK, LINE
 
Constructor Summary
Block()
           
 
Method Summary
 int getType()
          Return type of this directive.
 
Methods inherited from class net.sourceforge.pmd.lang.vm.directive.Directive
getColumn, getLine, getName, getScopeName, getTemplateName, isScopeProvided, setLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

key

protected String key
Constructor Detail

Block

public Block()
Method Detail

getType

public int getType()
Return type of this directive.

Specified by:
getType in class Directive
Returns:
The directive type BLOCK/LINE.


Copyright © 2002–2015 InfoEther. All rights reserved.