Package org.glassfish.rmic.asm
Class AsmClassFactory
- java.lang.Object
-
- org.glassfish.rmic.asm.AsmClassFactory
-
- All Implemented Interfaces:
ClassDefinitionFactory
public class AsmClassFactory extends java.lang.Object implements ClassDefinitionFactory
A factory for a class definition produced via ASM.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
AsmClassFactory.ClassDefinitionVisitor
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<Identifier,Identifier>
outerClasses
private static java.lang.Boolean
simulateMissingASM
-
Constructor Summary
Constructors Constructor Description AsmClassFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static int
getLatestClassVersion()
Returns the latest API supported by the active version of ASM.(package private) static int
getLatestVersion()
Returns the latest API supported by the active version of ASM.int
getMaxClassVersion()
(package private) Identifier
getOuterClassName(Identifier className)
private boolean
isResolvedInnerClassName(Identifier className)
ClassDefinition
loadDefinition(java.io.InputStream is, Environment env)
-
-
-
Field Detail
-
simulateMissingASM
private static final java.lang.Boolean simulateMissingASM
-
outerClasses
private java.util.Map<Identifier,Identifier> outerClasses
-
-
Method Detail
-
getLatestVersion
static int getLatestVersion()
Returns the latest API supported by the active version of ASM.- Returns:
- an integer value
-
getLatestClassVersion
static int getLatestClassVersion()
Returns the latest API supported by the active version of ASM.- Returns:
- an integer value
-
getOuterClassName
Identifier getOuterClassName(Identifier className)
-
isResolvedInnerClassName
private boolean isResolvedInnerClassName(Identifier className)
-
loadDefinition
public ClassDefinition loadDefinition(java.io.InputStream is, Environment env) throws java.io.IOException
- Specified by:
loadDefinition
in interfaceClassDefinitionFactory
- Throws:
java.io.IOException
-
getMaxClassVersion
public int getMaxClassVersion()
- Specified by:
getMaxClassVersion
in interfaceClassDefinitionFactory
-
-