public class FieldWriter extends ClassNodeTransformer
| Modifier and Type | Field and Description |
|---|---|
int |
access |
ObfMapping |
field |
java.lang.Object |
value |
writeFlags| Constructor and Description |
|---|
FieldWriter(int access,
ObfMapping field)
Writes a field to the provided class.
|
FieldWriter(int access,
ObfMapping field,
java.lang.Object value)
Writes a field to the provided class with a default value.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
className() |
void |
transform(org.objectweb.asm.tree.ClassNode cNode) |
addMethodsToSortpublic final ObfMapping field
public final int access
public final java.lang.Object value
public FieldWriter(@Nonnull
int access,
@Nonnull
ObfMapping field,
@Nullable
java.lang.Object value)
access - The access modifiers the field will have.field - The name and class for the field.value - The default value for the field.public FieldWriter(@Nonnull
int access,
@Nonnull
ObfMapping field)
access - The access modifiers the field will have.field - The name and class for the field.public java.lang.String className()
className in class ClassNodeTransformerpublic void transform(org.objectweb.asm.tree.ClassNode cNode)
transform in class ClassNodeTransformer