net.sourceforge.pmd.ast

Class ASTThrowStatement

public class ASTThrowStatement extends SimpleJavaNode

Constructor Summary
ASTThrowStatement(int id)
ASTThrowStatement(JavaParser p, int id)
Method Summary
StringgetFirstClassOrInterfaceTypeImage()
Gets the image of the first ASTClassOrInterfaceType child or null if none is found.
ObjectjjtAccept(JavaParserVisitor visitor, Object data)
Accept the visitor.

Constructor Detail

ASTThrowStatement

public ASTThrowStatement(int id)

ASTThrowStatement

public ASTThrowStatement(JavaParser p, int id)

Method Detail

getFirstClassOrInterfaceTypeImage

public final String getFirstClassOrInterfaceTypeImage()
Gets the image of the first ASTClassOrInterfaceType child or null if none is found. Note that when the statement is something like throw new Exception, this method returns 'Exception' and if the throw statement is like throw e: this method returns 'e'. A special case of returning null is when the throws is like throw this.e or throw this.

TODO - use symbol table (?)

Returns: the image of the first ASTClassOrInterfaceType node found or null

jjtAccept

public Object jjtAccept(JavaParserVisitor visitor, Object data)
Accept the visitor. *