Module org.eclipse.xtend.lib.macro
Interface AnnotationReference
- All Superinterfaces:
Element
Represents an annotation.
- Author:
- Sven Efftinge
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value for the given property.getAnnotationValue(String name) Returns the value for the given property.boolean[]getBooleanArrayValue(String name) Returns the value for the given property.booleangetBooleanValue(String name) Returns the value for the given property.byte[]getByteArrayValue(String name) Returns the value for the given property.bytegetByteValue(String name) Returns the value for the given property.char[]getCharArrayValue(String name) Returns the value for the given property.chargetCharValue(String name) Returns the value for the given property.getClassArrayValue(String name) Returns the value for the given property.getClassValue(String name) Returns the value for the given property.double[]getDoubleArrayValue(String name) Returns the value for the given property.doublegetDoubleValue(String name) Returns the value for the given property.getEnumArrayValue(String name) Returns the value for the given property.getEnumValue(String name) Returns the value for the given property.getExpression(String name) Returns the expression for the given annotation property.float[]getFloatArrayValue(String name) Returns the value for the given property.floatgetFloatValue(String name) Returns the value for the given property.int[]getIntArrayValue(String name) Returns the value for the given property.intgetIntValue(String name) Returns the value for the given property.long[]getLongArrayValue(String name) Returns the value for the given property.longgetLongValue(String name) Returns the value for the given property.short[]getShortArrayValue(String name) Returns the value for the given property.shortgetShortValue(String name) Returns the value for the given property.String[]getStringArrayValue(String name) Returns the value for the given property.getStringValue(String name) Returns the value for the given property.Returns the value for the given property.
-
Method Details
-
getAnnotationTypeDeclaration
AnnotationTypeDeclaration getAnnotationTypeDeclaration()- Returns:
- the annotation type
-
getValue
Returns the value for the given property. If no value was specified on the reference the default value of the correspondingAnnotationTypeElementDeclarationwill be returned. Depending of the respective annotation type element, the following values are possibly returned:- Short or short[]
- Integer or int[]
- Long or long[]
- Float or float[]
- Double or double[]
- Boolean or boolean[]
- TypeReference or TypeReference[] - for elements of type Class<?>
- AnnotationReference or AnnotationReference[] - for elements of an annotation type
- EnumerationValueDeclaration or EnumerationValueDeclaration[] - for elements of an enum type
-
nullif no value is set and no default value on the original annotation type element is declared.
- Parameters:
property- the name of the property- Returns:
- the value set on this annotation reference, the default value of the annotation type element or
null.
-
getIntValue
Returns the value for the given property. If no value was specified on the reference the default value of the correspondingAnnotationTypeElementDeclarationwill be returned.- Parameters:
name-- Returns:
- the value set on this annotation reference or the default value of the annotation type element.
-
getIntArrayValue
Returns the value for the given property. If no value was specified on the reference the default value of the correspondingAnnotationTypeElementDeclarationwill be returned.- Parameters:
name-- Returns:
- the value set on this annotation reference or the default value of the annotation type element.
-
getLongValue
Returns the value for the given property. If no value was specified on the reference the default value of the correspondingAnnotationTypeElementDeclarationwill be returned.- Parameters:
name-- Returns:
- the value set on this annotation reference or the default value of the annotation type element.
-
getLongArrayValue
Returns the value for the given property. If no value was specified on the reference the default value of the correspondingAnnotationTypeElementDeclarationwill be returned.- Parameters:
name-- Returns:
- the value set on this annotation reference or the default value of the annotation type element.
-
getShortValue
Returns the value for the given property. If no value was specified on the reference the default value of the correspondingAnnotationTypeElementDeclarationwill be returned.- Parameters:
name-- Returns:
- the value set on this annotation reference or the default value of the annotation type element.
-
getShortArrayValue
Returns the value for the given property. If no value was specified on the reference the default value of the correspondingAnnotationTypeElementDeclarationwill be returned.- Parameters:
name-- Returns:
- the value set on this annotation reference or the default value of the annotation type element.
-
getFloatValue
Returns the value for the given property. If no value was specified on the reference the default value of the correspondingAnnotationTypeElementDeclarationwill be returned.- Parameters:
name-- Returns:
- the value set on this annotation reference or the default value of the annotation type element.
-
getFloatArrayValue
Returns the value for the given property. If no value was specified on the reference the default value of the correspondingAnnotationTypeElementDeclarationwill be returned.- Parameters:
name-- Returns:
- the value set on this annotation reference or the default value of the annotation type element.
-
getDoubleValue
Returns the value for the given property. If no value was specified on the reference the default value of the correspondingAnnotationTypeElementDeclarationwill be returned.- Parameters:
name-- Returns:
- the value set on this annotation reference or the default value of the annotation type element.
-
getDoubleArrayValue
Returns the value for the given property. If no value was specified on the reference the default value of the correspondingAnnotationTypeElementDeclarationwill be returned.- Parameters:
name-- Returns:
- the value set on this annotation reference or the default value of the annotation type element.
-
getByteValue
Returns the value for the given property. If no value was specified on the reference the default value of the correspondingAnnotationTypeElementDeclarationwill be returned.- Parameters:
name-- Returns:
- the value set on this annotation reference or the default value of the annotation type element.
-
getByteArrayValue
Returns the value for the given property. If no value was specified on the reference the default value of the correspondingAnnotationTypeElementDeclarationwill be returned.- Parameters:
name-- Returns:
- the value set on this annotation reference or the default value of the annotation type element.
-
getBooleanValue
Returns the value for the given property. If no value was specified on the reference the default value of the correspondingAnnotationTypeElementDeclarationwill be returned.- Parameters:
name-- Returns:
- the value set on this annotation reference or the default value of the annotation type element.
-
getBooleanArrayValue
Returns the value for the given property. If no value was specified on the reference the default value of the correspondingAnnotationTypeElementDeclarationwill be returned.- Parameters:
name-- Returns:
- the value set on this annotation reference or the default value of the annotation type element.
-
getCharValue
Returns the value for the given property. If no value was specified on the reference the default value of the correspondingAnnotationTypeElementDeclarationwill be returned.- Parameters:
name-- Returns:
- the value set on this annotation reference or the default value of the annotation type element.
-
getCharArrayValue
Returns the value for the given property. If no value was specified on the reference the default value of the correspondingAnnotationTypeElementDeclarationwill be returned.- Parameters:
name-- Returns:
- the value set on this annotation reference or the default value of the annotation type element.
-
getStringValue
Returns the value for the given property. If no value was specified on the reference the default value of the correspondingAnnotationTypeElementDeclarationwill be returned.- Parameters:
name-- Returns:
- the value set on this annotation reference or the default value of the annotation type element.
-
getStringArrayValue
Returns the value for the given property. If no value was specified on the reference the default value of the correspondingAnnotationTypeElementDeclarationwill be returned.- Parameters:
name-- Returns:
- the value set on this annotation reference or the default value of the annotation type element.
-
getClassValue
Returns the value for the given property. If no value was specified on the reference the default value of the correspondingAnnotationTypeElementDeclarationwill be returned.- Parameters:
name-- Returns:
- the value set on this annotation reference or the default value of the annotation type element.
-
getClassArrayValue
Returns the value for the given property. If no value was specified on the reference the default value of the correspondingAnnotationTypeElementDeclarationwill be returned.- Parameters:
name-- Returns:
- the value set on this annotation reference or the default value of the annotation type element.
-
getEnumValue
Returns the value for the given property. If no value was specified on the reference the default value of the correspondingAnnotationTypeElementDeclarationwill be returned.- Parameters:
name-- Returns:
- the value set on this annotation reference or the default value of the annotation type element.
-
getEnumArrayValue
Returns the value for the given property. If no value was specified on the reference the default value of the correspondingAnnotationTypeElementDeclarationwill be returned.- Parameters:
name-- Returns:
- the value set on this annotation reference or the default value of the annotation type element.
-
getAnnotationValue
Returns the value for the given property. If no value was specified on the reference the default value of the correspondingAnnotationTypeElementDeclarationwill be returned.- Parameters:
name-- Returns:
- the value set on this annotation reference or the default value of the annotation type element.
-
getAnnotationArrayValue
Returns the value for the given property. If no value was specified on the reference the default value of the correspondingAnnotationTypeElementDeclarationwill be returned.- Parameters:
name-- Returns:
- the value set on this annotation reference or the default value of the annotation type element.
-
getExpression
Returns the expression for the given annotation property. Returnsnullif no expression is set, or this annotation reference is an external element (i.e.Tracability.isExternal(Element)returnstrue).- Parameters:
name-- Returns:
- the expression
-