@Deprecated
public class ReflectedUniverse
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
force
Deprecated.
Whether to force our way past restrictive access modifiers.
|
protected java.lang.ClassLoader |
loader
Deprecated.
Class loader for imported classes.
|
protected java.util.HashMap<java.lang.String,java.lang.Object> |
variables
Deprecated.
Hashtable containing all variables present in the universe.
|
Constructor and Description |
---|
ReflectedUniverse()
Deprecated.
Constructs a new reflected universe.
|
ReflectedUniverse(java.lang.ClassLoader loader)
Deprecated.
Constructs a new reflected universe that uses the given class loader.
|
ReflectedUniverse(java.net.URL[] urls)
Deprecated.
Constructs a new reflected universe, with the given URLs
representing additional search paths for imported classes
(in addition to the CLASSPATH).
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
exec(java.lang.String command)
Deprecated.
Executes a command in the universe.
|
java.lang.Object |
getVar(java.lang.String varName)
Deprecated.
Returns the value of a variable or field in the universe.
|
boolean |
isAccessibilityIgnored()
Deprecated.
Gets whether access modifiers (protected, private, etc.) are ignored.
|
static boolean |
isInstance(java.lang.Class<?> c,
java.lang.Object o)
Deprecated.
Returns whether the given object is compatible with the
specified class for the purposes of reflection.
|
static void |
main(java.lang.String[] args)
Deprecated.
Allows exploration of a reflected universe in an interactive environment.
|
void |
setAccessibilityIgnored(boolean ignore)
Deprecated.
Sets whether access modifiers (protected, private, etc.) are ignored.
|
void |
setVar(java.lang.String varName,
boolean b)
Deprecated.
Registers a variable of primitive type boolean in the universe.
|
void |
setVar(java.lang.String varName,
byte b)
Deprecated.
Registers a variable of primitive type byte in the universe.
|
void |
setVar(java.lang.String varName,
char c)
Deprecated.
Registers a variable of primitive type char in the universe.
|
void |
setVar(java.lang.String varName,
double d)
Deprecated.
Registers a variable of primitive type double in the universe.
|
void |
setVar(java.lang.String varName,
float f)
Deprecated.
Registers a variable of primitive type float in the universe.
|
void |
setVar(java.lang.String varName,
int i)
Deprecated.
Registers a variable of primitive type int in the universe.
|
void |
setVar(java.lang.String varName,
long l)
Deprecated.
Registers a variable of primitive type long in the universe.
|
void |
setVar(java.lang.String varName,
java.lang.Object obj)
Deprecated.
Registers a variable in the universe.
|
void |
setVar(java.lang.String varName,
short s)
Deprecated.
Registers a variable of primitive type short in the universe.
|
protected java.util.HashMap<java.lang.String,java.lang.Object> variables
protected java.lang.ClassLoader loader
protected boolean force
public ReflectedUniverse()
public ReflectedUniverse(java.net.URL[] urls)
public ReflectedUniverse(java.lang.ClassLoader loader)
public static boolean isInstance(java.lang.Class<?> c, java.lang.Object o)
public java.lang.Object exec(java.lang.String command) throws ReflectException
ReflectException
public void setVar(java.lang.String varName, java.lang.Object obj)
public void setVar(java.lang.String varName, boolean b)
public void setVar(java.lang.String varName, byte b)
public void setVar(java.lang.String varName, char c)
public void setVar(java.lang.String varName, double d)
public void setVar(java.lang.String varName, float f)
public void setVar(java.lang.String varName, int i)
public void setVar(java.lang.String varName, long l)
public void setVar(java.lang.String varName, short s)
public java.lang.Object getVar(java.lang.String varName) throws ReflectException
ReflectException
public void setAccessibilityIgnored(boolean ignore)
public boolean isAccessibilityIgnored()
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
Copyright © 2014 Open Microscopy Environment