net.sourceforge.pmd.lang.vm.ast
Class ASTMethod

java.lang.Object
  extended by net.sourceforge.pmd.lang.ast.AbstractNode
      extended by net.sourceforge.pmd.lang.vm.ast.AbstractVmNode
          extended by net.sourceforge.pmd.lang.vm.ast.ASTMethod
All Implemented Interfaces:
Node, VmNode

public class ASTMethod
extends AbstractVmNode

ASTMethod.java Method support for references : $foo.method() NOTE : introspection is now done at render time. Please look at the Parser.jjt file which is what controls the generation of this class.

Version:
$Id: ASTMethod.java 720228 2008-11-24 16:58:33Z nbubna $
Author:
Jason van Zyl, Geir Magnusson Jr.

Nested Class Summary
static class ASTMethod.MethodCacheKey
          Internal class used as key for method cache.
 
Field Summary
 
Fields inherited from class net.sourceforge.pmd.lang.vm.ast.AbstractVmNode
first, info, invalid, last, parser, state, templateName
 
Fields inherited from class net.sourceforge.pmd.lang.ast.AbstractNode
beginColumn, beginLine, childIndex, children, endColumn, endLine, id, parent
 
Constructor Summary
ASTMethod(int id)
           
ASTMethod(VmParser p, int id)
           
 
Method Summary
 String getMethodName()
           
 Object jjtAccept(VmParserVisitor visitor, Object data)
          Accept the visitor.
 
Methods inherited from class net.sourceforge.pmd.lang.vm.ast.AbstractVmNode
childrenAccept, dump, getColumn, getFirstToken, getInfo, getLastToken, getLine, getTemplateName, getType, isInvalid, jjtClose, jjtOpen, literal, setFirstToken, setInfo, setInvalid, toString, toString
 
Methods inherited from class net.sourceforge.pmd.lang.ast.AbstractNode
appendElement, findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, hasDecendantOfAnyType, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, isSingleLine, jjtAddChild, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtSetChildIndex, jjtSetParent, setDataFlowNode, setImage, setUserData, testingOnly__setBeginColumn, testingOnly__setBeginLine, testingOnly__setEndColumn, testingOnly__setEndLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sourceforge.pmd.lang.ast.Node
findChildNodesWithXPath, findChildrenOfType, findDescendantsOfType, findDescendantsOfType, getAsDocument, getBeginColumn, getBeginLine, getDataFlowNode, getEndColumn, getEndLine, getFirstChildOfType, getFirstDescendantOfType, getFirstParentOfType, getImage, getNthParent, getParentsOfType, getUserData, hasDescendantMatchingXPath, hasDescendantOfType, hasImageEqualTo, isFindBoundary, jjtAddChild, jjtGetChild, jjtGetChildIndex, jjtGetId, jjtGetNumChildren, jjtGetParent, jjtSetChildIndex, jjtSetParent, setDataFlowNode, setImage, setUserData
 

Constructor Detail

ASTMethod

public ASTMethod(int id)
Parameters:
id -

ASTMethod

public ASTMethod(VmParser p,
                 int id)
Parameters:
p -
id -
Method Detail

jjtAccept

public Object jjtAccept(VmParserVisitor visitor,
                        Object data)
Description copied from interface: VmNode
Accept the visitor. *

Specified by:
jjtAccept in interface VmNode
Overrides:
jjtAccept in class AbstractVmNode
See Also:
org.apache.velocity.runtime.parser.node.SimpleNode#jjtAccept(org.apache.velocity.runtime.parser.node.VmParserVisitor, java.lang.Object)

getMethodName

public String getMethodName()
Returns:
Returns the methodName.
Since:
1.5


Copyright © 2002–2015 InfoEther. All rights reserved.