Interface SimpleTyped

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 Type
    Method
    Description
    default boolean
    Returns true if this entity has a primitive type, or false if it does not.
    default boolean
    Returns true if this entity has void type, or false otherwise.
    default int
    Returns the number of slots occupied by this entity.
    Returns the type of this entity (not null).
    default TypeKind
    Returns the type kind of this entity (not null).
  • Method Details

    • type

      ClassDesc type()
      Returns the type of this entity (not null).
      Specified by:
      type in interface Typed
      Returns:
      the type of this entity (not null)
    • typeKind

      default TypeKind typeKind()
      Returns the type kind of this entity (not null).
      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()
      Returns true if this entity has void type, or false otherwise.
      Returns:
      true if this entity has void type, or false otherwise
    • isPrimitive

      default boolean isPrimitive()
      Returns true if this entity has a primitive type, or false if it does not.
      Returns:
      true if this entity has a primitive type, or false if it does not