|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectBasicOperator
org.objectweb.medor.filter.jorm.lib.CompositePName
A CompositePName is an Operator representing the construction of a PName from a NamingContext and several Fields.
The NamingContext is provided as a ParameterOperand. The name of the ParameterOperand is defined to be:
Field Summary | |
protected java.lang.String[] |
cofns
|
protected TuplePNameGetter |
myGetter
|
Constructor Summary | |
CompositePName(FieldOperand[] fs,
java.lang.String[] compositefieldnames,
Operand po,
PType t)
Constructs a SinglePName from a ParameterOperand representing the naming context, and an array of FieldOperand. |
Method Summary | |
java.lang.Object |
clone(java.lang.Object clone,
java.util.Map obj2clone)
|
Operand |
compileExpression()
Checks the semantic integrity of an expression. |
Operand |
evaluate(ParameterOperand[] pos,
java.lang.Object o)
|
java.lang.String[] |
getCompositeFieldName()
It retrieves an array of the composite field name. |
FieldOperand[] |
getFields()
|
java.lang.String |
getOperatorString()
There is no Java operator associated to a PName |
ParameterOperand |
getPNameManagerParameter()
|
Operand |
getResult()
Gets the operand in wich the result will be put in |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String[] cofns
protected TuplePNameGetter myGetter
Constructor Detail |
public CompositePName(FieldOperand[] fs, java.lang.String[] compositefieldnames, Operand po, PType t) throws MedorException
fs
- is the array of FieldOperands from which the value is taken.po
- is the ParameterOperand representing the naming context.t
- is the PType of the PName created by this operator.compositefieldnames
- is the compositename fields. This array
is linked to parameter fs (FieldOperand[]).
MedorException
- when the number of FieldOperand is not equal to
the size of the proj parameter.Method Detail |
public java.lang.String[] getCompositeFieldName()
public ParameterOperand getPNameManagerParameter()
public java.lang.Object clone(java.lang.Object clone, java.util.Map obj2clone) throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
public Operand getResult() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- if this expression is not
compiled.public Operand evaluate(ParameterOperand[] pos, java.lang.Object o) throws ExpressionException
ExpressionException
public Operand compileExpression() throws TypingException, MalformedExpressionException
org.objectweb.medor.expression.api.TypingException
- when incompatible types error
occurs.
org.objectweb.medor.expression.api.MalformedExpressionException
- if syntax error
TypingException
MalformedExpressionException
public FieldOperand[] getFields()
public java.lang.String getOperatorString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |