public class VariableChecker
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static org.apache.jdo.util.I18NHelper |
msg
I18N support
|
protected java.util.Map |
varInfos
Map of variable infos
|
Constructor and Description |
---|
VariableChecker()
Create an empty variable table
|
VariableChecker(VariableChecker other)
Create a variable table initialized with the entries of the other variable table.
|
Modifier and Type | Method and Description |
---|---|
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.
|
protected static final org.apache.jdo.util.I18NHelper msg
protected java.util.Map varInfos
public VariableChecker()
public VariableChecker(VariableChecker other)
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)
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.