- All Superinterfaces:
Typed
- All Known Subinterfaces:
AnonymousClassCreator,Assignable,BlockCreator,ClassCreator,Const,Expr,FieldCreator,FieldDesc,FieldVar,GenericTyped,InstanceFieldCreator,InstanceFieldVar,InterfaceCreator,LocalVar,ParamCreator,ParamVar,StaticFieldCreator,StaticFieldVar,SwitchCreator,This,TypeCreator,Var
- All Known Implementing Classes:
TypeParameter,TypeParameter.OfConstructor,TypeParameter.OfMethod,TypeParameter.OfType
public sealed interface SimpleTyped
extends Typed
permits Expr, GenericTyped, BlockCreator, ClassCreator, SwitchCreator, FieldDesc
A typed thing whose type is a simple type.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanReturnstrueif this entity has a primitive type, orfalseif it does not.default booleanisVoid()Returnstrueif this entity hasvoidtype, orfalseotherwise.default intslotSize()Returns the number of slots occupied by this entity.type()Returns the type of this entity (notnull).default TypeKindtypeKind()Returns the type kind of this entity (notnull).
-
Method Details
-
type
ClassDesc type()Returns the type of this entity (notnull). -
typeKind
Returns the type kind of this entity (notnull).- Returns:
- the type kind of this entity (not
null)
-
slotSize
default int slotSize()Returns the number of slots occupied by this entity.- Returns:
- the number of slots occupied by this entity
-
isVoid
default boolean isVoid()Returnstrueif this entity hasvoidtype, orfalseotherwise.- Returns:
trueif this entity hasvoidtype, orfalseotherwise
-
isPrimitive
default boolean isPrimitive()Returnstrueif this entity has a primitive type, orfalseif it does not.- Returns:
trueif this entity has a primitive type, orfalseif it does not
-