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

public Interface Type

extends NamedElement
Known Direct Subinterfaces
org.eclipse.xtend.lib.macro.declaration.TypeDeclaration, org.eclipse.xtend.lib.macro.declaration.TypeParameterDeclaration, org.eclipse.xtend.lib.macro.declaration.VoidType, org.eclipse.xtend.lib.macro.declaration.PrimitiveType
Annotations
@Beta
Imports
com.google.common.annotations.Beta

Author
Sven Efftinge

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the qualified name of this type declaration.
getQualifiedName
()

Returns the qualified name of this type declaration.

public boolean

Returns:

the boolean value indicating whether objects of the type cls can be assigned to objects of this type. The method returns false if the given parameter is null.
isAssignableFrom
(Type
the Type object to be checked
otherType
)

Determines if the type represented by this Type object is either the same as, or is a supertype of, the type represented by the specified Type parameter.

Inherited from org.eclipse.xtend.lib.macro.declaration.NamedElement:
getCompilationUnitgetSimpleName

Method Detail

getQualifiedNameback to summary
public String getQualifiedName()

Returns the qualified name of this type declaration. Nested types use the '.' char as the inner class delimiter.

Returns:String

the qualified name of this type declaration.

isAssignableFromback to summary
public boolean isAssignableFrom(Type otherType)

Determines if the type represented by this Type object is either the same as, or is a supertype of, the type represented by the specified Type parameter. It returns true if so; otherwise it returns false. If this Type object represents a primitive type, this method returns true if the specified Type parameter is exactly this Type object; otherwise it returns false.

Parameters
otherType:Type

the Type object to be checked

Returns:boolean

the boolean value indicating whether objects of the type cls can be assigned to objects of this type. The method returns false if the given parameter is null.