net.sourceforge.pmd.lang.apex.ast.ASTFieldDeclaration Maven / Gradle / Ivy
/*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.apex.ast;
import com.google.summit.ast.declaration.FieldDeclaration;
public final class ASTFieldDeclaration extends AbstractApexNode.Single {
ASTFieldDeclaration(FieldDeclaration fieldDeclaration) {
super(fieldDeclaration);
}
@Override
protected R acceptApexVisitor(ApexVisitor super P, ? extends R> visitor, P data) {
return visitor.visit(this, data);
}
@Override
public String getImage() {
return getName();
}
public String getName() {
return node.getId().getString();
}
}