@Beta public interface Type extends NamedElement
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getQualifiedName()
Returns the qualified name of this type declaration.
|
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. |
getCompilationUnit, getSimpleNamejava.lang.String getQualifiedName()
boolean isAssignableFrom(Type otherType)
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.otherType - the Type object to be checkedboolean 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.