_t = _t.getNextSibling();
if ( inputState.guessing==0 ) {
// Calculate the value of the static field at compile time
// and treat it as constant value.
ClassType classType = (ClassType)t.getJQLType();
FieldInfo fieldInfo = classType.getFieldInfo(i.getText());
try
{
value = fieldInfo.getField().get(null);
s_AST.setType(VALUE);
s_AST.setValue(value);
s_AST.setFirstChild(null);
}
catch (IllegalAccessException e)
{
throw new JDOFatalUserException(
I18NHelper.getMessage(messages,
"jqlc.optimizer.staticfieldaccess.illegal", //NOI18N
i.getText(), classType.getName()), e);
}
}
staticFieldAccess_AST = (JQLAST)currentAST.root;
returnAST = staticFieldAccess_AST;