|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectantlr.TreeParser
com.sun.jdo.spi.persistence.support.ejb.ejbqlc.Semantic
public class Semantic
This class defines the semantic analysis of the EJBQL compiler. Input of this pass is the AST as produced by the parser, that consists of EJBQLAST nodes. The result is a typed EJBQLAST tree.
| Field Summary | |
|---|---|
static java.lang.String[] |
_tokenNames
|
static antlr.collections.impl.BitSet |
_tokenSet_0
|
static java.lang.String |
DISABLE_ORDERBY_VALIDATION_PROPERTY
Name of the property to disable order by validation. |
protected java.lang.String |
ejbName
The ejb-name. |
protected boolean |
finderNotSelector
Flag indicating finder or selector. |
protected boolean |
isAggregate
Flag indicating have aggregate function or not. |
protected java.lang.reflect.Method |
method
The Method instance of the finder/selector method. |
protected static java.util.ResourceBundle |
msgs
I18N support. |
protected ParameterSupport |
paramSupport
Parameter info helper. |
protected int |
resultTypeMapping
result-type-mapping element from the DD. |
protected SymbolTable |
symtab
Symbol table handling names of variables and parameters. |
protected TypeSupport |
typeSupport
Type info access helper. |
| Fields inherited from class antlr.TreeParser |
|---|
_retTree, astFactory, ASTNULL, inputState, returnAST, tokenNames, traceDepth |
| Fields inherited from interface com.sun.jdo.spi.persistence.support.ejb.ejbqlc.SemanticTokenTypes |
|---|
ABS, ABSTRACT_SCHEMA_NAME, AND, AS, ASC, AVG, BETWEEN, BY, CMP_FIELD, CMP_FIELD_ACCESS, COLLECTION_CMR_FIELD, COLLECTION_CMR_FIELD_ACCESS, COMMA, CONCAT, COUNT, DESC, DISTINCT, DIV, DOT, DOUBLE_LITERAL, EMPTY, EOF, EQUAL, ESC, ESCAPE, EXPONENT, FALSE, FLOAT_LITERAL, FLOAT_SUFFIX, FLOATINGPOINT_SUFFIX, FROM, GE, GT, HEX_DIGIT, IDENT, IDENTIFICATION_VAR, IDENTIFICATION_VAR_DECL, IN, INPUT_PARAMETER, INT_LITERAL, IS, LE, LENGTH, LIKE, LOCATE, LONG_LITERAL, LPAREN, LT, MAX, MEMBER, MIN, MINUS, MOD, NEWLINE, NOT, NOT_BETWEEN, NOT_EMPTY, NOT_EQUAL, NOT_IN, NOT_LIKE, NOT_MEMBER, NOT_NULL, NULL, NULL_TREE_LOOKAHEAD, OBJECT, OF, OR, ORDER, PLUS, QUERY, RANGE, RPAREN, SELECT, SINGLE_CMR_FIELD, SINGLE_CMR_FIELD_ACCESS, SQRT, STAR, STRING_LITERAL, SUBSTRING, SUM, TRUE, UNARY_MINUS, UNARY_PLUS, UNICODE_DIGIT, UNICODE_ESCAPE, UNICODE_STR, UNKNOWN, WHERE, WS |
| Constructor Summary | |
|---|---|
Semantic()
|
|
| Method Summary | |
|---|---|
void |
abs(antlr.collections.AST _t)
|
void |
betweenExpr(antlr.collections.AST _t)
|
void |
binaryArithmeticExpr(antlr.collections.AST _t)
|
void |
cmpPathExpression(antlr.collections.AST _t)
|
void |
collectionMemberDecl(antlr.collections.AST _t)
|
void |
collectionMemberExpr(antlr.collections.AST _t)
|
void |
collectionValuedPathExpression(antlr.collections.AST _t)
|
void |
concat(antlr.collections.AST _t)
|
void |
conditionalExpr(antlr.collections.AST _t)
|
void |
countExpr(antlr.collections.AST _t)
|
void |
distinct(antlr.collections.AST _t)
|
void |
emptyCollectionComparisonExpr(antlr.collections.AST _t)
|
void |
escape(antlr.collections.AST _t)
|
void |
escapeCharacter(antlr.collections.AST _t)
|
void |
expression(antlr.collections.AST _t)
|
void |
fromClause(antlr.collections.AST _t)
|
void |
function(antlr.collections.AST _t)
|
void |
identificationVarDecl(antlr.collections.AST _t)
|
void |
identificationVariable(antlr.collections.AST _t)
|
void |
inCollection(antlr.collections.AST _t,
java.lang.Object valueExprTypeInfo)
|
void |
inCollectionElement(antlr.collections.AST _t,
java.lang.Object valueExprTypeInfo)
|
void |
inExpr(antlr.collections.AST _t)
|
void |
init(TypeSupport typeSupport,
ParameterSupport paramSupport,
java.lang.reflect.Method method,
int resultTypeMapping,
boolean finderNotSelector,
java.lang.String ejbName)
Initializes the semantic analysis. |
void |
inputParameter(antlr.collections.AST _t)
|
void |
length(antlr.collections.AST _t)
|
void |
likeExpr(antlr.collections.AST _t)
|
void |
literal(antlr.collections.AST _t)
|
void |
locate(antlr.collections.AST _t)
|
void |
member(antlr.collections.AST _t)
|
void |
mod(antlr.collections.AST _t)
|
void |
nullComparisonExpr(antlr.collections.AST _t)
|
void |
objectDenoter(antlr.collections.AST _t)
|
void |
orderbyClause(antlr.collections.AST _t)
|
void |
orderbyItem(antlr.collections.AST _t)
|
void |
pathExpression(antlr.collections.AST _t)
|
void |
pattern(antlr.collections.AST _t)
|
void |
primary(antlr.collections.AST _t)
|
void |
projection(antlr.collections.AST _t)
|
void |
query(antlr.collections.AST _t)
|
void |
rangeVarDecl(antlr.collections.AST _t)
|
void |
relationalExpr(antlr.collections.AST _t)
|
void |
reportError(antlr.RecognitionException ex)
|
void |
reportError(java.lang.String s)
|
void |
selectClause(antlr.collections.AST _t)
|
void |
singleValuedCmrPathExpression(antlr.collections.AST _t)
|
void |
singleValuedPathExpression(antlr.collections.AST _t)
|
void |
sqrt(antlr.collections.AST _t)
|
void |
substring(antlr.collections.AST _t)
|
void |
unaryExpr(antlr.collections.AST _t)
|
void |
whereClause(antlr.collections.AST _t)
|
| Methods inherited from class antlr.TreeParser |
|---|
getAST, getASTFactory, getTokenName, getTokenNames, match, match, matchNot, panic, reportWarning, setASTFactory, setASTNodeClass, setASTNodeType, traceIn, traceIndent, traceOut |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DISABLE_ORDERBY_VALIDATION_PROPERTY
protected SymbolTable symtab
protected TypeSupport typeSupport
protected ParameterSupport paramSupport
protected java.lang.reflect.Method method
protected int resultTypeMapping
protected boolean finderNotSelector
protected boolean isAggregate
protected java.lang.String ejbName
protected static final java.util.ResourceBundle msgs
public static final java.lang.String[] _tokenNames
public static final antlr.collections.impl.BitSet _tokenSet_0
| Constructor Detail |
|---|
public Semantic()
| Method Detail |
|---|
public void init(TypeSupport typeSupport,
ParameterSupport paramSupport,
java.lang.reflect.Method method,
int resultTypeMapping,
boolean finderNotSelector,
java.lang.String ejbName)
typeSupport - type info access helper.paramSupport - parameter info helper.method - method instance of the finder/selector method.resultTypeMapping - result-type-mapping element from the DDfinderNotSelector - true for finder;
false for selectorejbName - the ejb name of the finder/selector method.public void reportError(antlr.RecognitionException ex)
reportError in class antlr.TreeParserpublic void reportError(java.lang.String s)
reportError in class antlr.TreeParser
public final void query(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void fromClause(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void selectClause(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void whereClause(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void orderbyClause(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void identificationVarDecl(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void collectionMemberDecl(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void rangeVarDecl(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void collectionValuedPathExpression(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void distinct(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void projection(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void singleValuedPathExpression(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void cmpPathExpression(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void countExpr(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void expression(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void orderbyItem(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void conditionalExpr(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void relationalExpr(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void binaryArithmeticExpr(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void unaryExpr(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void betweenExpr(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void likeExpr(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void inExpr(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void nullComparisonExpr(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void emptyCollectionComparisonExpr(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void collectionMemberExpr(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void function(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void primary(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void pattern(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void escape(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void inputParameter(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void escapeCharacter(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void inCollection(antlr.collections.AST _t,
java.lang.Object valueExprTypeInfo)
throws antlr.RecognitionException
antlr.RecognitionException
public final void member(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void identificationVariable(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void singleValuedCmrPathExpression(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void concat(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void substring(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void length(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void locate(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void abs(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void sqrt(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void mod(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void literal(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void pathExpression(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void objectDenoter(antlr.collections.AST _t)
throws antlr.RecognitionException
antlr.RecognitionException
public final void inCollectionElement(antlr.collections.AST _t,
java.lang.Object valueExprTypeInfo)
throws antlr.RecognitionException
antlr.RecognitionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||