Package | Description |
---|---|
gnu.bytecode |
Contains classes to generate, read,
write, and print Java bytecode in the form of
.class files. |
gnu.expr |
Supports
Expression ,
and various related classes need to compile programming languages. |
Modifier and Type | Class and Description |
---|---|
class |
ClassType |
class |
CodeAttr
Represents the contents of a standard "Code" attribute.
|
class |
Field |
class |
Method
Represents a method in a
ClassType . |
Modifier and Type | Method and Description |
---|---|
AttrContainer |
Attribute.getContainer()
Return the Attribute container that contains this Attribute.
|
Modifier and Type | Method and Description |
---|---|
void |
Attribute.addToFrontOf(AttrContainer container)
Add this to (the front of) of the specified attribute container.
|
static void |
Attribute.assignConstants(AttrContainer container,
ClassType cl)
Add any needed constant pool entries for all attributes in a container.
|
static int |
Attribute.count(AttrContainer container) |
static Attribute |
Attribute.get(AttrContainer container,
java.lang.String name)
Find an Attribute by name, in an attribute cointainer.
|
static <T extends java.lang.annotation.Annotation> |
RuntimeAnnotationsAttr.getAnnotation(AttrContainer container,
java.lang.Class<T> clas) |
static RuntimeAnnotationsAttr |
RuntimeAnnotationsAttr.getAnnotationsAttr(AttrContainer container,
java.lang.String name) |
static int |
Attribute.getLengthAll(AttrContainer container)
Return the length of all the attributes (with headers) in bytes.
|
static RuntimeAnnotationsAttr |
RuntimeAnnotationsAttr.getRuntimeInvisibleAnnotations(AttrContainer container)
Get or create a RuntimeInvisibleAnnotations attribute.
|
static RuntimeAnnotationsAttr |
RuntimeAnnotationsAttr.getRuntimeVisibleAnnotations(AttrContainer container)
Get or create a RuntimeVisibleAnnotations attribute.
|
static void |
RuntimeAnnotationsAttr.maybeAddAnnotation(AttrContainer container,
AnnotationEntry annotation)
Add to appropriate annotations attribute.
|
void |
ClassTypeWriter.printAttributes(AttrContainer container) |
Attribute |
dump.readAttribute(java.lang.String name,
int length,
AttrContainer container) |
Attribute |
ClassFileInput.readAttribute(java.lang.String name,
int length,
AttrContainer container) |
int |
ClassFileInput.readAttributes(AttrContainer container) |
void |
Attribute.setContainer(AttrContainer container) |
static void |
Attribute.writeAll(AttrContainer container,
java.io.DataOutputStream dstr) |
Constructor and Description |
---|
AnnotationDefaultAttr(java.lang.String name,
AnnotationEntry.Value value,
AttrContainer container) |
RuntimeAnnotationsAttr(java.lang.String name,
AnnotationEntry[] entries,
int numEntries,
AttrContainer container)
Add a new AnnotationAttr to a Member.
|
Modifier and Type | Class and Description |
---|---|
class |
PairClassType
A class type implemented as a pair of an interface and a class.
|
Modifier and Type | Method and Description |
---|---|
void |
Declaration.compileAnnotations(AttrContainer container,
java.lang.annotation.ElementType etype) |
void |
Declaration.maybeSourceName(AttrContainer member,
java.lang.String expName)
Add SourceName annotation to member, if needed.
|