|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 FieldOperand[] |
fields
|
protected Logger |
logger
|
protected TuplePNameGetter |
myGetter
|
protected Operand |
nc
|
protected VariableOperand |
result
|
protected PType |
type
|
protected boolean |
verified
|
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()
|
Operand |
compileExpression()
Checks the semantic integrity of an expression. |
org.objectweb.medor.expression.api.Operand |
evaluate(ParameterOperand[] pos,
java.lang.Object o)
|
java.lang.String[] |
getCompositeFieldName()
It retrieves an array of the composite field name. |
Expression |
getExpression(int idx)
|
FieldOperand[] |
getFields()
|
int |
getOperandNumber()
|
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 |
PType |
getType()
|
void |
setExpression(int idx,
Expression exp)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected PType type
protected FieldOperand[] fields
protected java.lang.String[] cofns
protected Operand nc
protected VariableOperand result
protected boolean verified
protected TuplePNameGetter myGetter
protected Logger logger
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 int getOperandNumber()
public Expression getExpression(int idx) throws java.lang.ArrayIndexOutOfBoundsException
java.lang.ArrayIndexOutOfBoundsException
public void setExpression(int idx, Expression exp) throws java.lang.ArrayIndexOutOfBoundsException
java.lang.ArrayIndexOutOfBoundsException
public PType getType()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
public Operand getResult() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- if this expression is not
compiled.public org.objectweb.medor.expression.api.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 |