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

java.lang.Object
  extended by net.sourceforge.pmd.lang.vm.directive.Directive
      extended by net.sourceforge.pmd.lang.vm.directive.VelocimacroProxy
All Implemented Interfaces:
Cloneable

public class VelocimacroProxy
extends Directive

VelocimacroProxy.java a proxy Directive-derived object to fit with the current directive system

Version:
$Id: VelocimacroProxy.java 898032 2010-01-11 19:51:03Z nbubna $
Author:
Geir Magnusson Jr.

Field Summary
 
Fields inherited from class net.sourceforge.pmd.lang.vm.directive.Directive
BLOCK, LINE
 
Constructor Summary
VelocimacroProxy()
           
 
Method Summary
 String getName()
          Return name of this Velocimacro.
 int getNumArgs()
          returns the number of ars needed for this VM
 int getType()
          Velocimacros are always LINE type directives.
 void setArgArray(String[] arr)
          sets the array of arguments specified in the macro definition
 void setName(String name)
          sets the directive name of this VM
 
Methods inherited from class net.sourceforge.pmd.lang.vm.directive.Directive
getColumn, getLine, getScopeName, getTemplateName, isScopeProvided, setLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VelocimacroProxy

public VelocimacroProxy()
Method Detail

getName

public String getName()
Return name of this Velocimacro.

Specified by:
getName in class Directive
Returns:
The name of this Velocimacro.

getType

public int getType()
Velocimacros are always LINE type directives.

Specified by:
getType in class Directive
Returns:
The type of this directive.

setName

public void setName(String name)
sets the directive name of this VM

Parameters:
name -

setArgArray

public void setArgArray(String[] arr)
sets the array of arguments specified in the macro definition

Parameters:
arr -

getNumArgs

public int getNumArgs()
returns the number of ars needed for this VM

Returns:
The number of ars needed for this VM


Copyright © 2002–2015 InfoEther. All rights reserved.