public class ASMModParser
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
ASMModParser.AnnotationType |
Modifier and Type | Field and Description |
---|---|
private java.util.LinkedList<ModAnnotation> |
annotations |
private org.objectweb.asm.Type |
asmSuperType |
private org.objectweb.asm.Type |
asmType |
private int |
classVersion |
private java.util.Set<java.lang.String> |
interfaces |
Constructor and Description |
---|
ASMModParser(java.io.InputStream stream) |
Modifier and Type | Method and Description |
---|---|
void |
addAnnotationArray(java.lang.String name) |
void |
addAnnotationEnumProperty(java.lang.String name,
java.lang.String desc,
java.lang.String value) |
void |
addAnnotationProperty(java.lang.String key,
java.lang.Object value) |
void |
addSubAnnotation(java.lang.String name,
java.lang.String desc) |
void |
beginNewTypeName(java.lang.String typeQName,
int classVersion,
java.lang.String superClassQName,
java.lang.String[] interfaces) |
void |
endArray() |
void |
endSubAnnotation() |
java.util.LinkedList<ModAnnotation> |
getAnnotations() |
org.objectweb.asm.Type |
getASMSuperType() |
org.objectweb.asm.Type |
getASMType() |
int |
getClassVersion() |
void |
sendToTable(ASMDataTable table,
ModCandidate candidate) |
void |
startClassAnnotation(java.lang.String annotationName) |
void |
startFieldAnnotation(java.lang.String fieldName,
java.lang.String annotationName) |
void |
startMethodAnnotation(java.lang.String methodName,
java.lang.String methodDescriptor,
java.lang.String annotationName) |
java.lang.String |
toString() |
void |
validate() |
private org.objectweb.asm.Type asmType
private int classVersion
private org.objectweb.asm.Type asmSuperType
private java.util.LinkedList<ModAnnotation> annotations
private java.util.Set<java.lang.String> interfaces
public ASMModParser(java.io.InputStream stream) throws java.io.IOException
java.io.IOException
public void beginNewTypeName(java.lang.String typeQName, int classVersion, java.lang.String superClassQName, java.lang.String[] interfaces)
public void startClassAnnotation(java.lang.String annotationName)
public void addAnnotationProperty(java.lang.String key, java.lang.Object value)
public void startFieldAnnotation(java.lang.String fieldName, java.lang.String annotationName)
public java.lang.String toString()
toString
in class java.lang.Object
public org.objectweb.asm.Type getASMType()
public int getClassVersion()
public org.objectweb.asm.Type getASMSuperType()
public java.util.LinkedList<ModAnnotation> getAnnotations()
public void validate()
public void sendToTable(ASMDataTable table, ModCandidate candidate)
public void addAnnotationArray(java.lang.String name)
public void addAnnotationEnumProperty(java.lang.String name, java.lang.String desc, java.lang.String value)
public void endArray()
public void addSubAnnotation(java.lang.String name, java.lang.String desc)
public void endSubAnnotation()
public void startMethodAnnotation(java.lang.String methodName, java.lang.String methodDescriptor, java.lang.String annotationName)