| Package | Description |
|---|---|
| org.eclipse.xtend.lib.macro.declaration | |
| org.eclipse.xtend.lib.macro.services |
| Modifier and Type | Method and Description |
|---|---|
TypeReference |
TypeReference.getArrayComponentType() |
TypeReference[] |
AnnotationReference.getClassArrayValue(String name)
Returns the value for the given property.
|
TypeReference |
AnnotationReference.getClassValue(String name)
Returns the value for the given property.
|
TypeReference |
ClassDeclaration.getExtendedClass() |
TypeReference |
TypeReference.getLowerBound() |
TypeReference |
TypeReference.getPrimitiveIfWrapper() |
TypeReference |
ResolvedMethod.getResolvedReturnType() |
TypeReference |
ResolvedParameter.getResolvedType() |
TypeReference |
MethodDeclaration.getReturnType() |
TypeReference |
ParameterDeclaration.getType() |
TypeReference |
FieldDeclaration.getType() |
TypeReference |
AnnotationTypeElementDeclaration.getType() |
TypeReference |
TypeReference.getUpperBound() |
TypeReference |
TypeReference.getWrapperIfPrimitive() |
| Modifier and Type | Method and Description |
|---|---|
List<TypeReference> |
TypeReference.getActualTypeArguments() |
Iterable<? extends TypeReference> |
TypeReference.getDeclaredSuperTypes() |
Iterable<? extends TypeReference> |
ExecutableDeclaration.getExceptions() |
Iterable<? extends TypeReference> |
InterfaceDeclaration.getExtendedInterfaces() |
Iterable<? extends TypeReference> |
ClassDeclaration.getImplementedInterfaces() |
Iterable<? extends TypeReference> |
ResolvedExecutable.getResolvedExceptionTypes() |
Iterable<? extends TypeReference> |
ResolvedTypeParameter.getResolvedUpperBounds() |
Iterable<? extends TypeReference> |
TypeParameterDeclaration.getUpperBounds() |
| Modifier and Type | Method and Description |
|---|---|
MutableParameterDeclaration |
MutableExecutableDeclaration.addParameter(String name,
TypeReference type)
Adds a parameter
|
MutableTypeParameterDeclaration |
MutableTypeParameterDeclarator.addTypeParameter(String name,
TypeReference... upperBounds)
Creates and adds a new
MutableTypeParameterDeclaration to this
declarator. |
ConstructorDeclaration |
TypeDeclaration.findDeclaredConstructor(TypeReference... parameterTypes) |
MutableConstructorDeclaration |
MutableTypeDeclaration.findDeclaredConstructor(TypeReference... parameterTypes) |
MethodDeclaration |
TypeDeclaration.findDeclaredMethod(String name,
TypeReference... parameterTypes) |
MutableMethodDeclaration |
MutableTypeDeclaration.findDeclaredMethod(String name,
TypeReference... parameterTypes) |
boolean |
TypeReference.isAssignableFrom(TypeReference typeReference)
Determines if the specified
TypeReference parameter can be assigned to this
TypeReference. |
void |
MutableExecutableDeclaration.setExceptions(TypeReference... exceptions)
Sets the declared exceptions.
|
void |
MutableClassDeclaration.setExtendedClass(TypeReference superclass) |
void |
MutableMethodDeclaration.setReturnType(TypeReference type) |
void |
MutableFieldDeclaration.setType(TypeReference type)
sets the 'type' of this field declaration
|
String |
CompilationStrategy.CompilationContext.toJavaCode(TypeReference typeref) |
| Modifier and Type | Method and Description |
|---|---|
void |
MutableInterfaceDeclaration.setExtendedInterfaces(Iterable<? extends TypeReference> superinterfaces) |
void |
MutableClassDeclaration.setImplementedInterfaces(Iterable<? extends TypeReference> superinterfaces) |
void |
MutableTypeParameterDeclaration.setUpperBounds(Iterable<? extends TypeReference> upperBounds) |
| Modifier and Type | Method and Description |
|---|---|
TypeReference |
TypeReferenceProvider.getAnyType()
The any type is the type of the null pointer and has no concrete
representation in Java.
|
TypeReference |
TypeReferenceProvider.getList(TypeReference param) |
TypeReference |
TypeReferenceProvider.getObject() |
TypeReference |
TypeReferenceProvider.getPrimitiveBoolean() |
TypeReference |
TypeReferenceProvider.getPrimitiveByte() |
TypeReference |
TypeReferenceProvider.getPrimitiveChar() |
TypeReference |
TypeReferenceProvider.getPrimitiveDouble() |
TypeReference |
TypeReferenceProvider.getPrimitiveFloat() |
TypeReference |
TypeReferenceProvider.getPrimitiveInt() |
TypeReference |
TypeReferenceProvider.getPrimitiveLong() |
TypeReference |
TypeReferenceProvider.getPrimitiveShort() |
TypeReference |
TypeReferenceProvider.getPrimitiveVoid() |
TypeReference |
TypeReferenceProvider.getSet(TypeReference param) |
TypeReference |
TypeReferenceProvider.getString() |
TypeReference |
TypeReferenceProvider.newArrayTypeReference(TypeReference componentType)
Creates a new array type reference using the given component type.
|
TypeReference |
TypeReferenceProvider.newSelfTypeReference(Type typeDeclaration)
Returns a new self type reference for the given typeDeclaration, e.g. if you have a class like
class Foo<T> {}
And you want to add a method that returns the instance itself, you would use the self type as the method's return type.
|
TypeReference |
TypeReferenceProvider.newTypeReference(Class<?> clazz,
TypeReference... typeArguments)
Creates a new type reference for the given
Class and the type arguments. |
TypeReference |
TypeReferenceProvider.newTypeReference(String typeName,
TypeReference... typeArguments)
Creates a new type reference for the given name and the given type arguments.
|
TypeReference |
TypeReferenceProvider.newTypeReference(Type typeDeclaration,
TypeReference... typeArguments)
Creates a new type reference for the given typeDeclaration and the type arguments.
|
TypeReference |
TypeReferenceProvider.newWildcardTypeReference() |
TypeReference |
TypeReferenceProvider.newWildcardTypeReference(TypeReference upperBound) |
TypeReference |
TypeReferenceProvider.newWildcardTypeReferenceWithLowerBound(TypeReference lowerBound) |
| Modifier and Type | Method and Description |
|---|---|
TypeReference |
TypeReferenceProvider.getList(TypeReference param) |
TypeReference |
TypeReferenceProvider.getSet(TypeReference param) |
TypeReference |
TypeReferenceProvider.newArrayTypeReference(TypeReference componentType)
Creates a new array type reference using the given component type.
|
TypeReference |
TypeReferenceProvider.newTypeReference(Class<?> clazz,
TypeReference... typeArguments)
Creates a new type reference for the given
Class and the type arguments. |
TypeReference |
TypeReferenceProvider.newTypeReference(String typeName,
TypeReference... typeArguments)
Creates a new type reference for the given name and the given type arguments.
|
TypeReference |
TypeReferenceProvider.newTypeReference(Type typeDeclaration,
TypeReference... typeArguments)
Creates a new type reference for the given typeDeclaration and the type arguments.
|
TypeReference |
TypeReferenceProvider.newWildcardTypeReference(TypeReference upperBound) |
TypeReference |
TypeReferenceProvider.newWildcardTypeReferenceWithLowerBound(TypeReference lowerBound) |
void |
AnnotationReferenceBuildContext.setClassValue(String name,
TypeReference... value)
Sets the given value for the given annotation element name.
|
Copyright © 2015. All Rights Reserved.