Class ModAnnotation
- java.lang.Object
-
- net.minecraftforge.fml.loading.moddiscovery.ModAnnotation
-
public class ModAnnotation extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ModAnnotation.EnumHolder
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description ModAnnotation(java.lang.annotation.ElementType type, org.objectweb.asm.Type asmType, java.lang.String member)
ModAnnotation(org.objectweb.asm.Type asmType, ModAnnotation parent)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Field Detail
-
type
private final java.lang.annotation.ElementType type
-
asmType
private final org.objectweb.asm.Type asmType
-
member
private final java.lang.String member
-
values
private final java.util.Map<java.lang.String,java.lang.Object> values
-
arrayList
private java.util.ArrayList<java.lang.Object> arrayList
-
arrayName
private java.lang.String arrayName
-
-
Constructor Detail
-
ModAnnotation
public ModAnnotation(java.lang.annotation.ElementType type, org.objectweb.asm.Type asmType, java.lang.String member)
-
ModAnnotation
public ModAnnotation(org.objectweb.asm.Type asmType, ModAnnotation parent)
-
-
Method Detail
-
fromModAnnotation
public static net.minecraftforge.forgespi.language.ModFileScanData.AnnotationData fromModAnnotation(org.objectweb.asm.Type clazz, ModAnnotation annotation)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getType
public java.lang.annotation.ElementType getType()
-
getASMType
public org.objectweb.asm.Type getASMType()
-
getMember
public java.lang.String getMember()
-
getValues
public java.util.Map<java.lang.String,java.lang.Object> getValues()
-
addArray
public void addArray(java.lang.String name)
-
addProperty
public void addProperty(java.lang.String key, java.lang.Object value)
-
addEnumProperty
public void addEnumProperty(java.lang.String key, java.lang.String enumName, java.lang.String value)
-
endArray
public void endArray()
-
addChildAnnotation
public ModAnnotation addChildAnnotation(java.lang.String name, java.lang.String desc)
-
-