Package org.jboss.forge.roaster.model
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 Summary
Modifier and TypeMethodDescriptionJavaType<?>getNestedType(String name) Get theJavaTypewith the given name and return it, otherwise, return null.booleanhasNestedType(Class<?> type) Return whether or not thisTypeHolderdeclares the givenClassinstance.booleanhasNestedType(String name) Return whether or not thisTypeHolderdeclares a type with the given name.booleanhasNestedType(JavaType<?> type) Return whether or not thisTypeHolderdeclares the givenJavaTypeinstance.
-
Method Details
-
getNestedTypes
-
hasNestedType
Return whether or not thisTypeHolderdeclares a type with the given name. -
hasNestedType
Return whether or not thisTypeHolderdeclares the givenJavaTypeinstance. -
hasNestedType
Return whether or not thisTypeHolderdeclares the givenClassinstance. -
getNestedType
Get theJavaTypewith the given name and return it, otherwise, return null.
-