|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jet.core.parser.ast.JETASTVisitor
public abstract class JETASTVisitor
A visitor for a JETAST tree. This implementation provides 'do nothing' actions for each visit method. Subclasses need override only the visit methods required.
JETASTVisitor
Constructor Summary | |
---|---|
JETASTVisitor()
|
Method Summary | |
---|---|
void |
endVisit(Comment comment)
Visit a Comment element, after visiting its children. |
void |
endVisit(IncludedContent content)
Post visit a section of included content (JET1 only) |
void |
endVisit(JavaDeclaration declaration)
Visit a JavaDeclaration element, after visiting its children. |
void |
endVisit(JavaExpression expression)
Visit a JavaExpression element, after visiting its children. |
void |
endVisit(JavaScriptlet scriptlet)
Visit a JavaScriptlet element, after visiting its children. |
void |
endVisit(JETCompilationUnit compilationUnit)
Visit a JETCompilationUnit element, after visiting its body elements. |
void |
endVisit(JETDirective directive)
Visit a JETDirective element, after visiting its children. |
void |
endVisit(TextElement text)
Visit a TextElement element, after visiting its children. |
void |
endVisit(XMLBodyElement xmlBodyElement)
Visit an XMLBodyElement, after visiting its body elements. |
void |
endVisit(XMLBodyElementEnd xmlBodyElementEnd)
Visit a XMLBodyElementEnd element, after visiting its children. |
void |
endVisit(XMLEmptyElement xmlEmptyElement)
Visit a XMLEmptyElement element, after visiting its children. |
void |
postVisit(JETASTElement element)
Visits the AST Node after all type specific visit/end visits |
void |
preVisit(JETASTElement element)
Visits an AST Node prior to a type specific visit |
boolean |
visit(Comment comment)
Visit a Comment element. |
boolean |
visit(IncludedContent content)
Visit a section of included content (JET1 only) |
boolean |
visit(JavaDeclaration declaration)
Visit a JavaDeclaration. |
boolean |
visit(JavaExpression expression)
Visit a JavaExpression. |
boolean |
visit(JavaScriptlet scriptlet)
Visit a JavaScriptlet. |
boolean |
visit(JETCompilationUnit compilationUnit)
Visit a JETCompilationUnit element, prior to visiting its body elements. |
boolean |
visit(JETDirective directive)
Visit a JETDirective. |
boolean |
visit(TextElement text)
Visit a TextElement. |
boolean |
visit(XMLBodyElement xmlBodyElement)
Visit an XMLBodyElement, prior to visiting its body elements. |
boolean |
visit(XMLBodyElementEnd xmlBodyElementEnd)
Visit the end tag of an XMLBodyElement. |
boolean |
visit(XMLEmptyElement xmlEmptyElement)
Visit an XMLEmptyElement. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JETASTVisitor()
Method Detail |
---|
public boolean visit(JETCompilationUnit compilationUnit)
compilationUnit
-
true
if the children of this element should be
visited, and false
if the children of this element should
be skippedpublic void endVisit(JETCompilationUnit compilationUnit)
compilationUnit
- public boolean visit(JavaDeclaration declaration)
declaration
- the JavaDeclaration element
true
if the children of this element should be
visited, and false
if the children of this element should
be skippedpublic boolean visit(JETDirective directive)
directive
- the JETDirective element
true
if the children of this element should be
visited, and false
if the children of this element should
be skippedpublic boolean visit(JavaExpression expression)
expression
-
true
if the children of this element should be
visited, and false
if the children of this element should
be skippedpublic boolean visit(JavaScriptlet scriptlet)
scriptlet
-
true
if the children of this element should be
visited, and false
if the children of this element should
be skippedpublic boolean visit(TextElement text)
text
-
true
if the children of this element should be
visited, and false
if the children of this element should
be skippedpublic boolean visit(XMLEmptyElement xmlEmptyElement)
xmlEmptyElement
-
true
if the children of this element should be
visited, and false
if the children of this element should
be skippedpublic boolean visit(XMLBodyElement xmlBodyElement)
xmlBodyElement
-
true
if the children of this element should be
visited, and false
if the children of this element should
be skippedpublic void endVisit(XMLBodyElement xmlBodyElement)
xmlBodyElement
- public boolean visit(XMLBodyElementEnd xmlBodyElementEnd)
endVisit(XMLBodyElement)
.
xmlBodyElementEnd
-
true
if the children of this element should be
visited, and false
if the children of this element should
be skippedpublic boolean visit(Comment comment)
comment
-
true
if the children of this element should be
visited, and false
if the children of this element should
be skippedpublic boolean visit(IncludedContent content)
content
- the included content element
true
if the children of this element should be
visited, and false
if the children of this element should
be skippedpublic void endVisit(IncludedContent content)
content
- the included content elementpublic void endVisit(JavaDeclaration declaration)
declaration
- the JavaDeclarationpublic void endVisit(JETDirective directive)
directive
- the JETDirective elementpublic void endVisit(JavaExpression expression)
expression
- the JavaExpression elementpublic void endVisit(JavaScriptlet scriptlet)
scriptlet
- the JavaScriptlet elementpublic void endVisit(TextElement text)
text
- the TextElement elementpublic void endVisit(XMLEmptyElement xmlEmptyElement)
xmlEmptyElement
- the XMLEmptyElement elementpublic void endVisit(XMLBodyElementEnd xmlBodyElementEnd)
xmlBodyElementEnd
- the XMLBodyElementEnd elementpublic void endVisit(Comment comment)
comment
- the Comment elementpublic void postVisit(JETASTElement element)
element
- the AST elementpublic void preVisit(JETASTElement element)
element
- the AST element
|
Copyright 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |