|
TPTP 4.6.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.tptp.platform.report.extension.internal.DExtensible
org.eclipse.tptp.platform.report.birt).
public class DExtensible
DExtensible provide runtime-class methods definition and/or override with "rename" feature. Extensible methods must have this prototype : method_name( >Any Class<, IDRuntimeExtends, Object ), first parameter class is used to resolve methods overlay, second parameter is the extensible object calling the method, and the third object is an argument provided by extensible object to "communicate" with called extension. By default extensible methods are named "doMethod", but you can use different name using installDoMethod(Method,Object) or installDoMethod(String,Object).
| Nested Class Summary | |
|---|---|
protected static class |
DExtensible.InvokeMethod
Deprecated. |
| Field Summary | |
|---|---|
protected java.util.Hashtable |
mapMethod
Deprecated. map of InvokeMethod using class as key |
protected java.lang.Object[] |
paramTab
Deprecated. argument used at invokation time |
| Constructor Summary | |
|---|---|
DExtensible()
Deprecated. initialise invoke table exploring all currents "doMethod" method with expected prototype. |
|
| Method Summary | |
|---|---|
void |
doMethod(java.lang.Object i,
DExtensible re,
java.lang.Object arg)
Deprecated. Stub to trace without error any undefined/unresolved method. |
protected DExtensible.InvokeMethod |
getDoMethod(java.lang.Class for_class)
Deprecated. |
void |
installDoMethod(java.lang.reflect.Method m,
java.lang.Object callee)
Deprecated. Add invoke method for class m.arg[0].getClass(), method must have only one parameter. |
void |
installDoMethods(java.lang.Object callee)
Deprecated. Parse callee class definition and installs all methods "doMethod( arg )", where arg is any class. |
void |
installDoMethods(java.lang.String method_name,
java.lang.Object callee)
Deprecated. Parse callee class definition and installs all methods "method_name( arg )", where arg is of any class. |
void |
invokeDoMethod(java.lang.Object arg,
DExtensible ext,
java.lang.Object parser_arg)
Deprecated. resolve best "doMethod" for arg.getClass() known in current extensible object and perform the invokation of this method using same argument. |
protected void |
invokeSuperDoMethod(java.lang.Object super_of,
java.lang.Object arg,
DExtensible ext,
java.lang.Object parser_arg)
Deprecated. Resolve best "doMethod" for arg.getClass() known in current extensible object and perform the invokation of this method using same argument. |
void |
removeDoMethod(java.lang.reflect.Method m,
java.lang.Object callee)
Deprecated. Removes method m, using calle in the invokation table, let previous installed method for same argument. |
void |
removeDoMethod(java.lang.String method_name,
java.lang.Class arg_type,
java.lang.Object callee)
Deprecated. Remove from incokation table method associated with callee that is currently call for given class object. |
void |
removeDoMethods(java.lang.Object c)
Deprecated. Parse callee class definition and removes all methods "doMethod( arg )" associated with callee (arg if of any class). |
void |
removeDoMethods(java.lang.String method_name,
java.lang.Object callee)
Deprecated. Remove from invokation table all methods "method_name(arg)" (arg is of any class), using given callee object. |
protected DExtensible.InvokeMethod |
resolveDoMethod(java.lang.Object arg,
java.lang.Object super_of_this_callee)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Hashtable mapMethod
protected java.lang.Object[] paramTab
| Constructor Detail |
|---|
public DExtensible()
| Method Detail |
|---|
public void doMethod(java.lang.Object i,
DExtensible re,
java.lang.Object arg)
protected DExtensible.InvokeMethod getDoMethod(java.lang.Class for_class)
#resolveInvokeMethod( Object )
protected DExtensible.InvokeMethod resolveDoMethod(java.lang.Object arg,
java.lang.Object super_of_this_callee)
arg - actual parameter its getClass() is used to resolve doMethod() to invoke.super_of_this_callee - the 'I want to get previous installed callee' constraint.
public void invokeDoMethod(java.lang.Object arg,
DExtensible ext,
java.lang.Object parser_arg)
protected void invokeSuperDoMethod(java.lang.Object super_of,
java.lang.Object arg,
DExtensible ext,
java.lang.Object parser_arg)
public final void installDoMethod(java.lang.reflect.Method m,
java.lang.Object callee)
m - the method to call, having only one parameter.callee - is an instance where method is accessible.
java.lang.Error - if method haven't parameter of have more than one parameter.
public final void installDoMethods(java.lang.String method_name,
java.lang.Object callee)
method_name - method_name to extract invoke methods.callee - is an instance where method is accessible.installDoMethod(Method,Object)public final void installDoMethods(java.lang.Object callee)
callee - is an instance where method is accessible.installDoMethods(String,Object)
public final void removeDoMethod(java.lang.reflect.Method m,
java.lang.Object callee)
public final void removeDoMethod(java.lang.String method_name,
java.lang.Class arg_type,
java.lang.Object callee)
method_name - name used to search in callee's class definitionarg_type - the method arg type used to know wich method to remove (overloading).callee - object used to access method.removeDoMethod( Method m, Object callee )
public final void removeDoMethods(java.lang.String method_name,
java.lang.Object callee)
method_name - method name used to parse callee class definition.callee - object used to access method.removeDoMethod(Method,Object)public final void removeDoMethods(java.lang.Object c)
removeDoMethods(String,Object)
|
TPTP 4.6.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||