| java.lang.Object org.objectweb.speedo.query.lib.SpeedoQueryHelper org.objectweb.speedo.query.jdo.parser.SpeedoQLAbstractVisitor
All known Subclasses: org.objectweb.speedo.query.jdo.parser.SpeedoQLQueryFilterVisitor, org.objectweb.speedo.query.jdo.parser.SpeedoQLVariableVisitor,
SpeedoQLAbstractVisitor | public class SpeedoQLAbstractVisitor extends SpeedoQueryHelper implements SpeedoQLVisitor(Code) | | Base class with visitor utility class and default implementation of
visit methods
|
Method Summary | |
public String | alias2fullname(String alias) | public String | buildStringwithout(String[] ss, int toforget, String sep) | protected String | getEndString(String total) | protected Field | getMedorFieldFromPath(String path, Map ids) | public int | isMethodOperator(String str) | final public static String | operationToString(int oc) | public void | setCurrentClass(String curClass) | public void | setParams(Map params) | public void | setVars(Map vars) | protected String[] | splitEndPath(String path, String prefix) | public Object | visit(SimpleNode node) Visit method to call from constructor. | public Object | visit(SimpleNode node, Object data) | public Object | visit(ASTSpeedoPrimary node, Object data) | public Object | visit(ASTSpeedoQL node, Object data) | public Object | visit(ASTPrimary node, Object data) | public Object | visit(ASTRelationalExpression node, Object data) | public Object | visit(ASTAdditiveExpression node, Object data) | public Object | visit(ASTUnaryExpression node, Object data) | public Object | visit(ASTCastExpression node, Object data) | public Object | visit(ASTArgumentList node, Object data) | public Object | visit(ASTLiteral node, Object data) | public Object | visit(ASTType node, Object data) | public Object | visit(ASTQualifiedName node, Object data) | public String | withoutThis(String aname) |
BEGIN_OPERAND_SUBSTRING | final public static Byte BEGIN_OPERAND_SUBSTRING(Code) | | |
CONTAINS_OPERATOR | final public static int CONTAINS_OPERATOR(Code) | | |
ENDS_WITH_OPERATOR | final public static int ENDS_WITH_OPERATOR(Code) | | |
EQUALS_IGNORE_CASE_OPERATOR | final public static int EQUALS_IGNORE_CASE_OPERATOR(Code) | | |
EQUALS_OPERATOR | final public static int EQUALS_OPERATOR(Code) | | |
EXTENT | final public static int EXTENT(Code) | | |
IN_COLLECTION | final public static int IN_COLLECTION(Code) | | |
IS_EMPTY | final public static int IS_EMPTY(Code) | | |
IS_EMPTY_OPERATOR | final public static int IS_EMPTY_OPERATOR(Code) | | |
IS_NOT_EMPTY | final public static int IS_NOT_EMPTY(Code) | | |
LENGTH_OPERAND_SUBSTRING | final public static Byte LENGTH_OPERAND_SUBSTRING(Code) | | |
LENGTH_OPERATOR | final public static int LENGTH_OPERATOR(Code) | | |
MATCHES_OPERATOR | final public static int MATCHES_OPERATOR(Code) | | |
MEMBEROF | final public static int MEMBEROF(Code) | | |
METHODS_OPERATOR | final public static String[] METHODS_OPERATOR(Code) | | |
NAVIGATION | final public static int NAVIGATION(Code) | | |
STARTS_WITH_OPERATOR | final public static int STARTS_WITH_OPERATOR(Code) | | |
STR_OPERAND_SUBSTRING | final public static Byte STR_OPERAND_SUBSTRING(Code) | | |
SUBSTRING_OPERATOR | final public static int SUBSTRING_OPERATOR(Code) | | |
TO_LOWER_OPERATOR | final public static int TO_LOWER_OPERATOR(Code) | | |
TO_UPPER_OPERATOR | final public static int TO_UPPER_OPERATOR(Code) | | |
UNDEFINED | final public static int UNDEFINED(Code) | | int value to define the type of the IdValue object
UNDEFINED : in case we don't know (default)
JORM_NAME : jorm name (end point of the recursivity)
NAVIGATION : the object is field to a field ...
CONTAINS_IN : the id is a variable and used in a contains method
CONTAINS_MEMBEROF : the id is a parameter and used in a contains method
|
params | protected Map params(Code) | | params is an hashtable to store the parameters.
key: name of the parameter
value: a BasicFieldOperand
|
vars | protected Map vars(Code) | | vars is an hashtable to store the variables.
key: name of the variable
value: the PType of the variable (from the declaration)
|
getMedorFieldFromPath | protected Field getMedorFieldFromPath(String path, Map ids) throws MedorException, ParseException(Code) | | return the JormField for a given path
Parameters: path - the path of the JormField to return Parameters: ids - the map of (id,QueryTree)pairs; throws: org.objectweb.speedo.query.parser.ParseException - if identification variable not found. throws: org.objectweb.medor.api.MedorException - if corresponding fielc does not exist |
isMethodOperator | public int isMethodOperator(String str)(Code) | | |
operationToString | final public static String operationToString(int oc)(Code) | | |
setCurrentClass | public void setCurrentClass(String curClass)(Code) | | |
setParams | public void setParams(Map params)(Code) | | SETTER METHODS ************************************
|
|
|