Interface Type
-
- 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
- Noimplement:
- This interface is not intended to be implemented by clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetQualifiedName()Returns the qualified name of this type declaration.booleanisAssignableFrom(Type otherType)Determines if the type represented by thisTypeobject is either the same as, or is a supertype of, the type represented by the specifiedTypeparameter.-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.NamedElement
getCompilationUnit, getSimpleName
-
-
-
-
Method Detail
-
getQualifiedName
java.lang.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 thisTypeobject is either the same as, or is a supertype of, the type represented by the specifiedTypeparameter. It returnstrueif so; otherwise it returnsfalse. If thisTypeobject represents a primitive type, this method returnstrueif the specifiedTypeparameter is exactly thisTypeobject; otherwise it returnsfalse.- Parameters:
otherType- theTypeobject to be checked- Returns:
- the
booleanvalue indicating whether objects of the typeclscan be assigned to objects of this type. The method returns false if the given parameter isnull.
-
-