Interface TypeHolder<O extends JavaType<O>>

All Known Subinterfaces:
EnumConstantSource.Body, JavaAnnotation<O>, JavaAnnotationSource, JavaClass<O>, JavaClassSource, JavaEnum<O>, JavaEnumSource, JavaInterface<O>, JavaInterfaceSource, JavaRecord<O>, JavaRecordSource, TypeHolderSource<T>

public interface TypeHolder<O extends JavaType<O>>
Represents a JavaType that may declare types.
Author:
George Gastaldi
  • Method Details

    • getNestedTypes

      List<? extends JavaType<?>> getNestedTypes()
      Return a list containing JavaType instances for each nested Class declaration found within this. Any modification of returned JavaType instances will result in modification of the contents contained by this the parent instance.
    • hasNestedType

      boolean hasNestedType(String name)
      Return whether or not this TypeHolder declares a type with the given name.
    • hasNestedType

      boolean hasNestedType(JavaType<?> type)
      Return whether or not this TypeHolder declares the given JavaType instance.
    • hasNestedType

      boolean hasNestedType(Class<?> type)
      Return whether or not this TypeHolder declares the given Class instance.
    • getNestedType

      JavaType<?> getNestedType(String name)
      Get the JavaType with the given name and return it, otherwise, return null.