| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | ClassGeneratorImpl.ClassNodeFilter
A node filter that filters nodes for either a class body static initializer or instance initializer. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| public Class | generateClass(String name, Modifiers modifiers, Class<T>[] interfaces, Class<T> superClass, BSHBlock block, boolean isInterface, CallStack callstack, Interpreter interpreter)
Implements abstract bsh. |
| public static Class | generateClassImpl(String name, Modifiers modifiers, Class<T>[] interfaces, Class<T> superClass, BSHBlock block, boolean isInterface, CallStack callstack, Interpreter interpreter)
Parse the BSHBlock for for the class definition and generate the class using ClassGenerator. |
| pack-priv static DelayedEvalBshMethod[] | getDeclaredMethods(BSHBlock body, CallStack callstack, Interpreter interpreter, String defaultPackage)
|
| pack-priv static Variable[] | getDeclaredVariables(BSHBlock body, CallStack callstack, Interpreter interpreter, String defaultPackage)
|
| private static Class | |
| public Object | invokeSuperclassMethod(BshClassManager bcm, Object instance, String methodName, Object[] args)
Implements abstract bsh. |
| public static Object | |
| public void | setInstanceNameSpaceParent(Object instance, String className, NameSpace parent)
Implements abstract bsh. |
| ClassGeneratorImpl | back to summary |
|---|---|
| public ClassGeneratorImpl() | |
| debugClasses | back to summary |
|---|---|
| private static void debugClasses(String className, byte[] code) | |
| generateClass | back to summary |
|---|---|
| public Class Implements abstract bsh. Doc from bsh. Parse the BSHBlock for the class definition and generate the class. | |
| generateClassImpl | back to summary |
|---|---|
| public static Class Parse the BSHBlock for for the class definition and generate the class using ClassGenerator. | |
| getDeclaredMethods | back to summary |
|---|---|
| pack-priv static DelayedEvalBshMethod[] getDeclaredMethods(BSHBlock body, CallStack callstack, Interpreter interpreter, String defaultPackage) throws EvalError | |
| getDeclaredVariables | back to summary |
|---|---|
| pack-priv static Variable[] getDeclaredVariables(BSHBlock body, CallStack callstack, Interpreter interpreter, String defaultPackage) | |
| getExistingGeneratedClass | back to summary |
|---|---|
| private static Class | |
| invokeSuperclassMethod | back to summary |
|---|---|
| public Object invokeSuperclassMethod(BshClassManager bcm, Object instance, String methodName, Object[] args) throws UtilEvalError, ReflectError, InvocationTargetException Implements abstract bsh. Doc from bsh. Invoke a super.method() style superclass method on an object instance. This is not a normal function of the Java reflection API and is provided by generated class accessor methods. | |
| invokeSuperclassMethodImpl | back to summary |
|---|---|
| public static Object invokeSuperclassMethodImpl(BshClassManager bcm, Object instance, String methodName, Object[] args) throws UtilEvalError, ReflectError, InvocationTargetException | |
| setInstanceNameSpaceParent | back to summary |
|---|---|
| public void setInstanceNameSpaceParent(Object instance, String className, NameSpace parent) Implements abstract bsh. Change the parent of the class instance namespace. This is currently used for inner class support. Note This method will likely be removed in the future. | |
| Modifier and Type | Field and Description |
|---|---|
| public static ClassGeneratorImpl. | |
| public static final int | |
| public static ClassGeneratorImpl. | |
| public static ClassGeneratorImpl. | |
| pack-priv int | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | |
| public boolean |
| CLASSCLASSES | back to summary |
|---|---|
| public static ClassGeneratorImpl. | |
| CLASSES | back to summary |
|---|---|
| public static final int CLASSES | |
| CLASSINSTANCE | back to summary |
|---|---|
| public static ClassGeneratorImpl. | |
| CLASSSTATIC | back to summary |
|---|---|
| public static ClassGeneratorImpl. | |
| context | back to summary |
|---|---|
| pack-priv int context | |
| INSTANCE | back to summary |
|---|---|
| public static final int INSTANCE | |
| STATIC | back to summary |
|---|---|
| public static final int STATIC | |
| ClassNodeFilter | back to summary |
|---|---|
| private ClassNodeFilter(int context) | |
| isStatic | back to summary |
|---|---|
| pack-priv boolean isStatic(SimpleNode node) | |
| isVisible | back to summary |
|---|---|
| public boolean isVisible(SimpleNode node) Implements bsh. | |