/*
Copyright (C) 2013 Raquel Pau and Albert Coroleu.
Walkmod is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Walkmod is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with Walkmod. If not, see <http://www.gnu.org/licenses/>.*/
package org.walkmod.javalang.visitors;
import java.util.List;
import org.walkmod.javalang.ast.BlockComment;
import org.walkmod.javalang.ast.CompilationUnit;
import org.walkmod.javalang.ast.ImportDeclaration;
import org.walkmod.javalang.ast.LineComment;
import org.walkmod.javalang.ast.PackageDeclaration;
import org.walkmod.javalang.ast.TypeParameter;
import org.walkmod.javalang.ast.body.AnnotationDeclaration;
import org.walkmod.javalang.ast.body.AnnotationMemberDeclaration;
import org.walkmod.javalang.ast.body.BodyDeclaration;
import org.walkmod.javalang.ast.body.ClassOrInterfaceDeclaration;
import org.walkmod.javalang.ast.body.ConstructorDeclaration;
import org.walkmod.javalang.ast.body.EmptyMemberDeclaration;
import org.walkmod.javalang.ast.body.EmptyTypeDeclaration;
import org.walkmod.javalang.ast.body.EnumConstantDeclaration;
import org.walkmod.javalang.ast.body.EnumDeclaration;
import org.walkmod.javalang.ast.body.FieldDeclaration;
import org.walkmod.javalang.ast.body.InitializerDeclaration;
import org.walkmod.javalang.ast.body.JavadocComment;
import org.walkmod.javalang.ast.body.MethodDeclaration;
import org.walkmod.javalang.ast.body.MultiTypeParameter;
import org.walkmod.javalang.ast.body.Parameter;
import org.walkmod.javalang.ast.body.TypeDeclaration;
import org.walkmod.javalang.ast.body.VariableDeclarator;
import org.walkmod.javalang.ast.body.VariableDeclaratorId;
import org.walkmod.javalang.ast.expr.AnnotationExpr;
import org.walkmod.javalang.ast.expr.ArrayAccessExpr;
import org.walkmod.javalang.ast.expr.ArrayCreationExpr;
import org.walkmod.javalang.ast.expr.ArrayInitializerExpr;
import org.walkmod.javalang.ast.expr.AssignExpr;
import org.walkmod.javalang.ast.expr.BinaryExpr;
import org.walkmod.javalang.ast.expr.BooleanLiteralExpr;
import org.walkmod.javalang.ast.expr.CastExpr;
import org.walkmod.javalang.ast.expr.CharLiteralExpr;
import org.walkmod.javalang.ast.expr.ClassExpr;
import org.walkmod.javalang.ast.expr.ConditionalExpr;
import org.walkmod.javalang.ast.expr.DoubleLiteralExpr;
import org.walkmod.javalang.ast.expr.EnclosedExpr;
import org.walkmod.javalang.ast.expr.Expression;
import org.walkmod.javalang.ast.expr.FieldAccessExpr;
import org.walkmod.javalang.ast.expr.InstanceOfExpr;
import org.walkmod.javalang.ast.expr.IntegerLiteralExpr;
import org.walkmod.javalang.ast.expr.IntegerLiteralMinValueExpr;
import org.walkmod.javalang.ast.expr.LambdaExpr;
import org.walkmod.javalang.ast.expr.LongLiteralExpr;
import org.walkmod.javalang.ast.expr.LongLiteralMinValueExpr;
import org.walkmod.javalang.ast.expr.MarkerAnnotationExpr;
import org.walkmod.javalang.ast.expr.MemberValuePair;
import org.walkmod.javalang.ast.expr.MethodCallExpr;
import org.walkmod.javalang.ast.expr.MethodReferenceExpr;
import org.walkmod.javalang.ast.expr.NameExpr;
import org.walkmod.javalang.ast.expr.NormalAnnotationExpr;
import org.walkmod.javalang.ast.expr.NullLiteralExpr;
import org.walkmod.javalang.ast.expr.ObjectCreationExpr;
import org.walkmod.javalang.ast.expr.QualifiedNameExpr;
import org.walkmod.javalang.ast.expr.SingleMemberAnnotationExpr;
import org.walkmod.javalang.ast.expr.StringLiteralExpr;
import org.walkmod.javalang.ast.expr.SuperExpr;
import org.walkmod.javalang.ast.expr.ThisExpr;
import org.walkmod.javalang.ast.expr.TypeExpr;
import org.walkmod.javalang.ast.expr.UnaryExpr;
import org.walkmod.javalang.ast.expr.VariableDeclarationExpr;
import org.walkmod.javalang.ast.stmt.AssertStmt;
import org.walkmod.javalang.ast.stmt.BlockStmt;
import org.walkmod.javalang.ast.stmt.BreakStmt;
import org.walkmod.javalang.ast.stmt.CatchClause;
import org.walkmod.javalang.ast.stmt.ContinueStmt;
import org.walkmod.javalang.ast.stmt.DoStmt;
import org.walkmod.javalang.ast.stmt.EmptyStmt;
import org.walkmod.javalang.ast.stmt.ExplicitConstructorInvocationStmt;
import org.walkmod.javalang.ast.stmt.ExpressionStmt;
import org.walkmod.javalang.ast.stmt.ForStmt;
import org.walkmod.javalang.ast.stmt.ForeachStmt;
import org.walkmod.javalang.ast.stmt.IfStmt;
import org.walkmod.javalang.ast.stmt.LabeledStmt;
import org.walkmod.javalang.ast.stmt.ReturnStmt;
import org.walkmod.javalang.ast.stmt.Statement;
import org.walkmod.javalang.ast.stmt.SwitchEntryStmt;
import org.walkmod.javalang.ast.stmt.SwitchStmt;
import org.walkmod.javalang.ast.stmt.SynchronizedStmt;
import org.walkmod.javalang.ast.stmt.ThrowStmt;
import org.walkmod.javalang.ast.stmt.TryStmt;
import org.walkmod.javalang.ast.stmt.TypeDeclarationStmt;
import org.walkmod.javalang.ast.stmt.WhileStmt;
import org.walkmod.javalang.ast.type.ClassOrInterfaceType;
import org.walkmod.javalang.ast.type.IntersectionType;
import org.walkmod.javalang.ast.type.PrimitiveType;
import org.walkmod.javalang.ast.type.ReferenceType;
import org.walkmod.javalang.ast.type.Type;
import org.walkmod.javalang.ast.type.VoidType;
import org.walkmod.javalang.ast.type.WildcardType;
/**
* @author Julio Vilmar Gesser
*/
public abstract class VoidVisitorAdapter<A> implements VoidVisitor<A> {
public void visit(AnnotationDeclaration n, A arg) {
if (n.getJavaDoc() != null) {
n.getJavaDoc().accept(this, arg);
}
if (n.getAnnotations() != null) {
for (AnnotationExpr a : n.getAnnotations()) {
a.accept(this, arg);
}
}
if (n.getMembers() != null) {
for (BodyDeclaration member : n.getMembers()) {
member.accept(this, arg);
}
}
}
public void visit(AnnotationMemberDeclaration n, A arg) {
if (n.getJavaDoc() != null) {
n.getJavaDoc().accept(this, arg);
}
if (n.getAnnotations() != null) {
for (AnnotationExpr a : n.getAnnotations()) {
a.accept(this, arg);
}
}
n.getType().accept(this, arg);
if (n.getDefaultValue() != null) {
n.getDefaultValue().accept(this, arg);
}
}
public void visit(ArrayAccessExpr n, A arg) {
n.getName().accept(this, arg);
n.getIndex().accept(this, arg);
}
public void visit(ArrayCreationExpr n, A arg) {
n.getType().accept(this, arg);
if (n.getDimensions() != null) {
for (Expression dim : n.getDimensions()) {
dim.accept(this, arg);
}
} else {
n.getInitializer().accept(this, arg);
}
if (n.getArraysAnnotations() != null) {
for (List<AnnotationExpr> annList : n.getArraysAnnotations()) {
if (annList != null) {
for (AnnotationExpr ae : annList) {
ae.accept(this, arg);
}
}
}
}
}
public void visit(ArrayInitializerExpr n, A arg) {
if (n.getValues() != null) {
for (Expression expr : n.getValues()) {
expr.accept(this, arg);
}
}
}
public void visit(AssertStmt n, A arg) {
n.getCheck().accept(this, arg);
if (n.getMessage() != null) {
n.getMessage().accept(this, arg);
}
}
public void visit(AssignExpr n, A arg) {
n.getTarget().accept(this, arg);
n.getValue().accept(this, arg);
}
public void visit(BinaryExpr n, A arg) {
n.getLeft().accept(this, arg);
n.getRight().accept(this, arg);
}
public void visit(BlockComment n, A arg) {
}
public void visit(BlockStmt n, A arg) {
if (n.getStmts() != null) {
for (Statement s : n.getStmts()) {
s.accept(this, arg);
}
}
}
public void visit(BooleanLiteralExpr n, A arg) {
}
public void visit(BreakStmt n, A arg) {
}
public void visit(CastExpr n, A arg) {
n.getType().accept(this, arg);
n.getExpr().accept(this, arg);
}
public void visit(CatchClause n, A arg) {
n.getExcept().accept(this, arg);
n.getCatchBlock().accept(this, arg);
}
public void visit(CharLiteralExpr n, A arg) {
}
public void visit(ClassExpr n, A arg) {
n.getType().accept(this, arg);
}
public void visit(ClassOrInterfaceDeclaration n, A arg) {
if (n.getJavaDoc() != null) {
n.getJavaDoc().accept(this, arg);
}
if (n.getAnnotations() != null) {
for (AnnotationExpr a : n.getAnnotations()) {
a.accept(this, arg);
}
}
if (n.getTypeParameters() != null) {
for (TypeParameter t : n.getTypeParameters()) {
t.accept(this, arg);
}
}
if (n.getExtends() != null) {
for (ClassOrInterfaceType c : n.getExtends()) {
c.accept(this, arg);
}
}
if (n.getImplements() != null) {
for (ClassOrInterfaceType c : n.getImplements()) {
c.accept(this, arg);
}
}
if (n.getMembers() != null) {
for (BodyDeclaration member : n.getMembers()) {
member.accept(this, arg);
}
}
}
public void visit(ClassOrInterfaceType n, A arg) {
if (n.getScope() != null) {
n.getScope().accept(this, arg);
}
if (n.getTypeArgs() != null) {
for (Type t : n.getTypeArgs()) {
t.accept(this, arg);
}
}
if (n.getAnnotations() != null) {
for (AnnotationExpr ae : n.getAnnotations()) {
ae.accept(this, arg);
}
}
}
public void visit(CompilationUnit n, A arg) {
if (n.getPackage() != null) {
n.getPackage().accept(this, arg);
}
if (n.getImports() != null) {
for (ImportDeclaration i : n.getImports()) {
i.accept(this, arg);
}
}
if (n.getTypes() != null) {
for (TypeDeclaration typeDeclaration : n.getTypes()) {
typeDeclaration.accept(this, arg);
}
}
}
public void visit(ConditionalExpr n, A arg) {
n.getCondition().accept(this, arg);
n.getThenExpr().accept(this, arg);
n.getElseExpr().accept(this, arg);
}
public void visit(ConstructorDeclaration n, A arg) {
if (n.getJavaDoc() != null) {
n.getJavaDoc().accept(this, arg);
}
if (n.getAnnotations() != null) {
for (AnnotationExpr a : n.getAnnotations()) {
a.accept(this, arg);
}
}
if (n.getTypeParameters() != null) {
for (TypeParameter t : n.getTypeParameters()) {
t.accept(this, arg);
}
}
if (n.getParameters() != null) {
for (Parameter p : n.getParameters()) {
p.accept(this, arg);
}
}
if (n.getThrows() != null) {
for (ClassOrInterfaceType name : n.getThrows()) {
name.accept(this, arg);
}
}
n.getBlock().accept(this, arg);
}
public void visit(ContinueStmt n, A arg) {
}
public void visit(DoStmt n, A arg) {
n.getBody().accept(this, arg);
n.getCondition().accept(this, arg);
}
public void visit(DoubleLiteralExpr n, A arg) {
}
public void visit(EmptyMemberDeclaration n, A arg) {
if (n.getJavaDoc() != null) {
n.getJavaDoc().accept(this, arg);
}
}
public void visit(EmptyStmt n, A arg) {
}
public void visit(EmptyTypeDeclaration n, A arg) {
if (n.getJavaDoc() != null) {
n.getJavaDoc().accept(this, arg);
}
}
public void visit(EnclosedExpr n, A arg) {
n.getInner().accept(this, arg);
}
public void visit(EnumConstantDeclaration n, A arg) {
if (n.getJavaDoc() != null) {
n.getJavaDoc().accept(this, arg);
}
if (n.getAnnotations() != null) {
for (AnnotationExpr a : n.getAnnotations()) {
a.accept(this, arg);
}
}
if (n.getArgs() != null) {
for (Expression e : n.getArgs()) {
e.accept(this, arg);
}
}
if (n.getClassBody() != null) {
for (BodyDeclaration member : n.getClassBody()) {
member.accept(this, arg);
}
}
}
public void visit(EnumDeclaration n, A arg) {
if (n.getJavaDoc() != null) {
n.getJavaDoc().accept(this, arg);
}
if (n.getAnnotations() != null) {
for (AnnotationExpr a : n.getAnnotations()) {
a.accept(this, arg);
}
}
if (n.getImplements() != null) {
for (ClassOrInterfaceType c : n.getImplements()) {
c.accept(this, arg);
}
}
if (n.getEntries() != null) {
for (EnumConstantDeclaration e : n.getEntries()) {
e.accept(this, arg);
}
}
if (n.getMembers() != null) {
for (BodyDeclaration member : n.getMembers()) {
member.accept(this, arg);
}
}
}
public void visit(ExplicitConstructorInvocationStmt n, A arg) {
if (!n.isThis()) {
if (n.getExpr() != null) {
n.getExpr().accept(this, arg);
}
}
if (n.getTypeArgs() != null) {
for (Type t : n.getTypeArgs()) {
t.accept(this, arg);
}
}
if (n.getArgs() != null) {
for (Expression e : n.getArgs()) {
e.accept(this, arg);
}
}
}
public void visit(ExpressionStmt n, A arg) {
n.getExpression().accept(this, arg);
}
public void visit(FieldAccessExpr n, A arg) {
n.getScope().accept(this, arg);
}
public void visit(FieldDeclaration n, A arg) {
if (n.getJavaDoc() != null) {
n.getJavaDoc().accept(this, arg);
}
if (n.getAnnotations() != null) {
for (AnnotationExpr a : n.getAnnotations()) {
a.accept(this, arg);
}
}
n.getType().accept(this, arg);
for (VariableDeclarator var : n.getVariables()) {
var.accept(this, arg);
}
}
public void visit(ForeachStmt n, A arg) {
n.getVariable().accept(this, arg);
n.getIterable().accept(this, arg);
n.getBody().accept(this, arg);
}
public void visit(ForStmt n, A arg) {
if (n.getInit() != null) {
for (Expression e : n.getInit()) {
e.accept(this, arg);
}
}
if (n.getCompare() != null) {
n.getCompare().accept(this, arg);
}
if (n.getUpdate() != null) {
for (Expression e : n.getUpdate()) {
e.accept(this, arg);
}
}
n.getBody().accept(this, arg);
}
public void visit(IfStmt n, A arg) {
n.getCondition().accept(this, arg);
n.getThenStmt().accept(this, arg);
if (n.getElseStmt() != null) {
n.getElseStmt().accept(this, arg);
}
}
public void visit(ImportDeclaration n, A arg) {
n.getName().accept(this, arg);
}
public void visit(InitializerDeclaration n, A arg) {
if (n.getJavaDoc() != null) {
n.getJavaDoc().accept(this, arg);
}
n.getBlock().accept(this, arg);
}
public void visit(InstanceOfExpr n, A arg) {
n.getExpr().accept(this, arg);
n.getType().accept(this, arg);
}
public void visit(IntegerLiteralExpr n, A arg) {
}
public void visit(IntegerLiteralMinValueExpr n, A arg) {
}
public void visit(JavadocComment n, A arg) {
}
public void visit(LabeledStmt n, A arg) {
n.getStmt().accept(this, arg);
}
public void visit(LineComment n, A arg) {
}
public void visit(LongLiteralExpr n, A arg) {
}
public void visit(LongLiteralMinValueExpr n, A arg) {
}
public void visit(MarkerAnnotationExpr n, A arg) {
n.getName().accept(this, arg);
}
public void visit(MemberValuePair n, A arg) {
n.getValue().accept(this, arg);
}
public void visit(MethodCallExpr n, A arg) {
if (n.getScope() != null) {
n.getScope().accept(this, arg);
}
if (n.getTypeArgs() != null) {
for (Type t : n.getTypeArgs()) {
t.accept(this, arg);
}
}
if (n.getArgs() != null) {
for (Expression e : n.getArgs()) {
e.accept(this, arg);
}
}
}
public void visit(MethodDeclaration n, A arg) {
if (n.getJavaDoc() != null) {
n.getJavaDoc().accept(this, arg);
}
if (n.getAnnotations() != null) {
for (AnnotationExpr a : n.getAnnotations()) {
a.accept(this, arg);
}
}
if (n.getTypeParameters() != null) {
for (TypeParameter t : n.getTypeParameters()) {
t.accept(this, arg);
}
}
n.getType().accept(this, arg);
if (n.getParameters() != null) {
for (Parameter p : n.getParameters()) {
p.accept(this, arg);
}
}
if (n.getThrows() != null) {
for (ClassOrInterfaceType name : n.getThrows()) {
name.accept(this, arg);
}
}
if (n.getBody() != null) {
n.getBody().accept(this, arg);
}
}
public void visit(NameExpr n, A arg) {
}
public void visit(NormalAnnotationExpr n, A arg) {
n.getName().accept(this, arg);
if (n.getPairs() != null) {
for (MemberValuePair m : n.getPairs()) {
m.accept(this, arg);
}
}
}
public void visit(NullLiteralExpr n, A arg) {
}
public void visit(ObjectCreationExpr n, A arg) {
if (n.getScope() != null) {
n.getScope().accept(this, arg);
}
if (n.getTypeArgs() != null) {
for (Type t : n.getTypeArgs()) {
t.accept(this, arg);
}
}
n.getType().accept(this, arg);
if (n.getArgs() != null) {
for (Expression e : n.getArgs()) {
e.accept(this, arg);
}
}
if (n.getAnonymousClassBody() != null) {
for (BodyDeclaration member : n.getAnonymousClassBody()) {
member.accept(this, arg);
}
}
}
public void visit(PackageDeclaration n, A arg) {
if (n.getAnnotations() != null) {
for (AnnotationExpr a : n.getAnnotations()) {
a.accept(this, arg);
}
}
n.getName().accept(this, arg);
}
public void visit(Parameter n, A arg) {
if (n.getAnnotations() != null) {
for (AnnotationExpr a : n.getAnnotations()) {
a.accept(this, arg);
}
}
if (n.getType() != null) {
n.getType().accept(this, arg);
}
n.getId().accept(this, arg);
}
public void visit(PrimitiveType n, A arg) {
if (n.getAnnotations() != null) {
for (AnnotationExpr ae : n.getAnnotations()) {
ae.accept(this, arg);
}
}
}
public void visit(QualifiedNameExpr n, A arg) {
n.getQualifier().accept(this, arg);
}
public void visit(ReferenceType n, A arg) {
n.getType().accept(this, arg);
if (n.getAnnotations() != null) {
for (AnnotationExpr ae : n.getAnnotations()) {
ae.accept(this, arg);
}
}
if (n.getArraysAnnotations() != null) {
for (List<AnnotationExpr> annList : n.getArraysAnnotations()) {
if (annList != null) {
for (AnnotationExpr ae : annList) {
ae.accept(this, arg);
}
}
}
}
}
public void visit(ReturnStmt n, A arg) {
if (n.getExpr() != null) {
n.getExpr().accept(this, arg);
}
}
public void visit(SingleMemberAnnotationExpr n, A arg) {
n.getName().accept(this, arg);
n.getMemberValue().accept(this, arg);
}
public void visit(StringLiteralExpr n, A arg) {
}
public void visit(SuperExpr n, A arg) {
if (n.getClassExpr() != null) {
n.getClassExpr().accept(this, arg);
}
}
public void visit(SwitchEntryStmt n, A arg) {
if (n.getLabel() != null) {
n.getLabel().accept(this, arg);
}
if (n.getStmts() != null) {
for (Statement s : n.getStmts()) {
s.accept(this, arg);
}
}
}
public void visit(SwitchStmt n, A arg) {
n.getSelector().accept(this, arg);
if (n.getEntries() != null) {
for (SwitchEntryStmt e : n.getEntries()) {
e.accept(this, arg);
}
}
}
public void visit(SynchronizedStmt n, A arg) {
n.getExpr().accept(this, arg);
n.getBlock().accept(this, arg);
}
public void visit(ThisExpr n, A arg) {
if (n.getClassExpr() != null) {
n.getClassExpr().accept(this, arg);
}
}
public void visit(ThrowStmt n, A arg) {
n.getExpr().accept(this, arg);
}
public void visit(TryStmt n, A arg) {
List<VariableDeclarationExpr> resources = n.getResources();
if(resources != null){
for(VariableDeclarationExpr resource: resources){
resource.accept(this, arg);
}
}
n.getTryBlock().accept(this, arg);
if (n.getCatchs() != null) {
for (CatchClause c : n.getCatchs()) {
c.accept(this, arg);
}
}
if (n.getFinallyBlock() != null) {
n.getFinallyBlock().accept(this, arg);
}
}
public void visit(TypeDeclarationStmt n, A arg) {
n.getTypeDeclaration().accept(this, arg);
}
public void visit(TypeParameter n, A arg) {
if (n.getTypeBound() != null) {
for (ClassOrInterfaceType c : n.getTypeBound()) {
c.accept(this, arg);
}
}
if (n.getAnnotations() != null) {
for (AnnotationExpr ann : n.getAnnotations()) {
ann.accept(this, arg);
}
}
}
public void visit(UnaryExpr n, A arg) {
n.getExpr().accept(this, arg);
}
public void visit(VariableDeclarationExpr n, A arg) {
if (n.getAnnotations() != null) {
for (AnnotationExpr a : n.getAnnotations()) {
a.accept(this, arg);
}
}
n.getType().accept(this, arg);
for (VariableDeclarator v : n.getVars()) {
v.accept(this, arg);
}
}
public void visit(VariableDeclarator n, A arg) {
n.getId().accept(this, arg);
if (n.getInit() != null) {
n.getInit().accept(this, arg);
}
}
public void visit(VariableDeclaratorId n, A arg) {
}
public void visit(VoidType n, A arg) {
if (n.getAnnotations() != null) {
for (AnnotationExpr ae : n.getAnnotations()) {
ae.accept(this, arg);
}
}
}
public void visit(WhileStmt n, A arg) {
n.getCondition().accept(this, arg);
n.getBody().accept(this, arg);
}
public void visit(WildcardType n, A arg) {
if (n.getExtends() != null) {
n.getExtends().accept(this, arg);
}
if (n.getSuper() != null) {
n.getSuper().accept(this, arg);
}
if (n.getAnnotations() != null) {
for (AnnotationExpr ae : n.getAnnotations()) {
ae.accept(this, arg);
}
}
}
@Override
public void visit(final MultiTypeParameter n, final A arg) {
if (n.getAnnotations() != null) {
for (final AnnotationExpr a : n.getAnnotations()) {
a.accept(this, arg);
}
}
for (final Type type : n.getTypes()) {
type.accept(this, arg);
}
n.getId().accept(this, arg);
}
@Override
public void visit(LambdaExpr n, final A arg) {
if (n.getParameters() != null) {
for (final Parameter a : n.getParameters()) {
a.accept(this, arg);
}
}
if (n.getBody() != null) {
n.getBody().accept(this, arg);
}
}
public void visit(MethodReferenceExpr n, final A arg) {
if (n.getTypeParameters() != null) {
for (final TypeParameter a : n.getTypeParameters()) {
a.accept(this, arg);
}
}
if (n.getScope() != null) {
n.getScope().accept(this, arg);
}
}
public void visit(TypeExpr n, final A arg) {
if (n.getType() != null) {
n.getType().accept(this, arg);
}
}
public void visit(IntersectionType n, A arg) {
if(n.getAnnotations() != null){
for (final AnnotationExpr ae: n.getAnnotations()){
ae.accept(this, arg);
}
}
if(n.getBounds() != null){
for(final ReferenceType t: n.getBounds()){
t.accept(this, arg);
}
}
}
}