View Javadoc

1   /**
2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3    */
4   
5   /* Generated By:JJTree: Do not edit this line. ASTFormalParameter.java Version 4.1 */
6   /* JavaCCOptions:MULTI=true,NODE_USES_PARSER=true,VISITOR=true,TRACK_TOKENS=false,NODE_PREFIX=AST,NODE_EXTENDS=,NODE_FACTORY= */
7   package net.sourceforge.pmd.lang.plsql.ast;
8   
9   public class ASTFormalParameter extends net.sourceforge.pmd.lang.plsql.ast.AbstractPLSQLNode{
10    public ASTFormalParameter(int id) {
11      super(id);
12    }
13  
14    public ASTFormalParameter(PLSQLParser p, int id) {
15      super(p, id);
16    }
17  
18  
19    /** Accept the visitor. **/
20    public Object jjtAccept(PLSQLParserVisitor visitor, Object data) {
21      return visitor.visit(this, data);
22    }
23  
24    public ASTDatatype getTypeNode() {
25      for (int i = 0; i < jjtGetNumChildren(); i++) {
26        if (jjtGetChild(i) instanceof ASTDatatype) {
27          return (ASTDatatype) jjtGetChild(i);
28        }
29      }
30      throw new IllegalStateException("ASTType not found");
31    }
32  }
33  /* JavaCC - OriginalChecksum=38c9b79b92b886cd6d4930425644aab3 (do not edit this line) */