public class BoundClass extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addFactory(String fact)
Add binding factory to class.
|
String |
deriveClassName(String prefix,
String suffix)
Derive generated class name for bound class.
|
ClassFile |
getClassFile()
Get bound class file information.
|
String |
getClassName()
Get bound class file name.
|
ClassFile |
getDirectMungedFile()
Get direct munged class file information, if available.
|
static BoundClass |
getInstance(ClassFile cf,
BoundClass context)
Get binding information for class.
|
static BoundClass |
getInstance(String name,
BoundClass context)
Get binding information for class.
|
ClassItem |
getLoadMethod(ClassItem item,
ClassFile from)
Get load access method for member of this class.
|
ClassFile |
getMungedFile()
Get munged class file information.
|
ClassItem |
getStoreMethod(ClassItem item,
ClassFile from)
Get store access method for member of this class.
|
BindingMethod |
getUniqueMethod(MethodBuilder builder)
Get unique method.
|
BindingMethod |
getUniqueNamed(MethodBuilder builder)
Get unique method.
|
boolean |
isDirectAccess()
Check if class being changed directly.
|
boolean |
isLimitedDirectAccess()
Check if class being changed directly with restrictions.
|
static void |
reset()
Discard cached information and reset in preparation for a new binding
run.
|
static void |
setModify(File root,
String pkg,
String name)
Set override modification information.
|
public ClassFile getClassFile()
public String getClassName()
public ClassFile getDirectMungedFile()
public ClassFile getMungedFile()
public boolean isDirectAccess()
true if bound class is being modified,
false if using a surrogatepublic boolean isLimitedDirectAccess()
true if bound class can be modified directly with
basic binding information, false if using a surrogatepublic ClassItem getLoadMethod(ClassItem item, ClassFile from) throws org.jibx.runtime.JiBXException
item - field or method to be accessedfrom - context class from which access is requiredorg.jibx.runtime.JiBXException - on configuration errorpublic ClassItem getStoreMethod(ClassItem item, ClassFile from) throws org.jibx.runtime.JiBXException
item - field or method to be accessedfrom - context class from which access is requiredorg.jibx.runtime.JiBXException - on configuration errorpublic BindingMethod getUniqueMethod(MethodBuilder builder) throws org.jibx.runtime.JiBXException
builder - method to be definedorg.jibx.runtime.JiBXException - on configuration errorpublic BindingMethod getUniqueNamed(MethodBuilder builder) throws org.jibx.runtime.JiBXException
builder - method to be definedorg.jibx.runtime.JiBXException - on configuration errorpublic void addFactory(String fact)
fact - binding factory namepublic static BoundClass getInstance(ClassFile cf, BoundClass context) throws org.jibx.runtime.JiBXException
cf - bound class informationcontext - context class for code generation, or null
if no contextorg.jibx.runtime.JiBXException - on configuration errorpublic static BoundClass getInstance(String name, BoundClass context) throws org.jibx.runtime.JiBXException
name - fully qualified name of bound classcontext - context class for code generation, or null
if no contextorg.jibx.runtime.JiBXException - on configuration errorpublic static void reset()
public static void setModify(File root, String pkg, String name)
null
values for unknown parameters that may later be overridden.root - classpath root directory for added classespkg - package for added classesname - binding namepublic String deriveClassName(String prefix, String suffix)
prefix - generated class name prefixsuffix - generated class name suffixCopyright © 2005–2016 jibx.org. All rights reserved.