/**
* @see org.gdbms.engine.instruction.Expression#isLiteral()
*/
public boolean isLiteral() {
SimpleNode child = (SimpleNode) getEntity().jjtGetChild(0);
if (child.first_token.image.equals("(")) {
child = (SimpleNode) getEntity().jjtGetChild(0);
}
if (child.getClass() == ASTSQLColRef.class) {
return false;
} else if (child.getClass() == ASTSQLFunction.class) {
return false;
} else if (child.getClass() == ASTSQLLiteral.class) {
return true;
} else if (child.getClass() == ASTSQLOrExpr.class) {
return ((Expression) getChilds()[0]).isLiteral();
} else {
throw new RuntimeException("really passed the parse???");
}
}