Top Description Methods
org.eclipse.xtend.lib.macro.declaration

public Interface AnnotationReference

extends Element
Annotations
@Beta
Imports
org.eclipse.xtend.lib.macro.expression.Expression, org.eclipse.xtend.lib.macro.services.Tracability, com.google.common.annotations.Beta

Represents an annotation.
Author
Sven Efftinge

Method Summary

Modifier and TypeMethod and Description
public AnnotationReference[]

Returns:

the value set on this annotation reference or the default value of the annotation type element.
getAnnotationArrayValue
(String name)

Returns the value for the given property.

public AnnotationTypeDeclaration

Returns:

the annotation type
getAnnotationTypeDeclaration
()

public AnnotationReference

Returns:

the value set on this annotation reference or the default value of the annotation type element.
getAnnotationValue
(String name)

Returns the value for the given property.

public boolean[]

Returns:

the value set on this annotation reference or the default value of the annotation type element.
getBooleanArrayValue
(String name)

Returns the value for the given property.

public boolean

Returns:

the value set on this annotation reference or the default value of the annotation type element.
getBooleanValue
(String name)

Returns the value for the given property.

public byte[]

Returns:

the value set on this annotation reference or the default value of the annotation type element.
getByteArrayValue
(String name)

Returns the value for the given property.

public byte

Returns:

the value set on this annotation reference or the default value of the annotation type element.
getByteValue
(String name)

Returns the value for the given property.

public char[]

Returns:

the value set on this annotation reference or the default value of the annotation type element.
getCharArrayValue
(String name)

Returns the value for the given property.

public char

Returns:

the value set on this annotation reference or the default value of the annotation type element.
getCharValue
(String name)

Returns the value for the given property.

public TypeReference[]

Returns:

the value set on this annotation reference or the default value of the annotation type element.
getClassArrayValue
(String name)

Returns the value for the given property.

public TypeReference

Returns:

the value set on this annotation reference or the default value of the annotation type element.
getClassValue
(String name)

Returns the value for the given property.

public double[]

Returns:

the value set on this annotation reference or the default value of the annotation type element.
getDoubleArrayValue
(String name)

Returns the value for the given property.

public double

Returns:

the value set on this annotation reference or the default value of the annotation type element.
getDoubleValue
(String name)

Returns the value for the given property.

public EnumerationValueDeclaration[]

Returns:

the value set on this annotation reference or the default value of the annotation type element.
getEnumArrayValue
(String name)

Returns the value for the given property.

public EnumerationValueDeclaration

Returns:

the value set on this annotation reference or the default value of the annotation type element.
getEnumValue
(String name)

Returns the value for the given property.

public Expression

Returns:

the expression
getExpression
(String name)

Returns the expression for the given annotation property.

public float[]

Returns:

the value set on this annotation reference or the default value of the annotation type element.
getFloatArrayValue
(String name)

Returns the value for the given property.

public float

Returns:

the value set on this annotation reference or the default value of the annotation type element.
getFloatValue
(String name)

Returns the value for the given property.

public int[]

Returns:

the value set on this annotation reference or the default value of the annotation type element.
getIntArrayValue
(String name)

Returns the value for the given property.

public int

Returns:

the value set on this annotation reference or the default value of the annotation type element.
getIntValue
(String name)

Returns the value for the given property.

public long[]

Returns:

the value set on this annotation reference or the default value of the annotation type element.
getLongArrayValue
(String name)

Returns the value for the given property.

public long

Returns:

the value set on this annotation reference or the default value of the annotation type element.
getLongValue
(String name)

Returns the value for the given property.

public short[]

Returns:

the value set on this annotation reference or the default value of the annotation type element.
getShortArrayValue
(String name)

Returns the value for the given property.

public short

Returns:

the value set on this annotation reference or the default value of the annotation type element.
getShortValue
(String name)

Returns the value for the given property.

public String[]

Returns:

the value set on this annotation reference or the default value of the annotation type element.
getStringArrayValue
(String name)

Returns the value for the given property.

public String

Returns:

the value set on this annotation reference or the default value of the annotation type element.
getStringValue
(String name)

Returns the value for the given property.

public Object

Returns:

the value set on this annotation reference, the default value of the annotation type element or null.
getValue
(String
the name of the property
property
)

Returns the value for the given property.

Method Detail

getAnnotationArrayValueback to summary
public AnnotationReference[] getAnnotationArrayValue(String name)

Returns the value for the given property. If no value was specified on the reference the default value of the corresponding AnnotationTypeElementDeclaration will be returned.

Returns:AnnotationReference[]

the value set on this annotation reference or the default value of the annotation type element.

getAnnotationTypeDeclarationback to summary
public AnnotationTypeDeclaration getAnnotationTypeDeclaration()
Returns:AnnotationTypeDeclaration

the annotation type

getAnnotationValueback to summary
public AnnotationReference getAnnotationValue(String name)

Returns the value for the given property. If no value was specified on the reference the default value of the corresponding AnnotationTypeElementDeclaration will be returned.

Returns:AnnotationReference

the value set on this annotation reference or the default value of the annotation type element.

getBooleanArrayValueback to summary
public boolean[] getBooleanArrayValue(String name)

Returns the value for the given property. If no value was specified on the reference the default value of the corresponding AnnotationTypeElementDeclaration will be returned.

Returns:boolean[]

the value set on this annotation reference or the default value of the annotation type element.

getBooleanValueback to summary
public boolean getBooleanValue(String name)

Returns the value for the given property. If no value was specified on the reference the default value of the corresponding AnnotationTypeElementDeclaration will be returned.

Returns:boolean

the value set on this annotation reference or the default value of the annotation type element.

getByteArrayValueback to summary
public byte[] getByteArrayValue(String name)

Returns the value for the given property. If no value was specified on the reference the default value of the corresponding AnnotationTypeElementDeclaration will be returned.

Returns:byte[]

the value set on this annotation reference or the default value of the annotation type element.

getByteValueback to summary
public byte getByteValue(String name)

Returns the value for the given property. If no value was specified on the reference the default value of the corresponding AnnotationTypeElementDeclaration will be returned.

Returns:byte

the value set on this annotation reference or the default value of the annotation type element.

getCharArrayValueback to summary
public char[] getCharArrayValue(String name)

Returns the value for the given property. If no value was specified on the reference the default value of the corresponding AnnotationTypeElementDeclaration will be returned.

Returns:char[]

the value set on this annotation reference or the default value of the annotation type element.

getCharValueback to summary
public char getCharValue(String name)

Returns the value for the given property. If no value was specified on the reference the default value of the corresponding AnnotationTypeElementDeclaration will be returned.

Returns:char

the value set on this annotation reference or the default value of the annotation type element.

getClassArrayValueback to summary
public TypeReference[] getClassArrayValue(String name)

Returns the value for the given property. If no value was specified on the reference the default value of the corresponding AnnotationTypeElementDeclaration will be returned.

Returns:TypeReference[]

the value set on this annotation reference or the default value of the annotation type element.

getClassValueback to summary
public TypeReference getClassValue(String name)

Returns the value for the given property. If no value was specified on the reference the default value of the corresponding AnnotationTypeElementDeclaration will be returned.

Returns:TypeReference

the value set on this annotation reference or the default value of the annotation type element.

getDoubleArrayValueback to summary
public double[] getDoubleArrayValue(String name)

Returns the value for the given property. If no value was specified on the reference the default value of the corresponding AnnotationTypeElementDeclaration will be returned.

Returns:double[]

the value set on this annotation reference or the default value of the annotation type element.

getDoubleValueback to summary
public double getDoubleValue(String name)

Returns the value for the given property. If no value was specified on the reference the default value of the corresponding AnnotationTypeElementDeclaration will be returned.

Returns:double

the value set on this annotation reference or the default value of the annotation type element.

getEnumArrayValueback to summary
public EnumerationValueDeclaration[] getEnumArrayValue(String name)

Returns the value for the given property. If no value was specified on the reference the default value of the corresponding AnnotationTypeElementDeclaration will be returned.

Returns:EnumerationValueDeclaration[]

the value set on this annotation reference or the default value of the annotation type element.

getEnumValueback to summary
public EnumerationValueDeclaration getEnumValue(String name)

Returns the value for the given property. If no value was specified on the reference the default value of the corresponding AnnotationTypeElementDeclaration will be returned.

Returns:EnumerationValueDeclaration

the value set on this annotation reference or the default value of the annotation type element.

getExpressionback to summary
public Expression getExpression(String name)

Returns the expression for the given annotation property. Returns null if no expression is set, or this annotation reference is an external element (i.e. Tracability#isExternal(Element) returns true).

Returns:Expression

the expression

getFloatArrayValueback to summary
public float[] getFloatArrayValue(String name)

Returns the value for the given property. If no value was specified on the reference the default value of the corresponding AnnotationTypeElementDeclaration will be returned.

Returns:float[]

the value set on this annotation reference or the default value of the annotation type element.

getFloatValueback to summary
public float getFloatValue(String name)

Returns the value for the given property. If no value was specified on the reference the default value of the corresponding AnnotationTypeElementDeclaration will be returned.

Returns:float

the value set on this annotation reference or the default value of the annotation type element.

getIntArrayValueback to summary
public int[] getIntArrayValue(String name)

Returns the value for the given property. If no value was specified on the reference the default value of the corresponding AnnotationTypeElementDeclaration will be returned.

Returns:int[]

the value set on this annotation reference or the default value of the annotation type element.

getIntValueback to summary
public int getIntValue(String name)

Returns the value for the given property. If no value was specified on the reference the default value of the corresponding AnnotationTypeElementDeclaration will be returned.

Returns:int

the value set on this annotation reference or the default value of the annotation type element.

getLongArrayValueback to summary
public long[] getLongArrayValue(String name)

Returns the value for the given property. If no value was specified on the reference the default value of the corresponding AnnotationTypeElementDeclaration will be returned.

Returns:long[]

the value set on this annotation reference or the default value of the annotation type element.

getLongValueback to summary
public long getLongValue(String name)

Returns the value for the given property. If no value was specified on the reference the default value of the corresponding AnnotationTypeElementDeclaration will be returned.

Returns:long

the value set on this annotation reference or the default value of the annotation type element.

getShortArrayValueback to summary
public short[] getShortArrayValue(String name)

Returns the value for the given property. If no value was specified on the reference the default value of the corresponding AnnotationTypeElementDeclaration will be returned.

Returns:short[]

the value set on this annotation reference or the default value of the annotation type element.

getShortValueback to summary
public short getShortValue(String name)

Returns the value for the given property. If no value was specified on the reference the default value of the corresponding AnnotationTypeElementDeclaration will be returned.

Returns:short

the value set on this annotation reference or the default value of the annotation type element.

getStringArrayValueback to summary
public String[] getStringArrayValue(String name)

Returns the value for the given property. If no value was specified on the reference the default value of the corresponding AnnotationTypeElementDeclaration will be returned.

Returns:String[]

the value set on this annotation reference or the default value of the annotation type element.

getStringValueback to summary
public String getStringValue(String name)

Returns the value for the given property. If no value was specified on the reference the default value of the corresponding AnnotationTypeElementDeclaration will be returned.

Returns:String

the value set on this annotation reference or the default value of the annotation type element.

getValueback to summary
public Object getValue(String property)

Returns the value for the given property. If no value was specified on the reference the default value of the corresponding AnnotationTypeElementDeclaration will 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
  • null if no value is set and no default value on the original annotation type element is declared.
Parameters
property:String

the name of the property

Returns:Object

the value set on this annotation reference, the default value of the annotation type element or null.