1
2
3
4
5
6
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
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