public static interface Transformer.ClassEntry extends Transformer.Entry
ClassEntry represents a class file entry in a JAR file.STABLE_TIMESTAMP| Modifier and Type | Method and Description |
|---|---|
static Transformer.ClassEntry |
create(java.lang.String name,
long time,
byte[] data)
Creates a default class entry.
|
static Transformer.ClassEntry |
create(java.lang.String cls,
long time,
byte[] data,
int version)
Creates a default class entry for a multi-release class.
|
java.lang.String |
getClassName()
Returns the internal name of the class associated with this entry.
|
int |
getVersion()
Returns the java version associated with this multi-release class.
|
boolean |
isMultiRelease()
Returns
true if this entry is a multi-release class. |
getData, getName, getTime, processstatic Transformer.ClassEntry create(java.lang.String name, long time, byte[] data)
name - the name of the entrytime - the last modification timedata - the raw class bytesstatic Transformer.ClassEntry create(java.lang.String cls, long time, byte[] data, int version)
cls - the name of the classtime - the last modification timedata - the raw class bytesversion - the java versionjava.lang.String getClassName()
Type.getInternalName()boolean isMultiRelease()
true if this entry is a multi-release class.getVersion()int getVersion()
isMultiRelease()