|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.p13n.expression.internal.ComplexExpressionImpl | +--com.bea.p13n.expression.operator.Operator | +--com.bea.p13n.expression.operator.Variable
Implementation of the Variable operator.
The variable operator defines a place-holder
for a variable that will be substituted during
unification.
Input 1: A String (or Expression returning a String) that is the name of the variable.
Input 2: A Class (or Expression returning a Class) that is the type of the variable.
Constructor Summary | |
Variable()
A default Class Constructor. |
|
Variable(java.lang.String name,
java.lang.Class type)
A class constructor that constructs a variable by assigning a name and a class type. |
Method Summary | |
int |
compareTo(java.lang.Object object)
|
java.lang.Class |
getClassType()
Returns the class type of the value contained in this. |
java.lang.String |
getName()
Returns the name of this. |
java.lang.Class[] |
getParameterSignature()
Returns the parameter signature of this |
java.lang.Object |
getValue()
Returns the value stored in this. |
boolean |
isBound()
|
protected boolean |
isEqualitySubExpression(int index)
|
void |
setValue(java.lang.Object object)
Stores the given value in this. |
Methods inherited from class com.bea.p13n.expression.operator.Operator |
leftHandSide,
operand,
rightHandSide |
Methods inherited from class com.bea.p13n.expression.internal.ComplexExpressionImpl |
addListener,
addSubExpression,
clearCache,
clone,
createProxyExpression,
equals,
getCachedValue,
getParent,
getSource,
getSubExpression,
getSubExpressionCount,
getUserData,
hashCode,
isCached,
isCacheEnabled,
notifyListeners,
removeAllSubExpressions,
removeListener,
removeSubExpression,
removeSubExpression,
setCachedValue,
setCacheEnabled,
setParent,
setSource,
setSubExpression,
setUserData,
toString,
write |
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public Variable()
public Variable(java.lang.String name, java.lang.Class type)
name
- A name for naming the variable. The variable name should start with '?'.
For example, "?variableName", "?name" are valid variable names.type
- A class type of the value that this holds.Method Detail |
public java.lang.String getName()
public java.lang.Class getClassType()
public java.lang.Object getValue()
public boolean isBound()
true
If this is bound to a value
otherwise false
.public void setValue(java.lang.Object object)
object
- The value to be stored.public java.lang.Class[] getParameterSignature()
Class
that has parameter signature.protected boolean isEqualitySubExpression(int index)
public int compareTo(java.lang.Object object) throws java.lang.ClassCastException
|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |