|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.medor.query.jorm.lib.NavigatorNodeFactory
This class constructs a QueryTree from a NavigatorOperator, which represents a path expression.
It is a factory for normal JoinProject query nodes, which implement the semantics of the path traversal represented by the NavigatorOperator.
Field Summary | |
static java.lang.String |
GENCLASS_ELEMENT_NAME
|
static byte |
IS_EMPTY
Applies to navigation ending with a GenClassRef only. |
static byte |
IS_NOT_EMPTY
Applies to navigation ending with a GenClassRef only. |
static Logger |
logger
|
static byte |
NAVIGATION
To navigate up to the last field. |
static byte |
NAVIGATION_INTO_LAST
To navigate up to the element referenced by the last field. |
static java.lang.String |
PNAME_FIELD_NAME
|
Constructor Summary | |
NavigatorNodeFactory()
|
Method Summary | |
static QueryTreeField |
navigate(NavigatorOperator nav,
java.lang.String aliasName,
byte op)
Creates a QueryTree corresponding to the path traversal represented by the NavigatorOperator. |
static void |
resetNameIndexes()
|
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 PNAME_FIELD_NAME
public static final java.lang.String GENCLASS_ELEMENT_NAME
public static final byte NAVIGATION
public static final byte NAVIGATION_INTO_LAST
For a GenClassRef, includes the GenClass element. For a ClassRef, includes all fields of the referenced class object.
public static final byte IS_EMPTY
Tests whether there are no GenClass elements for the GenClassRef.
public static final byte IS_NOT_EMPTY
Tests whether there are GenClass elements for the GenClassRef.
public static Logger logger
Constructor Detail |
public NavigatorNodeFactory()
Method Detail |
public static QueryTreeField navigate(NavigatorOperator nav, java.lang.String aliasName, byte op) throws MedorException
The end of the path expression can either be a single-valued field or a reference to a GenClass. In the latter case, the elements of the GenClass are projected together with their index attributes.
Note that the name of the element of a GenClass extent is "element", and that the name of the GenClass identifier is "object".
nav
- is the NavigatorOperator representing the path expression.
This operator starts with a FieldOperand pointing to a Field called here
FStart. All fields in the node hosting FStart are projected.aliasName
- is the root name of the Fields reached by the path
expression.op
- indicates which operation to perform (NAVIGATION,
NAVIGATION_INTO_LAST, IS_EMPTY or IS_NOT_EMPTY)
MedorException
public static void resetNameIndexes()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |