| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private ClassInfo | |
| private Map | |
| private static int | |
| private MethodVisitor | |
| private CodeEmitter | |
| private Signature | |
| private CodeEmitter |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | begin_class(int version, final int access, String className, final Type superType, final Type[] interfaces, String source)
|
| public CodeEmitter | |
| public CodeEmitter | |
| public void | |
| public void | |
| public int | |
| public ClassInfo | |
| public Type | |
| pack-priv ClassEmitter. | |
| private static synchronized int | |
| public CodeEmitter | |
| public Type | |
| protected void | |
| pack-priv boolean | |
| public void | setTarget(ClassVisitor cv)
Implements abstract org. |
| public void | visit(int
the class version. The minor version is stored in the 16 most significant bits,
and the major version in the 16 least significant bits. version, int the class's access flags (see access, String Opcodes). This parameter also indicates if
the class is deprecated Opcodes#ACC_DEPRECATED or a record Opcodes#ACC_RECORD.the internal name of the class (see name, String Type#getInternalName()).the signature of this class. May be null if the class is not a
generic one, and does not extend or implement generic classes or interfaces. signature, String the internal of name of the super class (see superName, String[] Type#getInternalName()).
For interfaces, the super class is Object. May be null, but only for the
Object class.the internal names of the class's interfaces (see interfaces)Type#getInternalName()). May be null.Overrides org. |
| public void | |
| public FieldVisitor | visitField(int
the field's access flags (see access, String Opcodes). This parameter also indicates if
the field is synthetic and/or deprecated.the field's name. name, String the field's descriptor (see desc, String Type).the field's signature. May be null if the field's type does not use
generic types. signature, Object the field's initial value. This parameter, which may be null if the
field does not have an initial value, must be an value)
Visits a field of the class.
Integer, a Float, a Long, a Double or a String (for int, float, long
or String fields respectively). This parameter is only used for static
fields. Its value is ignored for non static fields, which must be initialized through
bytecode instructions in constructors or methods. |
| public MethodVisitor | visitMethod(int
the method's access flags (see access, String Opcodes). This parameter also indicates if
the method is synthetic and/or deprecated.the method's name. name, String the method's descriptor (see desc, String Type).the method's signature. May be null if the method parameters,
return type and exceptions do not use generic types. signature, String[] the internal names of the method's exception classes (see exceptions)
Visits a method of the class.
Type#getInternalName()). May be null. |
| classInfo | back to summary |
|---|---|
| private ClassInfo classInfo | |
| fieldInfo | back to summary |
|---|---|
| private Map<K, V> fieldInfo | |
| hookCounter | back to summary |
|---|---|
| private static int hookCounter | |
| rawStaticInit | back to summary |
|---|---|
| private MethodVisitor rawStaticInit | |
| staticHook | back to summary |
|---|---|
| private CodeEmitter staticHook | |
| staticHookSig | back to summary |
|---|---|
| private Signature staticHookSig | |
| staticInit | back to summary |
|---|---|
| private CodeEmitter staticInit | |
| ClassEmitter | back to summary |
|---|---|
| public ClassEmitter(ClassVisitor cv) | |
| ClassEmitter | back to summary |
|---|---|
| public ClassEmitter() | |
| begin_class | back to summary |
|---|---|
| public void begin_class(int version, final int access, String className, final Type superType, final Type[] interfaces, String source) | |
| begin_method | back to summary |
|---|---|
| public CodeEmitter begin_method(int access, Signature sig, Type[] exceptions) | |
| begin_static | back to summary |
|---|---|
| public CodeEmitter begin_static() | |
| declare_field | back to summary |
|---|---|
| public void declare_field(int access, String name, Type type, Object value) | |
| end_class | back to summary |
|---|---|
| public void end_class() | |
| getAccess | back to summary |
|---|---|
| public int getAccess() | |
| getClassInfo | back to summary |
|---|---|
| public ClassInfo getClassInfo() | |
| getClassType | back to summary |
|---|---|
| public Type getClassType() | |
| getFieldInfo | back to summary |
|---|---|
| pack-priv ClassEmitter. | |
| getNextHook | back to summary |
|---|---|
| private static synchronized int getNextHook() | |
| getStaticHook | back to summary |
|---|---|
| public CodeEmitter getStaticHook() | |
| getSuperType | back to summary |
|---|---|
| public Type getSuperType() | |
| init | back to summary |
|---|---|
| protected void init() | |
| isFieldDeclared | back to summary |
|---|---|
| pack-priv boolean isFieldDeclared(String name) | |
| setTarget | back to summary |
|---|---|
| public void setTarget(ClassVisitor cv) Implements abstract org.
| |
| visit | back to summary |
|---|---|
| public void visit(int version, int access, String name, String signature, String superName, String[] interfaces) Overrides org. Doc from org. Visits the header of the class.
| |
| visitEnd | back to summary |
|---|---|
| public void visitEnd() Overrides org. Doc from org. Visits the end of the class. This method, which is the last one to be called, is used to inform the visitor that all the fields and methods of the class have been visited.
| |
| visitField | back to summary |
|---|---|
| public FieldVisitor visitField(int access, String name, String desc, String signature, Object value) Overrides org. Doc from org. Visits a field of the class.
| |
| visitMethod | back to summary |
|---|---|
| public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) Overrides org. Doc from org. Visits a method of the class. This method must return a new
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv String | |
| pack-priv Type | |
| pack-priv Object |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public int |
| access | back to summary |
|---|---|
| pack-priv int access | |
| name | back to summary |
|---|---|
| pack-priv String name | |
| type | back to summary |
|---|---|
| pack-priv Type type | |
| value | back to summary |
|---|---|
| pack-priv Object value | |
| FieldInfo | back to summary |
|---|---|
| public FieldInfo(int access, String name, Type type, Object value) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |