public class DeclaredTypeFactory extends java.lang.Object implements ITypeFactory<BinaryClass,JvmDeclaredType>
types
.
Clients are not supposed to use this class directly but the IJvmTypeProvider
or TypeReferences
instead. Those will take care of types that are requested more than once and therefore should return the very same
type
on subsequent queries.ITypeFactory.OptionsAware<TypeData,Type extends JvmType>
Constructor and Description |
---|
DeclaredTypeFactory(ClassFileBytesAccess bytesAccess,
java.lang.ClassLoader loader) |
DeclaredTypeFactory(ClassFileBytesAccess bytesAccess,
java.lang.ClassLoader loader,
boolean useASM) |
Modifier and Type | Method and Description |
---|---|
JvmDeclaredType |
createType(BinaryClass binaryClass)
Creates a new
type from the given binary class.. |
protected JvmDeclaredType |
doCreateType(BinaryClass binaryClass) |
@Inject public DeclaredTypeFactory(ClassFileBytesAccess bytesAccess, java.lang.ClassLoader loader)
public DeclaredTypeFactory(ClassFileBytesAccess bytesAccess, java.lang.ClassLoader loader, boolean useASM)
public JvmDeclaredType createType(BinaryClass binaryClass)
type
from the given binary class..createType
in interface ITypeFactory<BinaryClass,JvmDeclaredType>
protected JvmDeclaredType doCreateType(BinaryClass binaryClass)