| Package | Description |
|---|---|
| bsh |
| Modifier and Type | Field and Description |
|---|---|
Variable |
BSHAutoCloseable.varThis |
| Modifier and Type | Method and Description |
|---|---|
protected Variable |
NameSpace.createVariable(java.lang.String name,
java.lang.Class<?> type,
bsh.LHS lhs)
Creates the variable.
|
protected Variable |
NameSpace.createVariable(java.lang.String name,
java.lang.Class<?> type,
java.lang.Object value,
Modifiers mods)
Creates the variable.
|
Variable |
ExternalNameSpace.createVariable(java.lang.String name,
java.lang.Class type,
java.lang.Object value,
Modifiers mods) |
protected Variable |
NameSpace.createVariable(java.lang.String name,
java.lang.Object value,
Modifiers mods)
Creates the variable.
|
static Variable |
Reflect.getDeclaredVariable(java.lang.Class<?> type,
java.lang.String name) |
Variable[] |
NameSpace.getDeclaredVariables() |
static Variable[] |
Reflect.getDeclaredVariables(java.lang.Class<?> type) |
protected Variable |
NameSpace.getImportedVar(java.lang.String name)
Gets the imported var.
|
static Variable |
Reflect.getVariable(java.lang.Class<?> type,
java.lang.String name) |
static Variable |
Reflect.getVariable(NameSpace ns,
java.lang.String name) |
static Variable |
Reflect.getVariable(java.lang.Object object,
java.lang.String name) |
protected Variable |
ExternalNameSpace.getVariableImpl(java.lang.String name,
boolean recurse) |
protected Variable |
NameSpace.getVariableImpl(java.lang.String name,
boolean recurse)
Locate a variable and return the Variable object with optional recursion
through parent name spaces.
|
Variable[] |
NameSpace.getVariables()
Get the variables defined in this namespace.
|
static Variable[] |
Reflect.getVariables(java.lang.Class<?> type) |
static Variable[] |
Reflect.getVariables(NameSpace ns) |
static Variable[] |
Reflect.getVariables(NameSpace ns,
java.lang.String[] names) |
static Variable[] |
Reflect.getVariables(java.lang.Object object) |
Variable |
NameSpace.setLocalVariable(java.lang.String name,
java.lang.Object value,
boolean strictJava)
Set a variable explicitly in the local scope.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
NameSpace.setVariableImpl(Variable var) |
protected java.lang.Object |
NameSpace.unwrapVariable(Variable var)
Unwrap a variable to its value.
|
static java.lang.String |
StringUtil.variableString(Variable var)
Produce a string representation of a bsh variable declaration.
|
| Constructor and Description |
|---|
ClassGeneratorUtil(Modifiers classModifiers,
java.lang.String className,
java.lang.String packageName,
java.lang.Class<?> superClass,
java.lang.Class<?>[] interfaces,
Variable[] vars,
DelayedEvalBshMethod[] bshmethods,
NameSpace classStaticNameSpace,
bsh.ClassGenerator.Type type) |