net.sourceforge.pmd.ast
Class ASTType

java.lang.Object
  extended bynet.sourceforge.pmd.ast.SimpleNode
      extended bynet.sourceforge.pmd.ast.ASTType
All Implemented Interfaces:
Node

public class ASTType
extends SimpleNode


Field Summary
private  int dimensions
           
private  boolean isArray
           
 
Fields inherited from class net.sourceforge.pmd.ast.SimpleNode
children, id, parent, parser
 
Constructor Summary
ASTType(int id)
           
ASTType(JavaParser p, int id)
           
 
Method Summary
 void addDimension()
           
 void dump(java.lang.String prefix)
           
 int getDimensions()
          Note that this is only valid for array types.
 boolean isArray()
           
 java.lang.Object jjtAccept(JavaParserVisitor visitor, java.lang.Object data)
          Accept the visitor.
 void setIsArray()
           
 
Methods inherited from class net.sourceforge.pmd.ast.SimpleNode
childrenAccept, dumpChildren, findChildrenOfType, findChildrenOfType, findChildrenOfType, getBeginColumn, getBeginLine, getEndColumn, getEndLine, getFirstParentOfType, getImage, getParentsOfType, getScope, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, setImage, setScope, testingOnly__setBeginColumn, testingOnly__setBeginLine, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

isArray

private boolean isArray

dimensions

private int dimensions
Constructor Detail

ASTType

public ASTType(int id)

ASTType

public ASTType(JavaParser p,
               int id)
Method Detail

isArray

public boolean isArray()

setIsArray

public void setIsArray()

addDimension

public void addDimension()

getDimensions

public int getDimensions()
Note that this is only valid for array types. It'd be better to have a ASTType subclass for this.


jjtAccept

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

Specified by:
jjtAccept in interface Node
Overrides:
jjtAccept in class SimpleNode

dump

public void dump(java.lang.String prefix)
Overrides:
dump in class SimpleNode