|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.query.util.ASTVisitor
public abstract class ASTVisitor
A visitor for all sub-expressions in an Expr
. All methods return a
boolean
which signals if the tree walk should be continued.
Constructor Summary | |
---|---|
ASTVisitor()
|
Method Summary | |
---|---|
boolean |
declared(Var count)
Notifies the visitor of a variable declaration. |
void |
enterFocus()
Notifies the visitor of an expression entering a focus. |
void |
exitFocus()
Notifies the visitor of an expression leaving a focus. |
boolean |
funcCall(StaticFuncCall call)
Notifies the visitor of a function call. |
boolean |
funcItem(FuncItem func)
Notifies the visitor of a function item. |
boolean |
inlineFunc(Scope sub)
Notifies the visitor of a sub-scope. |
boolean |
lock(java.lang.String db)
Notifies the visitor of a database lock. |
boolean |
staticVar(StaticVar var)
Notifies the visitor of a reference t oa static variable. |
boolean |
used(VarRef ref)
Notifies the visitor of a variable reference. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ASTVisitor()
Method Detail |
---|
public boolean declared(Var count)
count
- declared variable
public boolean used(VarRef ref)
ref
- used variable
public boolean staticVar(StaticVar var)
var
- static variable
public boolean inlineFunc(Scope sub)
sub
- scope
public boolean funcCall(StaticFuncCall call)
call
- function call
public boolean funcItem(FuncItem func)
func
- the function item
public boolean lock(java.lang.String db)
db
- database to be locked
public void enterFocus()
public void exitFocus()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |