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,TypeHolderSource<T>
public interface TypeHolder<O extends JavaType<O>>Represents aJavaTypethat may declare types.- Author:
- George Gastaldi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JavaType<?>getNestedType(java.lang.String name)Get theJavaTypewith the given name and return it, otherwise, return null.java.util.List<? extends JavaType<?>>getNestedTypes()booleanhasNestedType(java.lang.Class<?> type)Return whether or not thisTypeHolderdeclares the givenClassinstance.booleanhasNestedType(java.lang.String name)Return whether or not thisTypeHolderdeclares a type with the given name.booleanhasNestedType(JavaType<?> type)Return whether or not thisTypeHolderdeclares the givenJavaTypeinstance.
-
-
-
Method Detail
-
getNestedTypes
java.util.List<? extends JavaType<?>> getNestedTypes()
-
hasNestedType
boolean hasNestedType(java.lang.String name)
Return whether or not thisTypeHolderdeclares a type with the given name.
-
hasNestedType
boolean hasNestedType(JavaType<?> type)
Return whether or not thisTypeHolderdeclares the givenJavaTypeinstance.
-
hasNestedType
boolean hasNestedType(java.lang.Class<?> type)
Return whether or not thisTypeHolderdeclares the givenClassinstance.
-
-