|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectcom.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. |
AbleLiteral |
createMatchLiteral(java.util.Hashtable replacementVars)
Create a duplicate of this method literal using replacement vars |
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) |
int |
hashCode()
|
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, getDataTypeAsString, getReferent, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, 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 interface AbleRdarlCRdString in class AbleCallLiteralpublic java.lang.String xmlCRdString()
xmlCRdString in interface AbleRdxmlCRdString in class AbleCallLiteralpublic java.lang.String getTemplateString(java.util.Vector theTemplateVars)
getTemplateString in interface AbleRdgetTemplateString in class AbleCallLiteraltheTemplateVars - An ordered list of template variables referenced by this rule.
public java.util.BitSet getReferents()
getReferents in interface AbleRdgetReferents in class AbleCallLiteral
protected void performCall()
throws AbleDataException
performCall in class AbleCallLiteralAbleDataExceptionpublic AbleTypedVariable getTypedVariable()
public java.lang.Class getReturnType()
throws java.rmi.RemoteException
getReturnType in class AbleCallLiteraljava.rmi.RemoteException
public static java.lang.Class[] getArgClasses(java.util.Vector theArgs)
throws AbleDataException
AbleDataExceptionpublic java.lang.String traceString(int theTraceStringFlavor)
traceString in interface AbleRdtraceString in class AbleCallLiteraltheTraceStringFlavor - An Able.TraceStringFlavor value.
protected java.lang.String trcString(int theTraceStringFlavor)
trcString in class AbleCallLiteralpublic int getDataType()
AbleLiteral
getDataType in interface AbleRdgetDataType in class AbleCallLiteralAbleRd.getDataType()public boolean equals(java.lang.Object otherObject)
public int hashCode()
public java.util.HashSet getVariableReferences()
getVariableReferences in class AbleCallLiteralpublic AbleLiteral createMatchLiteral(java.util.Hashtable replacementVars)
createMatchLiteral in class AbleCallLiteral
|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||