public class ReflectionConstructor extends java.lang.Object implements Constructor
Modifier and Type | Field and Description |
---|---|
(package private) ImportContext |
importContext |
(package private) Instantiator |
instantiator |
(package private) int |
npkg |
(package private) static java.util.ArrayList<java.lang.String> |
paths |
(package private) java.lang.String[] |
pkgs |
(package private) java.util.ArrayList |
search |
(package private) java.lang.String |
wkpkg |
Constructor and Description |
---|
ReflectionConstructor() |
ReflectionConstructor(java.lang.String path) |
Modifier and Type | Method and Description |
---|---|
static void |
addPath(java.lang.String s) |
void |
addSearchPackage(java.lang.String s) |
void |
appendContent(java.lang.Object obj,
java.lang.String s) |
void |
applyAttributes(java.lang.Object target,
Attribute[] atta) |
void |
checkAddPackage(java.lang.Object oret) |
java.lang.Object |
getChildObject(java.lang.Object parent,
java.lang.String name,
Attribute[] attain) |
java.lang.Object |
getField(java.lang.Object ob,
java.lang.String fnm) |
java.lang.Object |
newInstance(java.lang.String scl) |
private boolean |
nonPrimitive(java.lang.Object arg) |
void |
setArrayField(java.lang.Object obj,
java.lang.reflect.Field fld,
java.util.ArrayList vals) |
boolean |
setAttributeField(java.lang.Object target,
java.lang.String name,
java.lang.String arg) |
boolean |
setField(java.lang.Object ob,
java.lang.String sfin,
java.lang.Object argin) |
void |
setImportContext(ImportContext ctx) |
void |
setInstantiator(Instantiator inst) |
void |
setIntFromStatic(java.lang.Object ret,
java.lang.String id,
java.lang.String sv) |
java.util.ArrayList search
int npkg
java.lang.String[] pkgs
java.lang.String wkpkg
ImportContext importContext
Instantiator instantiator
static java.util.ArrayList<java.lang.String> paths
public ReflectionConstructor()
public ReflectionConstructor(java.lang.String path)
public static void addPath(java.lang.String s)
public void setInstantiator(Instantiator inst)
public void setImportContext(ImportContext ctx)
public void addSearchPackage(java.lang.String s)
public void appendContent(java.lang.Object obj, java.lang.String s)
appendContent
in interface Constructor
public void checkAddPackage(java.lang.Object oret)
public java.lang.Object newInstance(java.lang.String scl)
newInstance
in interface Constructor
public java.lang.Object getField(java.lang.Object ob, java.lang.String fnm)
getField
in interface Constructor
public java.lang.Object getChildObject(java.lang.Object parent, java.lang.String name, Attribute[] attain)
getChildObject
in interface Constructor
public void applyAttributes(java.lang.Object target, Attribute[] atta)
applyAttributes
in interface Constructor
public boolean setAttributeField(java.lang.Object target, java.lang.String name, java.lang.String arg)
setAttributeField
in interface Constructor
public boolean setField(java.lang.Object ob, java.lang.String sfin, java.lang.Object argin)
setField
in interface Constructor
public void setArrayField(java.lang.Object obj, java.lang.reflect.Field fld, java.util.ArrayList vals)
private boolean nonPrimitive(java.lang.Object arg)
public void setIntFromStatic(java.lang.Object ret, java.lang.String id, java.lang.String sv)
setIntFromStatic
in interface Constructor
Copyright © 2013. All Rights Reserved.