public class ClassFile extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ACC_ABSTRACT |
static int |
ACC_FINAL |
static int |
ACC_INTERFACE |
static int |
ACC_NATIVE |
static int |
ACC_PRIVATE |
static int |
ACC_PROTECTED |
static int |
ACC_PUBLIC |
static int |
ACC_STATIC |
static int |
ACC_SYNCHRONIZED |
static int |
ACC_THREADSAFE |
static int |
ACC_TRANSIENT |
short |
accessFlags |
ConstantPoolInfo[] |
constantPool |
ConstantPoolInfo[] |
interfaces |
ConstantPoolInfo |
superClass |
ConstantPoolInfo |
thisClass |
Constructor and Description |
---|
ClassFile(ConstantPoolInfo poolInfo)
Creates a new instance of ClassFile
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsAnnotation(byte[] bytecode)
Read the input channel and initialize instance data
structure.
|
boolean |
containsAnnotation(ReadableByteChannel in,
long size)
Read the input channel and initialize instance data
structure.
|
public ConstantPoolInfo[] constantPool
public short accessFlags
public ConstantPoolInfo thisClass
public ConstantPoolInfo superClass
public ConstantPoolInfo[] interfaces
public static final int ACC_PUBLIC
public static final int ACC_PRIVATE
public static final int ACC_PROTECTED
public static final int ACC_STATIC
public static final int ACC_FINAL
public static final int ACC_SYNCHRONIZED
public static final int ACC_THREADSAFE
public static final int ACC_TRANSIENT
public static final int ACC_NATIVE
public static final int ACC_INTERFACE
public static final int ACC_ABSTRACT
public ClassFile(ConstantPoolInfo poolInfo)
public boolean containsAnnotation(ReadableByteChannel in, long size) throws IOException
IOException
public boolean containsAnnotation(byte[] bytecode) throws IOException
IOException
Copyright © 2019. All rights reserved.