When a method is located in a subordinate namespace or invoked from an arbitrary namespace it must nontheless execute with its 'super' as the context in which it was declared.
| Modifier and Type | Field and Description |
|---|---|
| private Class | |
| private Class | |
| pack-priv NameSpace | |
| private Method | |
| private Object | |
| pack-priv BSHBlock | |
| pack-priv Modifiers | |
| private String | |
| private int | |
| private String[] |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Modifiers | |
| public String | |
| public String[] | |
| public Class | |
| public Class | Returns: Returns null for a loosely typed return value, Void.TYPE for a void return type, or the Class of the type.Get the return type of the method. |
| public boolean | |
| public Object | invoke(Object[] argValues, Interpreter interpreter)
Invoke the declared method with the specified arguments and interpreter reference. |
| public Object | invoke(Object[] argValues, Interpreter interpreter, CallStack
is the callstack. If callstack is null a new one
will be created with the declaring namespace of the method on top
of the stack (i.e. it will look for purposes of the method
invocation like the method call occurred in the declaring
(enclosing) namespace in which the method is defined). callstack, SimpleNode is the BeanShell AST node representing the method
invocation. It is used to print the line number and text of
errors in EvalError exceptions. If the node is null here error
messages may not be able to point to the precise location and text
of the error. callerInfo)Invoke the bsh method with the specified args, interpreter ref, and callstack. |
| pack-priv Object | invoke(Object[] argValues, Interpreter interpreter, CallStack
is the callstack. If callstack is null a new one
will be created with the declaring namespace of the method on top
of the stack (i.e. it will look for purposes of the method
invocation like the method call occurred in the declaring
(enclosing) namespace in which the method is defined). callstack, SimpleNode is the BeanShell AST node representing the method
invocation. It is used to print the line number and text of
errors in EvalError exceptions. If the node is null here error
messages may not be able to point to the precise location and text
of the error. callerInfo, boolean When true the method is executed in the namespace on the top of the
stack instead of creating its own local namespace. This allows it
to be used in constructors. overrideNameSpace)Invoke the bsh method with the specified args, interpreter ref, and callstack. |
| private Object | invokeImpl(Object[] argValues, Interpreter interpreter, CallStack callstack, SimpleNode callerInfo, boolean overrideNameSpace)
|
| public String |
| cparamTypes | back to summary |
|---|---|
| private Class<T>[] cparamTypes | |
| creturnType | back to summary |
|---|---|
| private Class<T> creturnType | |
| declaringNameSpace | back to summary |
|---|---|
| pack-priv NameSpace declaringNameSpace | |
| javaMethod | back to summary |
|---|---|
| private Method javaMethod | |
| javaObject | back to summary |
|---|---|
| private Object javaObject | |
| methodBody | back to summary |
|---|---|
| pack-priv BSHBlock methodBody | |
| modifiers | back to summary |
|---|---|
| pack-priv Modifiers modifiers | |
| name | back to summary |
|---|---|
| private String name | |
| numArgs | back to summary |
|---|---|
| private int numArgs | |
| paramNames | back to summary |
|---|---|
| private String[] paramNames | |
| BshMethod | back to summary |
|---|---|
| pack-priv BshMethod(BSHMethodDeclaration method, NameSpace declaringNameSpace, Modifiers modifiers) | |
| BshMethod | back to summary |
|---|---|
| pack-priv BshMethod(String name, Class<T> returnType, String[] paramNames, Class<T>[] paramTypes, BSHBlock methodBody, NameSpace declaringNameSpace, Modifiers modifiers) | |
| BshMethod | back to summary |
|---|---|
| pack-priv BshMethod(Method method, Object object) | |
| getModifiers | back to summary |
|---|---|
| public Modifiers getModifiers() | |
| getName | back to summary |
|---|---|
| public String getName() | |
| getParameterNames | back to summary |
|---|---|
| public String[] getParameterNames() | |
| getParameterTypes | back to summary |
|---|---|
| public Class Get the argument types of this method. loosely typed (untyped) arguments will be represented by null argument types. | |
| getReturnType | back to summary |
|---|---|
| public Class Get the return type of the method.
| |
| hasModifier | back to summary |
|---|---|
| public boolean hasModifier(String name) | |
| invoke | back to summary |
|---|---|
| public Object invoke(Object[] argValues, Interpreter interpreter) throws EvalError Invoke the declared method with the specified arguments and interpreter reference. This is the simplest form of invoke() for BshMethod intended to be used in reflective style access to bsh scripts. | |
| invoke | back to summary |
|---|---|
| public Object invoke(Object[] argValues, Interpreter interpreter, CallStack callstack, SimpleNode callerInfo) throws EvalError Invoke the bsh method with the specified args, interpreter ref, and callstack. callerInfo is the node representing the method invocation It is used primarily for debugging in order to provide access to the text of the construct that invoked the method through the namespace.
| |
| invoke | back to summary |
|---|---|
| pack-priv Object invoke(Object[] argValues, Interpreter interpreter, CallStack callstack, SimpleNode callerInfo, boolean overrideNameSpace) throws EvalError Invoke the bsh method with the specified args, interpreter ref, and callstack. callerInfo is the node representing the method invocation It is used primarily for debugging in order to provide access to the text of the construct that invoked the method through the namespace.
| |
| invokeImpl | back to summary |
|---|---|
| private Object invokeImpl(Object[] argValues, Interpreter interpreter, CallStack callstack, SimpleNode callerInfo, boolean overrideNameSpace) throws EvalError | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |