public class ModAnnotation
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ModAnnotation.EnumHolder |
Modifier and Type | Field and Description |
---|---|
private java.util.ArrayList<java.lang.Object> |
arrayList |
private java.lang.String |
arrayName |
private org.objectweb.asm.Type |
asmType |
private java.lang.String |
member |
private java.lang.annotation.ElementType |
type |
private java.util.Map<java.lang.String,java.lang.Object> |
values |
Constructor and Description |
---|
ModAnnotation(java.lang.annotation.ElementType type,
org.objectweb.asm.Type asmType,
ModAnnotation parent)
Deprecated.
|
ModAnnotation(java.lang.annotation.ElementType type,
org.objectweb.asm.Type asmType,
java.lang.String member) |
ModAnnotation(org.objectweb.asm.Type asmType,
ModAnnotation parent) |
Modifier and Type | Method and Description |
---|---|
void |
addArray(java.lang.String name) |
ModAnnotation |
addChildAnnotation(java.lang.String name,
java.lang.String desc) |
void |
addEnumProperty(java.lang.String key,
java.lang.String enumName,
java.lang.String value) |
void |
addProperty(java.lang.String key,
java.lang.Object value) |
void |
endArray() |
static net.minecraftforge.forgespi.language.ModFileScanData.AnnotationData |
fromModAnnotation(org.objectweb.asm.Type clazz,
ModAnnotation annotation) |
org.objectweb.asm.Type |
getASMType() |
java.lang.String |
getMember() |
java.lang.annotation.ElementType |
getType() |
java.util.Map<java.lang.String,java.lang.Object> |
getValues() |
java.lang.String |
toString() |
private final java.lang.annotation.ElementType type
private final org.objectweb.asm.Type asmType
private final java.lang.String member
private final java.util.Map<java.lang.String,java.lang.Object> values
private java.util.ArrayList<java.lang.Object> arrayList
private java.lang.String arrayName
public ModAnnotation(java.lang.annotation.ElementType type, org.objectweb.asm.Type asmType, java.lang.String member)
@Deprecated public ModAnnotation(java.lang.annotation.ElementType type, org.objectweb.asm.Type asmType, ModAnnotation parent)
public ModAnnotation(org.objectweb.asm.Type asmType, ModAnnotation parent)
public static net.minecraftforge.forgespi.language.ModFileScanData.AnnotationData fromModAnnotation(org.objectweb.asm.Type clazz, ModAnnotation annotation)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.annotation.ElementType getType()
public org.objectweb.asm.Type getASMType()
public java.lang.String getMember()
public java.util.Map<java.lang.String,java.lang.Object> getValues()
public void addArray(java.lang.String name)
public void addProperty(java.lang.String key, java.lang.Object value)
public void addEnumProperty(java.lang.String key, java.lang.String enumName, java.lang.String value)
public void endArray()
public ModAnnotation addChildAnnotation(java.lang.String name, java.lang.String desc)