|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.able.data.AbleLiteral | +--com.ibm.able.data.AbleCallLiteral | +--com.ibm.able.data.AbleTypedVariableMethodLiteral
This class performs a method invocation to a specific method in a AbleTypedVariable. The constructor uses introspection to try to find a constructor method on the AbleTypedVariable datatype class that matches the specified argument types. This literal behaves somewhat differently from other AbleLiterals, in that is not strictly a constant, it invokes the same method on the same typed variable, but the underlying Object being invoked may change during the course of a ruleset evaluation.
Any dot notation method call gets parsed and turned in the an instance of this class. Any number of arguments may appear in the source statement.
Field Summary | |
---|---|
protected AbleTypedVariable |
myTypedVariable
The typed variable to which this method belongs. |
protected AbleUserDefinedFunction |
myUserDefinedFunction
The internal user defined function. |
Fields inherited from class com.ibm.able.data.AbleCallLiteral |
---|
myArgs, myArity, myCallee, myUdfMgr, myValue |
Constructor Summary | |
---|---|
AbleTypedVariableMethodLiteral(AbleTypedVariableMethodLiteral theLiteral,
AbleTypedVariable theReplacementVariable,
java.util.Vector theArgs)
Create a copy of this method literal with replacement args |
|
AbleTypedVariableMethodLiteral(AbleTypedVariable theTypedVariable,
java.lang.String theMethod,
java.util.Vector theArgs)
Create a new Able data method object with the specified information. |
Method Summary | |
---|---|
java.lang.String |
arlCRdString()
Return a formal ARL "clause read" string that describes this data object. |
boolean |
equals(java.lang.Object otherObject)
|
static java.lang.Class[] |
getArgClasses(java.util.Vector theArgs)
|
int |
getDataType()
Retrieve the data type of this data object. |
java.util.BitSet |
getReferents()
Retrieve the Ids of the variables to which this data object refers, if any. |
java.lang.Class |
getReturnType()
Get the data type of the value returned from the associated method invocation. |
java.lang.String |
getTemplateString(java.util.Vector theTemplateVars)
Retrieve a text format string for use by rule templates. |
AbleTypedVariable |
getTypedVariable()
Retrieve the typed variable |
java.util.HashSet |
getVariableReferences()
Retrieve the set of variables (if any) referenced by this expression (and subexpressions) |
protected void |
performCall()
|
java.lang.String |
traceString(int theTraceStringFlavor)
Retrieve a string describing (the contents of) the object. |
protected java.lang.String |
trcString(int theTraceStringFlavor)
|
java.lang.String |
xmlCRdString()
Return a formal XML "clause read" string that describes this data object. |
Methods inherited from class com.ibm.able.data.AbleCallLiteral |
---|
cmpEq, cmpGt, cmpGtEq, cmpLt, cmpLtEq, cmpNeq, compDivide, compMinus, compMultiply, compPlus, compUnaryMinus, cvtArgs, getArgs, getArity, getBooleanValue, getCallee, getCalleeWithArgs, getCalleeWithArity, getDataTypeClass, getDataTypeClassName, getFuzzyValue, getGenericValue, getNumericValue, getRawValue, getStringValue, getValue, isConstant, logicalAND, logicalNOT, logicalOR |
Methods inherited from class com.ibm.able.data.AbleLiteral |
---|
bitwiseAND, bitwiseNOT, bitwiseOR, bitwiseShiftLeft, bitwiseShiftRight, bitwiseShiftRightZeroFill, bitwiseXOR, cmpIs, compModulo, Copyright, getDataTypeAsString, getReferent, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected AbleTypedVariable myTypedVariable
This field is initialized to null and changed by the constructor when a new typed variable method is created.
protected AbleUserDefinedFunction myUserDefinedFunction
This field is initialized to null and changed by the constructor when a new typed variable method is created.
Constructor Detail |
public AbleTypedVariableMethodLiteral(AbleTypedVariable theTypedVariable, java.lang.String theMethod, java.util.Vector theArgs) throws AbleDataException
theTypedVariable
- A typed variable that contains the following field.
theMethod
- A specific method within the above typed variable.
theArgs
- A list of AbleRd objects whose runtime values will be
passed to the user-defined function as arguments. Each
converted argument will be a Boolean, a Double, a
String, or an Object, depending on the type of each
AbleRd object in the argument list. The list can be
empty, but it must never be null.
public AbleTypedVariableMethodLiteral(AbleTypedVariableMethodLiteral theLiteral, AbleTypedVariable theReplacementVariable, java.util.Vector theArgs) throws AbleDataException
Method Detail |
public java.lang.String arlCRdString()
arlCRdString
in class AbleCallLiteral
public java.lang.String xmlCRdString()
xmlCRdString
in class AbleCallLiteral
public java.lang.String getTemplateString(java.util.Vector theTemplateVars)
getTemplateString
in class AbleCallLiteral
theTemplateVars
- An ordered list of template variables referenced by this rule.public java.util.BitSet getReferents()
getReferents
in class AbleCallLiteral
protected void performCall() throws AbleDataException
performCall
in class AbleCallLiteral
public AbleTypedVariable getTypedVariable()
public java.lang.Class getReturnType() throws java.rmi.RemoteException
getReturnType
in class AbleCallLiteral
public static java.lang.Class[] getArgClasses(java.util.Vector theArgs) throws AbleDataException
public java.lang.String traceString(int theTraceStringFlavor)
traceString
in class AbleCallLiteral
theFlavor
- An Able.TraceStringFlavor value.
protected java.lang.String trcString(int theTraceStringFlavor)
trcString
in class AbleCallLiteral
public int getDataType()
AbleLiteral
getDataType
in class AbleCallLiteral
AbleRd.getDataType()
public boolean equals(java.lang.Object otherObject)
equals
in class java.lang.Object
public java.util.HashSet getVariableReferences()
getVariableReferences
in class AbleCallLiteral
|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |