All Superinterfaces:
Element, NamedElement
All Known Subinterfaces:
AnnotationTypeDeclaration, ClassDeclaration, EnumerationTypeDeclaration, InterfaceDeclaration, MutableAnnotationTypeDeclaration, MutableClassDeclaration, MutableEnumerationTypeDeclaration, MutableInterfaceDeclaration, MutableTypeDeclaration, MutableTypeParameterDeclaration, PrimitiveType, TypeDeclaration, TypeParameterDeclaration, VoidType

@Beta public interface Type extends NamedElement
Author:
Sven Efftinge
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the qualified name of this type declaration.
    boolean
    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.

    Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.NamedElement

    getCompilationUnit, getSimpleName
  • Method Details

    • getQualifiedName

      String getQualifiedName()
      Returns the qualified name of this type declaration. Nested types use the '.' char as the inner class delimiter.
      Returns:
      the qualified name of this type declaration.
    • isAssignableFrom

      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 - the Type object to be checked
      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.