Package org.robovm.compiler
Class Annotations
java.lang.Object
org.robovm.compiler.Annotations
public class Annotations extends Object
- Author:
- niklas
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAnnotations.Visibility -
Field Summary
Fields Modifier and Type Field Description static StringAFTER_BRIDGE_CALLstatic StringAFTER_CALLBACK_CALLstatic StringARRAYstatic StringBASE_TYPEstatic StringBRIDGEstatic StringBY_REFstatic StringBY_VALstatic StringCALLBACKstatic StringGLOBAL_VALUEstatic StringMACHINE_SIZED_FLOATstatic StringMACHINE_SIZED_S_INTstatic StringMACHINE_SIZED_U_INTstatic StringMARSHALERstatic StringMARSHALERSstatic StringMARSHALS_ARRAYstatic StringMARSHALS_POINTERstatic StringMARSHALS_VALUEstatic StringPOINTERstatic StringSTRONGLY_LINKEDstatic StringSTRUCT_MEMBERstatic StringSTRUCT_PACKEDstatic StringSTRUCT_RETstatic StringVARIADICstatic StringVECTORISEDstatic StringWEAKLY_LINKED -
Constructor Summary
Constructors Constructor Description Annotations() -
Method Summary
Modifier and Type Method Description static voidaddRuntimeVisibleAnnotation(soot.tagkit.Host host, String annotationType)static voidaddRuntimeVisibleAnnotation(soot.tagkit.Host host, soot.tagkit.AnnotationTag annoTag)static voidaddRuntimeVisibleParameterAnnotation(soot.SootMethod method, int paramIndex, String annotationType)static voidaddRuntimeVisibleParameterAnnotation(soot.SootMethod method, int paramIndex, soot.tagkit.AnnotationTag annoTag)static voidcopyAnnotations(soot.SootMethod fromMethod, soot.SootMethod toMethod, Annotations.Visibility visibility)static voidcopyParameterAnnotations(soot.SootMethod fromMethod, soot.SootMethod toMethod, int start, int end, int shift, Annotations.Visibility visibility)static soot.tagkit.AnnotationTaggetAnnotation(soot.tagkit.Host host, String annotationType)static List<soot.tagkit.AnnotationTag>getAnnotations(soot.tagkit.Host host, Annotations.Visibility visibility)static soot.tagkit.AnnotationTaggetArrayAnnotation(soot.SootMethod method)static soot.tagkit.AnnotationTaggetArrayAnnotation(soot.SootMethod method, int paramIndex)static soot.tagkit.AnnotationTaggetBaseTypeAnnotation(soot.SootMethod method)static soot.tagkit.AnnotationElemgetElemByName(soot.tagkit.AnnotationTag annotation, String name)static soot.tagkit.AnnotationTaggetMarshalerAnnotation(soot.SootMethod method)static soot.tagkit.AnnotationTaggetMarshalerAnnotation(soot.SootMethod method, int paramIndex)static List<soot.tagkit.AnnotationTag>getMarshalerAnnotations(soot.SootClass clazz)static soot.tagkit.AnnotationTaggetMarshalsArrayAnnotation(soot.SootMethod method)static soot.tagkit.AnnotationTaggetMarshalsPointerAnnotation(soot.SootMethod method)static soot.tagkit.AnnotationTaggetMarshalsValueAnnotation(soot.SootMethod method)static soot.tagkit.VisibilityAnnotationTaggetOrCreateRuntimeVisibilityAnnotationTag(soot.SootMethod method, int paramIndex)static soot.tagkit.VisibilityAnnotationTaggetOrCreateRuntimeVisibilityAnnotationTag(soot.tagkit.Host host)static soot.tagkit.AnnotationTaggetParameterAnnotation(soot.SootMethod method, int paramIndex, String annotationType)static List<soot.tagkit.AnnotationTag>getParameterAnnotations(soot.SootMethod method, int paramIndex, Annotations.Visibility visibility)static List<soot.tagkit.AnnotationTag>[]getParameterAnnotations(soot.SootMethod method, Annotations.Visibility visibility)static soot.tagkit.AnnotationTaggetStructMemberAnnotation(soot.SootMethod method)static soot.tagkit.AnnotationTaggetStructPackedAnnotation(soot.SootClass clazz)static soot.tagkit.AnnotationTaggetStructVectorisedAnnotation(soot.SootClass clazz)static intgetVariadicParameterIndex(soot.SootMethod method)static booleanhasAfterBridgeCallAnnotation(soot.SootMethod method)static booleanhasAfterCallbackCallAnnotation(soot.SootMethod method)static booleanhasAnnotation(soot.tagkit.Host host, String annotationType)static booleanhasArrayAnnotation(soot.SootMethod method)static booleanhasArrayAnnotation(soot.SootMethod method, int paramIndex)static booleanhasBridgeAnnotation(soot.SootMethod method)static booleanhasByRefAnnotation(soot.SootClass clazz)static booleanhasByRefAnnotation(soot.SootMethod method)static booleanhasByRefAnnotation(soot.SootMethod method, int paramIndex)static booleanhasByValAnnotation(soot.SootClass clazz)static booleanhasByValAnnotation(soot.SootMethod method)static booleanhasByValAnnotation(soot.SootMethod method, int paramIndex)static booleanhasCallbackAnnotation(soot.SootMethod method)static booleanhasGlobalValueAnnotation(soot.SootMethod method)static booleanhasMachineSizedFloatAnnotation(soot.SootMethod method)static booleanhasMachineSizedFloatAnnotation(soot.SootMethod method, int paramIndex)static booleanhasMachineSizedSIntAnnotation(soot.SootMethod method)static booleanhasMachineSizedSIntAnnotation(soot.SootMethod method, int paramIndex)static booleanhasMachineSizedUIntAnnotation(soot.SootMethod method)static booleanhasMachineSizedUIntAnnotation(soot.SootMethod method, int paramIndex)static booleanhasParameterAnnotation(soot.SootMethod method, int paramIndex, String annotationType)static booleanhasPointerAnnotation(soot.SootMethod method)static booleanhasPointerAnnotation(soot.SootMethod method, int paramIndex)static booleanhasStronglyLinkedAnnotation(soot.tagkit.Host host)static booleanhasStructMemberAnnotation(soot.SootMethod method)static booleanhasStructRetAnnotation(soot.SootMethod method, int paramIndex)static booleanhasVariadicAnnotation(soot.SootMethod method)static booleanhasWeaklyLinkedAnnotation(soot.tagkit.Host host)static booleanreadBooleanElem(soot.tagkit.AnnotationTag annotation, String name, boolean def)static intreadIntElem(soot.tagkit.AnnotationTag annotation, String name, int def)static StringreadStringElem(soot.tagkit.AnnotationTag annotation, String name, String def)static voidremoveAnnotation(soot.tagkit.Host host, String annotationType)static voidremoveParameterAnnotation(soot.SootMethod method, int paramIndex, String annotationType)
-
Field Details
-
BRIDGE
- See Also:
- Constant Field Values
-
CALLBACK
- See Also:
- Constant Field Values
-
STRUCT_MEMBER
- See Also:
- Constant Field Values
-
VECTORISED
- See Also:
- Constant Field Values
-
STRUCT_PACKED
- See Also:
- Constant Field Values
-
GLOBAL_VALUE
- See Also:
- Constant Field Values
-
ARRAY
- See Also:
- Constant Field Values
-
BASE_TYPE
- See Also:
- Constant Field Values
-
STRUCT_RET
- See Also:
- Constant Field Values
-
POINTER
- See Also:
- Constant Field Values
-
MACHINE_SIZED_FLOAT
- See Also:
- Constant Field Values
-
MACHINE_SIZED_S_INT
- See Also:
- Constant Field Values
-
MACHINE_SIZED_U_INT
- See Also:
- Constant Field Values
-
MARSHALER
- See Also:
- Constant Field Values
-
MARSHALERS
- See Also:
- Constant Field Values
-
MARSHALS_POINTER
- See Also:
- Constant Field Values
-
MARSHALS_VALUE
- See Also:
- Constant Field Values
-
MARSHALS_ARRAY
- See Also:
- Constant Field Values
-
AFTER_BRIDGE_CALL
- See Also:
- Constant Field Values
-
AFTER_CALLBACK_CALL
- See Also:
- Constant Field Values
-
BY_VAL
- See Also:
- Constant Field Values
-
BY_REF
- See Also:
- Constant Field Values
-
VARIADIC
- See Also:
- Constant Field Values
-
WEAKLY_LINKED
- See Also:
- Constant Field Values
-
STRONGLY_LINKED
- See Also:
- Constant Field Values
-
-
Constructor Details
-
Annotations
public Annotations()
-
-
Method Details
-
hasAnnotation
-
hasParameterAnnotation
public static boolean hasParameterAnnotation(soot.SootMethod method, int paramIndex, String annotationType) -
getAnnotations
public static List<soot.tagkit.AnnotationTag> getAnnotations(soot.tagkit.Host host, Annotations.Visibility visibility) -
getAnnotation
public static soot.tagkit.AnnotationTag getAnnotation(soot.tagkit.Host host, String annotationType) -
getParameterAnnotations
public static List<soot.tagkit.AnnotationTag> getParameterAnnotations(soot.SootMethod method, int paramIndex, Annotations.Visibility visibility) -
getParameterAnnotations
public static List<soot.tagkit.AnnotationTag>[] getParameterAnnotations(soot.SootMethod method, Annotations.Visibility visibility) -
getParameterAnnotation
public static soot.tagkit.AnnotationTag getParameterAnnotation(soot.SootMethod method, int paramIndex, String annotationType) -
hasBridgeAnnotation
public static boolean hasBridgeAnnotation(soot.SootMethod method) -
hasCallbackAnnotation
public static boolean hasCallbackAnnotation(soot.SootMethod method) -
hasStructMemberAnnotation
public static boolean hasStructMemberAnnotation(soot.SootMethod method) -
hasGlobalValueAnnotation
public static boolean hasGlobalValueAnnotation(soot.SootMethod method) -
hasArrayAnnotation
public static boolean hasArrayAnnotation(soot.SootMethod method) -
hasArrayAnnotation
public static boolean hasArrayAnnotation(soot.SootMethod method, int paramIndex) -
hasPointerAnnotation
public static boolean hasPointerAnnotation(soot.SootMethod method) -
hasMachineSizedFloatAnnotation
public static boolean hasMachineSizedFloatAnnotation(soot.SootMethod method) -
hasMachineSizedSIntAnnotation
public static boolean hasMachineSizedSIntAnnotation(soot.SootMethod method) -
hasMachineSizedUIntAnnotation
public static boolean hasMachineSizedUIntAnnotation(soot.SootMethod method) -
hasByValAnnotation
public static boolean hasByValAnnotation(soot.SootMethod method) -
hasByRefAnnotation
public static boolean hasByRefAnnotation(soot.SootMethod method) -
hasStructRetAnnotation
public static boolean hasStructRetAnnotation(soot.SootMethod method, int paramIndex) -
hasPointerAnnotation
public static boolean hasPointerAnnotation(soot.SootMethod method, int paramIndex) -
hasMachineSizedFloatAnnotation
public static boolean hasMachineSizedFloatAnnotation(soot.SootMethod method, int paramIndex) -
hasMachineSizedSIntAnnotation
public static boolean hasMachineSizedSIntAnnotation(soot.SootMethod method, int paramIndex) -
hasMachineSizedUIntAnnotation
public static boolean hasMachineSizedUIntAnnotation(soot.SootMethod method, int paramIndex) -
hasByValAnnotation
public static boolean hasByValAnnotation(soot.SootMethod method, int paramIndex) -
hasByRefAnnotation
public static boolean hasByRefAnnotation(soot.SootMethod method, int paramIndex) -
hasVariadicAnnotation
public static boolean hasVariadicAnnotation(soot.SootMethod method) -
hasWeaklyLinkedAnnotation
public static boolean hasWeaklyLinkedAnnotation(soot.tagkit.Host host) -
hasStronglyLinkedAnnotation
public static boolean hasStronglyLinkedAnnotation(soot.tagkit.Host host) -
getVariadicParameterIndex
public static int getVariadicParameterIndex(soot.SootMethod method) -
hasAfterBridgeCallAnnotation
public static boolean hasAfterBridgeCallAnnotation(soot.SootMethod method) -
hasAfterCallbackCallAnnotation
public static boolean hasAfterCallbackCallAnnotation(soot.SootMethod method) -
getMarshalerAnnotation
public static soot.tagkit.AnnotationTag getMarshalerAnnotation(soot.SootMethod method, int paramIndex) -
getMarshalerAnnotation
public static soot.tagkit.AnnotationTag getMarshalerAnnotation(soot.SootMethod method) -
getMarshalerAnnotations
-
getMarshalsPointerAnnotation
public static soot.tagkit.AnnotationTag getMarshalsPointerAnnotation(soot.SootMethod method) -
getMarshalsValueAnnotation
public static soot.tagkit.AnnotationTag getMarshalsValueAnnotation(soot.SootMethod method) -
getMarshalsArrayAnnotation
public static soot.tagkit.AnnotationTag getMarshalsArrayAnnotation(soot.SootMethod method) -
getStructMemberAnnotation
public static soot.tagkit.AnnotationTag getStructMemberAnnotation(soot.SootMethod method) -
getStructVectorisedAnnotation
public static soot.tagkit.AnnotationTag getStructVectorisedAnnotation(soot.SootClass clazz) -
getStructPackedAnnotation
public static soot.tagkit.AnnotationTag getStructPackedAnnotation(soot.SootClass clazz) -
getArrayAnnotation
public static soot.tagkit.AnnotationTag getArrayAnnotation(soot.SootMethod method) -
getArrayAnnotation
public static soot.tagkit.AnnotationTag getArrayAnnotation(soot.SootMethod method, int paramIndex) -
getBaseTypeAnnotation
public static soot.tagkit.AnnotationTag getBaseTypeAnnotation(soot.SootMethod method) -
hasByValAnnotation
public static boolean hasByValAnnotation(soot.SootClass clazz) -
hasByRefAnnotation
public static boolean hasByRefAnnotation(soot.SootClass clazz) -
getElemByName
public static soot.tagkit.AnnotationElem getElemByName(soot.tagkit.AnnotationTag annotation, String name) -
readStringElem
-
readBooleanElem
public static boolean readBooleanElem(soot.tagkit.AnnotationTag annotation, String name, boolean def) -
readIntElem
-
getOrCreateRuntimeVisibilityAnnotationTag
public static soot.tagkit.VisibilityAnnotationTag getOrCreateRuntimeVisibilityAnnotationTag(soot.tagkit.Host host) -
addRuntimeVisibleAnnotation
-
addRuntimeVisibleAnnotation
public static void addRuntimeVisibleAnnotation(soot.tagkit.Host host, soot.tagkit.AnnotationTag annoTag) -
removeAnnotation
-
removeParameterAnnotation
public static void removeParameterAnnotation(soot.SootMethod method, int paramIndex, String annotationType) -
copyAnnotations
public static void copyAnnotations(soot.SootMethod fromMethod, soot.SootMethod toMethod, Annotations.Visibility visibility) -
copyParameterAnnotations
public static void copyParameterAnnotations(soot.SootMethod fromMethod, soot.SootMethod toMethod, int start, int end, int shift, Annotations.Visibility visibility) -
getOrCreateRuntimeVisibilityAnnotationTag
public static soot.tagkit.VisibilityAnnotationTag getOrCreateRuntimeVisibilityAnnotationTag(soot.SootMethod method, int paramIndex) -
addRuntimeVisibleParameterAnnotation
public static void addRuntimeVisibleParameterAnnotation(soot.SootMethod method, int paramIndex, String annotationType) -
addRuntimeVisibleParameterAnnotation
public static void addRuntimeVisibleParameterAnnotation(soot.SootMethod method, int paramIndex, soot.tagkit.AnnotationTag annoTag)
-