Package org.openjdk.asmtools.jasm
Enum Class JasmTokens.AnnotationType
- All Implemented Interfaces:
Serializable
,Comparable<JasmTokens.AnnotationType>
,Constable
- Enclosing class:
- JasmTokens
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isAnnotation
(String str) isAnnotation examines the beginning of a string to see if it starts with an annotation characterstatic boolean
isAnnotationToken
(String str) isAnnotationToken examines the beginning of a string to see if it starts with an annotation characters ('@+' = visible annotation, '@-' = invisible).static boolean
isInvisibleAnnotationToken examines the end of an annotation token to determine visibility ('+' = visible annotation, '-' = invisible).static boolean
isTypeAnnotationToken examines the beginning of a string to see if it starts with type annotation characters ('@T+' = visible type annotation, '@T-' = invisible).static JasmTokens.AnnotationType
Returns the enum constant of this class with the specified name.static JasmTokens.AnnotationType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Visible
-
Invisible
-
VisibleType
-
InvisibleType
-
-
Field Details
-
jasmPrefix
-
-
Constructor Details
-
AnnotationType
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
isAnnotationToken
isAnnotationToken examines the beginning of a string to see if it starts with an annotation characters ('@+' = visible annotation, '@-' = invisible).- Parameters:
str
- String to be analyzed- Returns:
- True if the string starts with an annotation char.
-
isTypeAnnotationToken
isTypeAnnotationToken examines the beginning of a string to see if it starts with type annotation characters ('@T+' = visible type annotation, '@T-' = invisible).- Parameters:
str
- String to be analyzed- Returns:
- True if the string starts with an annotation char.
-
isAnnotation
isAnnotation examines the beginning of a string to see if it starts with an annotation character- Parameters:
str
- String to be analyzed- Returns:
- True if the string starts with an annotation char.
-
isInvisibleAnnotationToken
isInvisibleAnnotationToken examines the end of an annotation token to determine visibility ('+' = visible annotation, '-' = invisible).- Parameters:
str
- String to be analyzed- Returns:
- True if the token implies invisible annotation.
-