Java Reference
In-Depth Information
class NodeVisitor
procedure
( n )
foreach c n . getChildren() do
visit
C
hildren
call c . accept( this )
11
end
end
class SemanticsVisitor extends NodeVisitor
/ visit
methods for other node types are defined in Section 8.8
/
end
class TopDeclVisitor extends SemanticsVisitor
procedure visit
(VariableListDeclaring vld )
12
/
Section 8.6.1 on page 303
/
end
procedure
visit
(TypeDeclaring td )
13
/
Section 8.6.3 on page 305
/
end
procedure
visit
(ClassDeclaring cd )
14
/
Section 8.7.1 on page 317
/
end
procedure
visit
(MethodDeclaring md )
15
/
Section 8.7.2 on page 321
/
end
end
class TypeVisitor extends TopDeclVisitor
procedure
visit
( Identifier id )
16
/
Section 8.6.2 on page 304
/
end
procedure
visit
(ArrayDefining arrayde f )
17
/
Section 8.6.5 on page 311
/
end
procedure visit
(StructDefining structde f )
18
/
Section 8.6.6 on page 312
/
end
procedure
visit
(EnumDefining enumde f )
19
/
Section 8.6.7 on page 313
/
end
end
Figure 8.11: Structure of the declarations visitors, with references to
sections addressing specific constructs.
 
Search WWH ::




Custom Search