|
||||||||||
| 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
public class VariableChecker
Checks variable declarations/application.
| Field Summary | |
|---|---|
protected static org.apache.jdo.util.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(org.apache.jdo.impl.jdoql.jdoqlc.VariableChecker.VarInfo info)
|
protected void |
checkConstraint(java.lang.String variable,
org.apache.jdo.impl.jdoql.jdoqlc.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 org.apache.jdo.util.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,
org.apache.jdo.impl.jdoql.jdoqlc.VariableChecker.VarInfo info)
protected void attachConstraintToUsedAST(org.apache.jdo.impl.jdoql.jdoqlc.VariableChecker.VarInfo info)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||