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

public Interface TypeDeclaration

extends Type, MemberDeclaration
Known Direct Subinterfaces
org.eclipse.xtend.lib.macro.declaration.InterfaceDeclaration, org.eclipse.xtend.lib.macro.declaration.AnnotationTypeDeclaration, org.eclipse.xtend.lib.macro.declaration.ClassDeclaration, org.eclipse.xtend.lib.macro.declaration.EnumerationTypeDeclaration, org.eclipse.xtend.lib.macro.declaration.MutableTypeDeclaration
Annotations
@Beta
Imports
com.google.common.annotations.Beta

Author
Sven Efftinge

Method Summary

Modifier and TypeMethod and Description
public ConstructorDeclaration

Returns:

the declared constructor with the exact same parameter types or null if no such constructors exists.
findDeclaredConstructor
(TypeReference...
- the parameter types of the constructor
parameterTypes
)

public FieldDeclaration

Returns:

the declared field with the given name or null of no such field exists.
findDeclaredField
(String
of the feature
name
)

public MethodDeclaration

Returns:

the declared method with the given name and the specified parameter types or null if no such method exists.
findDeclaredMethod
(String
of the method
name
,
TypeReference...
- the types of the method
parameterTypes
)

public TypeDeclaration

Returns:

the declared, nested type with the given name or null of no such type exists.
findDeclaredType
(String
of the nested type
name
)

public Iterable<? extends AnnotationTypeDeclaration>

Returns:

the annotation types directly declared and contained in this type declaration
getDeclaredAnnotationTypes
()

public Iterable<? extends ClassDeclaration>

Returns:

the classes directly declared and contained in the type declaration
getDeclaredClasses
()

public Iterable<? extends ConstructorDeclaration>

Returns:

the constructors directly declared and contained in the type declaration
getDeclaredConstructors
()

public Iterable<? extends EnumerationTypeDeclaration>

Returns:

the enumeration types directly declared and contained in this type declaration
getDeclaredEnumerationTypes
()

public Iterable<? extends FieldDeclaration>

Returns:

the fields directly declared and contained in the type declaration
getDeclaredFields
()

public Iterable<? extends InterfaceDeclaration>

Returns:

the interfaces directly declared and contained in the type declaration
getDeclaredInterfaces
()

public Iterable<? extends MemberDeclaration>

Returns:

the members directly declared and contained in the type declaration
getDeclaredMembers
()

public Iterable<? extends MethodDeclaration>

Returns:

the methods directly declared and contained in the type declaration
getDeclaredMethods
()

public Iterable<? extends TypeDeclaration>

Returns:

the types directly declared and contained in this type declaration
getDeclaredTypes
()

Inherited from org.eclipse.xtend.lib.macro.declaration.MemberDeclaration:
getDeclaringTypegetDocCommentgetModifiersgetVisibilityisDeprecated
Inherited from org.eclipse.xtend.lib.macro.declaration.Type:
getQualifiedNameisAssignableFrom

Method Detail

findDeclaredConstructorback to summary
public ConstructorDeclaration findDeclaredConstructor(TypeReference... parameterTypes)
Parameters
parameterTypes:TypeReference[]

- the parameter types of the constructor

Returns:ConstructorDeclaration

the declared constructor with the exact same parameter types or null if no such constructors exists.

findDeclaredFieldback to summary
public FieldDeclaration findDeclaredField(String name)
Parameters
name:String

of the feature

Returns:FieldDeclaration

the declared field with the given name or null of no such field exists.

findDeclaredMethodback to summary
public MethodDeclaration findDeclaredMethod(String name, TypeReference... parameterTypes)
Parameters
name:String

of the method

parameterTypes:TypeReference[]

- the types of the method

Returns:MethodDeclaration

the declared method with the given name and the specified parameter types or null if no such method exists.

findDeclaredTypeback to summary
public TypeDeclaration findDeclaredType(String name)
Parameters
name:String

of the nested type

Returns:TypeDeclaration

the declared, nested type with the given name or null of no such type exists.

Since
2.8
getDeclaredAnnotationTypesback to summary
public Iterable<? extends AnnotationTypeDeclaration> getDeclaredAnnotationTypes()
Returns:Iterable<? extends AnnotationTypeDeclaration>

the annotation types directly declared and contained in this type declaration

Since
2.8
getDeclaredClassesback to summary
public Iterable<? extends ClassDeclaration> getDeclaredClasses()
Returns:Iterable<? extends ClassDeclaration>

the classes directly declared and contained in the type declaration

getDeclaredConstructorsback to summary
public Iterable<? extends ConstructorDeclaration> getDeclaredConstructors()
Returns:Iterable<? extends ConstructorDeclaration>

the constructors directly declared and contained in the type declaration

getDeclaredEnumerationTypesback to summary
public Iterable<? extends EnumerationTypeDeclaration> getDeclaredEnumerationTypes()
Returns:Iterable<? extends EnumerationTypeDeclaration>

the enumeration types directly declared and contained in this type declaration

Since
2.8
getDeclaredFieldsback to summary
public Iterable<? extends FieldDeclaration> getDeclaredFields()
Returns:Iterable<? extends FieldDeclaration>

the fields directly declared and contained in the type declaration

getDeclaredInterfacesback to summary
public Iterable<? extends InterfaceDeclaration> getDeclaredInterfaces()
Returns:Iterable<? extends InterfaceDeclaration>

the interfaces directly declared and contained in the type declaration

getDeclaredMembersback to summary
public Iterable<? extends MemberDeclaration> getDeclaredMembers()
Returns:Iterable<? extends MemberDeclaration>

the members directly declared and contained in the type declaration

getDeclaredMethodsback to summary
public Iterable<? extends MethodDeclaration> getDeclaredMethods()
Returns:Iterable<? extends MethodDeclaration>

the methods directly declared and contained in the type declaration

getDeclaredTypesback to summary
public Iterable<? extends TypeDeclaration> getDeclaredTypes()
Returns:Iterable<? extends TypeDeclaration>

the types directly declared and contained in this type declaration

Since
2.8