/** * BSD-style license; for more info see http://pmd.sourceforge.net/license.html */ /* Generated By:JJTree: Do not edit this line. ASTMethodDeclaration.java Version 4.1 */ /* JavaCCOptions:MULTI=true,NODE_USES_PARSER=true,VISITOR=true,TRACK_TOKENS=true,NODE_PREFIX=AST,NODE_EXTENDS=,NODE_FACTORY= */ package net.sourceforge.pmd.lang.plsql.ast; public class ASTMethodDeclaration extends AbstractPLSQLNode implements ExecutableCode { public ASTMethodDeclaration(int id) { super(id); } public ASTMethodDeclaration(PLSQLParser p, int id) { super(p, id); } /** Accept the visitor. **/ public Object jjtAccept(PLSQLParserVisitor visitor, Object data) { return visitor.visit(this, data); } /** * Gets the name of the method. * * @return a String representing the name of the method */ @Override public String getMethodName() { ASTMethodDeclarator md = getFirstDescendantOfType(ASTMethodDeclarator.class); if (md != null) { return md.getImage(); } return null; } } /* * JavaCC - OriginalChecksum=f4e143bd15adcb918d9ecd2757108a24 (do not edit this * line) */