|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jdo.impl.jdoql.jdoqlc.VariableChecker
Checks variable declarations/application.
Nested Class Summary | |
(package private) static class |
VariableChecker.VarInfo
A VarInfo consists of two info fields: - constraint: the variable is constraint with the specified expr - used: the variable is used |
Field Summary | |
protected static I18NHelper |
msg
I18N support |
protected java.util.Map |
varInfos
Map of variable infos |
Constructor Summary | |
VariableChecker()
Create an empty variable table |
|
VariableChecker(VariableChecker other)
Create a variable table initialized with the entries of the other variable table. |
Method Summary | |
void |
add(java.lang.String name)
Creates a new entry in the variable table with the specified name as key and an empty value. |
protected void |
attachConstraintToUsedAST(VariableChecker.VarInfo info)
|
protected void |
checkConstraint(java.lang.String variable,
VariableChecker.VarInfo info)
|
void |
checkConstraints()
|
void |
markConstraint(JDOQLAST variable,
JDOQLAST expr)
Mark the specified variable as constaint with the specified expr. |
void |
markUsed(JDOQLAST variable,
java.lang.String dependendVar)
Mark the specified variable as used. |
void |
merge(VariableChecker other)
Merges the specified variable table (other) into this variable table. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final I18NHelper msg
protected java.util.Map varInfos
Constructor Detail |
public VariableChecker()
public VariableChecker(VariableChecker other)
Method Detail |
public void add(java.lang.String name)
public void markUsed(JDOQLAST variable, java.lang.String dependendVar)
public void markConstraint(JDOQLAST variable, JDOQLAST expr)
public void merge(VariableChecker other)
public void checkConstraints()
protected void checkConstraint(java.lang.String variable, VariableChecker.VarInfo info)
protected void attachConstraintToUsedAST(VariableChecker.VarInfo info)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |