Package io.sundr.model
Class TypeDefFluent<A extends TypeDefFluent<A>>
- java.lang.Object
-
- io.sundr.builder.BaseFluent<A>
-
- io.sundr.model.AttributeSupportFluent<A>
-
- io.sundr.model.ModifierSupportFluent<A>
-
- io.sundr.model.TypeDefFluent<A>
-
- Direct Known Subclasses:
SourceFluent.TypesNested,TypeDefBuilder,TypeDefFluent.InnerTypesNested
public class TypeDefFluent<A extends TypeDefFluent<A>> extends ModifierSupportFluent<A>
Generated
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classTypeDefFluent.AnnotationsNested<N>classTypeDefFluent.ConstructorsNested<N>classTypeDefFluent.ExtendsListNested<N>classTypeDefFluent.ImplementsListNested<N>classTypeDefFluent.InnerTypesNested<N>classTypeDefFluent.MethodsNested<N>classTypeDefFluent.ParametersNested<N>classTypeDefFluent.PropertiesNested<N>-
Nested classes/interfaces inherited from class io.sundr.model.ModifierSupportFluent
ModifierSupportFluent.ModifiersNested<N>
-
-
Constructor Summary
Constructors Constructor Description TypeDefFluent()TypeDefFluent(io.sundr.model.TypeDef instance)
-
Method Summary
-
Methods inherited from class io.sundr.model.ModifierSupportFluent
buildModifiers, copyInstance, editModifiers, editOrNewModifiers, editOrNewModifiersLike, hasModifiers, withModifiers, withNewModifiers, withNewModifiersLike
-
Methods inherited from class io.sundr.model.AttributeSupportFluent
addToAttributes, addToAttributes, copyInstance, getAttributes, hasAttributes, removeFromAttributes, removeFromAttributes, withAttributes
-
-
-
-
Method Detail
-
copyInstance
protected void copyInstance(io.sundr.model.TypeDef instance)
-
getKind
public io.sundr.model.Kind getKind()
-
withKind
public A withKind(io.sundr.model.Kind kind)
-
hasKind
public boolean hasKind()
-
getPackageName
public String getPackageName()
-
hasPackageName
public boolean hasPackageName()
-
getName
public String getName()
-
hasName
public boolean hasName()
-
addAllToComments
public A addAllToComments(Collection<String> items)
-
removeAllFromComments
public A removeAllFromComments(Collection<String> items)
-
getComment
public String getComment(int index)
-
getFirstComment
public String getFirstComment()
-
getLastComment
public String getLastComment()
-
hasComments
public boolean hasComments()
-
addToAnnotations
public A addToAnnotations(int index, io.sundr.model.AnnotationRef item)
-
setToAnnotations
public A setToAnnotations(int index, io.sundr.model.AnnotationRef item)
-
addToAnnotations
public A addToAnnotations(io.sundr.model.AnnotationRef... items)
-
addAllToAnnotations
public A addAllToAnnotations(Collection<io.sundr.model.AnnotationRef> items)
-
removeFromAnnotations
public A removeFromAnnotations(io.sundr.model.AnnotationRef... items)
-
removeAllFromAnnotations
public A removeAllFromAnnotations(Collection<io.sundr.model.AnnotationRef> items)
-
removeMatchingFromAnnotations
public A removeMatchingFromAnnotations(Predicate<AnnotationRefBuilder> predicate)
-
buildAnnotations
public List<io.sundr.model.AnnotationRef> buildAnnotations()
-
buildAnnotation
public io.sundr.model.AnnotationRef buildAnnotation(int index)
-
buildFirstAnnotation
public io.sundr.model.AnnotationRef buildFirstAnnotation()
-
buildLastAnnotation
public io.sundr.model.AnnotationRef buildLastAnnotation()
-
buildMatchingAnnotation
public io.sundr.model.AnnotationRef buildMatchingAnnotation(Predicate<AnnotationRefBuilder> predicate)
-
hasMatchingAnnotation
public boolean hasMatchingAnnotation(Predicate<AnnotationRefBuilder> predicate)
-
withAnnotations
public A withAnnotations(io.sundr.model.AnnotationRef... annotations)
-
hasAnnotations
public boolean hasAnnotations()
-
addNewAnnotation
public TypeDefFluent.AnnotationsNested<A> addNewAnnotation()
-
addNewAnnotationLike
public TypeDefFluent.AnnotationsNested<A> addNewAnnotationLike(io.sundr.model.AnnotationRef item)
-
setNewAnnotationLike
public TypeDefFluent.AnnotationsNested<A> setNewAnnotationLike(int index, io.sundr.model.AnnotationRef item)
-
editAnnotation
public TypeDefFluent.AnnotationsNested<A> editAnnotation(int index)
-
editFirstAnnotation
public TypeDefFluent.AnnotationsNested<A> editFirstAnnotation()
-
editLastAnnotation
public TypeDefFluent.AnnotationsNested<A> editLastAnnotation()
-
editMatchingAnnotation
public TypeDefFluent.AnnotationsNested<A> editMatchingAnnotation(Predicate<AnnotationRefBuilder> predicate)
-
addToExtendsList
public A addToExtendsList(int index, io.sundr.model.ClassRef item)
-
setToExtendsList
public A setToExtendsList(int index, io.sundr.model.ClassRef item)
-
addToExtendsList
public A addToExtendsList(io.sundr.model.ClassRef... items)
-
addAllToExtendsList
public A addAllToExtendsList(Collection<io.sundr.model.ClassRef> items)
-
removeFromExtendsList
public A removeFromExtendsList(io.sundr.model.ClassRef... items)
-
removeAllFromExtendsList
public A removeAllFromExtendsList(Collection<io.sundr.model.ClassRef> items)
-
removeMatchingFromExtendsList
public A removeMatchingFromExtendsList(Predicate<ClassRefBuilder> predicate)
-
buildExtendsList
public List<io.sundr.model.ClassRef> buildExtendsList()
-
buildExtendsList
public io.sundr.model.ClassRef buildExtendsList(int index)
-
buildFirstExtendsList
public io.sundr.model.ClassRef buildFirstExtendsList()
-
buildLastExtendsList
public io.sundr.model.ClassRef buildLastExtendsList()
-
buildMatchingExtendsList
public io.sundr.model.ClassRef buildMatchingExtendsList(Predicate<ClassRefBuilder> predicate)
-
hasMatchingExtendsList
public boolean hasMatchingExtendsList(Predicate<ClassRefBuilder> predicate)
-
withExtendsList
public A withExtendsList(io.sundr.model.ClassRef... extendsList)
-
hasExtendsList
public boolean hasExtendsList()
-
addNewExtendsList
public TypeDefFluent.ExtendsListNested<A> addNewExtendsList()
-
addNewExtendsListLike
public TypeDefFluent.ExtendsListNested<A> addNewExtendsListLike(io.sundr.model.ClassRef item)
-
setNewExtendsListLike
public TypeDefFluent.ExtendsListNested<A> setNewExtendsListLike(int index, io.sundr.model.ClassRef item)
-
editExtendsList
public TypeDefFluent.ExtendsListNested<A> editExtendsList(int index)
-
editFirstExtendsList
public TypeDefFluent.ExtendsListNested<A> editFirstExtendsList()
-
editLastExtendsList
public TypeDefFluent.ExtendsListNested<A> editLastExtendsList()
-
editMatchingExtendsList
public TypeDefFluent.ExtendsListNested<A> editMatchingExtendsList(Predicate<ClassRefBuilder> predicate)
-
addToImplementsList
public A addToImplementsList(int index, io.sundr.model.ClassRef item)
-
setToImplementsList
public A setToImplementsList(int index, io.sundr.model.ClassRef item)
-
addToImplementsList
public A addToImplementsList(io.sundr.model.ClassRef... items)
-
addAllToImplementsList
public A addAllToImplementsList(Collection<io.sundr.model.ClassRef> items)
-
removeFromImplementsList
public A removeFromImplementsList(io.sundr.model.ClassRef... items)
-
removeAllFromImplementsList
public A removeAllFromImplementsList(Collection<io.sundr.model.ClassRef> items)
-
removeMatchingFromImplementsList
public A removeMatchingFromImplementsList(Predicate<ClassRefBuilder> predicate)
-
buildImplementsList
public List<io.sundr.model.ClassRef> buildImplementsList()
-
buildImplementsList
public io.sundr.model.ClassRef buildImplementsList(int index)
-
buildFirstImplementsList
public io.sundr.model.ClassRef buildFirstImplementsList()
-
buildLastImplementsList
public io.sundr.model.ClassRef buildLastImplementsList()
-
buildMatchingImplementsList
public io.sundr.model.ClassRef buildMatchingImplementsList(Predicate<ClassRefBuilder> predicate)
-
hasMatchingImplementsList
public boolean hasMatchingImplementsList(Predicate<ClassRefBuilder> predicate)
-
withImplementsList
public A withImplementsList(io.sundr.model.ClassRef... implementsList)
-
hasImplementsList
public boolean hasImplementsList()
-
addNewImplementsList
public TypeDefFluent.ImplementsListNested<A> addNewImplementsList()
-
addNewImplementsListLike
public TypeDefFluent.ImplementsListNested<A> addNewImplementsListLike(io.sundr.model.ClassRef item)
-
setNewImplementsListLike
public TypeDefFluent.ImplementsListNested<A> setNewImplementsListLike(int index, io.sundr.model.ClassRef item)
-
editImplementsList
public TypeDefFluent.ImplementsListNested<A> editImplementsList(int index)
-
editFirstImplementsList
public TypeDefFluent.ImplementsListNested<A> editFirstImplementsList()
-
editLastImplementsList
public TypeDefFluent.ImplementsListNested<A> editLastImplementsList()
-
editMatchingImplementsList
public TypeDefFluent.ImplementsListNested<A> editMatchingImplementsList(Predicate<ClassRefBuilder> predicate)
-
addToParameters
public A addToParameters(int index, io.sundr.model.TypeParamDef item)
-
setToParameters
public A setToParameters(int index, io.sundr.model.TypeParamDef item)
-
addToParameters
public A addToParameters(io.sundr.model.TypeParamDef... items)
-
addAllToParameters
public A addAllToParameters(Collection<io.sundr.model.TypeParamDef> items)
-
removeFromParameters
public A removeFromParameters(io.sundr.model.TypeParamDef... items)
-
removeAllFromParameters
public A removeAllFromParameters(Collection<io.sundr.model.TypeParamDef> items)
-
removeMatchingFromParameters
public A removeMatchingFromParameters(Predicate<TypeParamDefBuilder> predicate)
-
buildParameters
public List<io.sundr.model.TypeParamDef> buildParameters()
-
buildParameter
public io.sundr.model.TypeParamDef buildParameter(int index)
-
buildFirstParameter
public io.sundr.model.TypeParamDef buildFirstParameter()
-
buildLastParameter
public io.sundr.model.TypeParamDef buildLastParameter()
-
buildMatchingParameter
public io.sundr.model.TypeParamDef buildMatchingParameter(Predicate<TypeParamDefBuilder> predicate)
-
hasMatchingParameter
public boolean hasMatchingParameter(Predicate<TypeParamDefBuilder> predicate)
-
withParameters
public A withParameters(io.sundr.model.TypeParamDef... parameters)
-
hasParameters
public boolean hasParameters()
-
addNewParameter
public TypeDefFluent.ParametersNested<A> addNewParameter()
-
addNewParameterLike
public TypeDefFluent.ParametersNested<A> addNewParameterLike(io.sundr.model.TypeParamDef item)
-
setNewParameterLike
public TypeDefFluent.ParametersNested<A> setNewParameterLike(int index, io.sundr.model.TypeParamDef item)
-
editParameter
public TypeDefFluent.ParametersNested<A> editParameter(int index)
-
editFirstParameter
public TypeDefFluent.ParametersNested<A> editFirstParameter()
-
editLastParameter
public TypeDefFluent.ParametersNested<A> editLastParameter()
-
editMatchingParameter
public TypeDefFluent.ParametersNested<A> editMatchingParameter(Predicate<TypeParamDefBuilder> predicate)
-
addToProperties
public A addToProperties(int index, io.sundr.model.Property item)
-
setToProperties
public A setToProperties(int index, io.sundr.model.Property item)
-
addToProperties
public A addToProperties(io.sundr.model.Property... items)
-
addAllToProperties
public A addAllToProperties(Collection<io.sundr.model.Property> items)
-
removeFromProperties
public A removeFromProperties(io.sundr.model.Property... items)
-
removeAllFromProperties
public A removeAllFromProperties(Collection<io.sundr.model.Property> items)
-
removeMatchingFromProperties
public A removeMatchingFromProperties(Predicate<PropertyBuilder> predicate)
-
buildProperties
public List<io.sundr.model.Property> buildProperties()
-
buildProperty
public io.sundr.model.Property buildProperty(int index)
-
buildFirstProperty
public io.sundr.model.Property buildFirstProperty()
-
buildLastProperty
public io.sundr.model.Property buildLastProperty()
-
buildMatchingProperty
public io.sundr.model.Property buildMatchingProperty(Predicate<PropertyBuilder> predicate)
-
hasMatchingProperty
public boolean hasMatchingProperty(Predicate<PropertyBuilder> predicate)
-
withProperties
public A withProperties(io.sundr.model.Property... properties)
-
hasProperties
public boolean hasProperties()
-
addNewProperty
public TypeDefFluent.PropertiesNested<A> addNewProperty()
-
addNewPropertyLike
public TypeDefFluent.PropertiesNested<A> addNewPropertyLike(io.sundr.model.Property item)
-
setNewPropertyLike
public TypeDefFluent.PropertiesNested<A> setNewPropertyLike(int index, io.sundr.model.Property item)
-
editProperty
public TypeDefFluent.PropertiesNested<A> editProperty(int index)
-
editFirstProperty
public TypeDefFluent.PropertiesNested<A> editFirstProperty()
-
editLastProperty
public TypeDefFluent.PropertiesNested<A> editLastProperty()
-
editMatchingProperty
public TypeDefFluent.PropertiesNested<A> editMatchingProperty(Predicate<PropertyBuilder> predicate)
-
addToConstructors
public A addToConstructors(int index, io.sundr.model.Method item)
-
setToConstructors
public A setToConstructors(int index, io.sundr.model.Method item)
-
addToConstructors
public A addToConstructors(io.sundr.model.Method... items)
-
addAllToConstructors
public A addAllToConstructors(Collection<io.sundr.model.Method> items)
-
removeFromConstructors
public A removeFromConstructors(io.sundr.model.Method... items)
-
removeAllFromConstructors
public A removeAllFromConstructors(Collection<io.sundr.model.Method> items)
-
removeMatchingFromConstructors
public A removeMatchingFromConstructors(Predicate<MethodBuilder> predicate)
-
buildConstructors
public List<io.sundr.model.Method> buildConstructors()
-
buildConstructor
public io.sundr.model.Method buildConstructor(int index)
-
buildFirstConstructor
public io.sundr.model.Method buildFirstConstructor()
-
buildLastConstructor
public io.sundr.model.Method buildLastConstructor()
-
buildMatchingConstructor
public io.sundr.model.Method buildMatchingConstructor(Predicate<MethodBuilder> predicate)
-
hasMatchingConstructor
public boolean hasMatchingConstructor(Predicate<MethodBuilder> predicate)
-
withConstructors
public A withConstructors(io.sundr.model.Method... constructors)
-
hasConstructors
public boolean hasConstructors()
-
addNewConstructor
public TypeDefFluent.ConstructorsNested<A> addNewConstructor()
-
addNewConstructorLike
public TypeDefFluent.ConstructorsNested<A> addNewConstructorLike(io.sundr.model.Method item)
-
setNewConstructorLike
public TypeDefFluent.ConstructorsNested<A> setNewConstructorLike(int index, io.sundr.model.Method item)
-
editConstructor
public TypeDefFluent.ConstructorsNested<A> editConstructor(int index)
-
editFirstConstructor
public TypeDefFluent.ConstructorsNested<A> editFirstConstructor()
-
editLastConstructor
public TypeDefFluent.ConstructorsNested<A> editLastConstructor()
-
editMatchingConstructor
public TypeDefFluent.ConstructorsNested<A> editMatchingConstructor(Predicate<MethodBuilder> predicate)
-
addToMethods
public A addToMethods(int index, io.sundr.model.Method item)
-
setToMethods
public A setToMethods(int index, io.sundr.model.Method item)
-
addToMethods
public A addToMethods(io.sundr.model.Method... items)
-
addAllToMethods
public A addAllToMethods(Collection<io.sundr.model.Method> items)
-
removeFromMethods
public A removeFromMethods(io.sundr.model.Method... items)
-
removeAllFromMethods
public A removeAllFromMethods(Collection<io.sundr.model.Method> items)
-
removeMatchingFromMethods
public A removeMatchingFromMethods(Predicate<MethodBuilder> predicate)
-
buildMethods
public List<io.sundr.model.Method> buildMethods()
-
buildMethod
public io.sundr.model.Method buildMethod(int index)
-
buildFirstMethod
public io.sundr.model.Method buildFirstMethod()
-
buildLastMethod
public io.sundr.model.Method buildLastMethod()
-
buildMatchingMethod
public io.sundr.model.Method buildMatchingMethod(Predicate<MethodBuilder> predicate)
-
hasMatchingMethod
public boolean hasMatchingMethod(Predicate<MethodBuilder> predicate)
-
withMethods
public A withMethods(io.sundr.model.Method... methods)
-
hasMethods
public boolean hasMethods()
-
addNewMethod
public TypeDefFluent.MethodsNested<A> addNewMethod()
-
addNewMethodLike
public TypeDefFluent.MethodsNested<A> addNewMethodLike(io.sundr.model.Method item)
-
setNewMethodLike
public TypeDefFluent.MethodsNested<A> setNewMethodLike(int index, io.sundr.model.Method item)
-
editMethod
public TypeDefFluent.MethodsNested<A> editMethod(int index)
-
editFirstMethod
public TypeDefFluent.MethodsNested<A> editFirstMethod()
-
editLastMethod
public TypeDefFluent.MethodsNested<A> editLastMethod()
-
editMatchingMethod
public TypeDefFluent.MethodsNested<A> editMatchingMethod(Predicate<MethodBuilder> predicate)
-
getOuterTypeName
public String getOuterTypeName()
-
hasOuterTypeName
public boolean hasOuterTypeName()
-
addToInnerTypes
public A addToInnerTypes(int index, io.sundr.model.TypeDef item)
-
setToInnerTypes
public A setToInnerTypes(int index, io.sundr.model.TypeDef item)
-
addToInnerTypes
public A addToInnerTypes(io.sundr.model.TypeDef... items)
-
addAllToInnerTypes
public A addAllToInnerTypes(Collection<io.sundr.model.TypeDef> items)
-
removeFromInnerTypes
public A removeFromInnerTypes(io.sundr.model.TypeDef... items)
-
removeAllFromInnerTypes
public A removeAllFromInnerTypes(Collection<io.sundr.model.TypeDef> items)
-
removeMatchingFromInnerTypes
public A removeMatchingFromInnerTypes(Predicate<TypeDefBuilder> predicate)
-
buildInnerTypes
public List<io.sundr.model.TypeDef> buildInnerTypes()
-
buildInnerType
public io.sundr.model.TypeDef buildInnerType(int index)
-
buildFirstInnerType
public io.sundr.model.TypeDef buildFirstInnerType()
-
buildLastInnerType
public io.sundr.model.TypeDef buildLastInnerType()
-
buildMatchingInnerType
public io.sundr.model.TypeDef buildMatchingInnerType(Predicate<TypeDefBuilder> predicate)
-
hasMatchingInnerType
public boolean hasMatchingInnerType(Predicate<TypeDefBuilder> predicate)
-
withInnerTypes
public A withInnerTypes(io.sundr.model.TypeDef... innerTypes)
-
hasInnerTypes
public boolean hasInnerTypes()
-
addNewInnerType
public TypeDefFluent.InnerTypesNested<A> addNewInnerType()
-
addNewInnerTypeLike
public TypeDefFluent.InnerTypesNested<A> addNewInnerTypeLike(io.sundr.model.TypeDef item)
-
setNewInnerTypeLike
public TypeDefFluent.InnerTypesNested<A> setNewInnerTypeLike(int index, io.sundr.model.TypeDef item)
-
editInnerType
public TypeDefFluent.InnerTypesNested<A> editInnerType(int index)
-
editFirstInnerType
public TypeDefFluent.InnerTypesNested<A> editFirstInnerType()
-
editLastInnerType
public TypeDefFluent.InnerTypesNested<A> editLastInnerType()
-
editMatchingInnerType
public TypeDefFluent.InnerTypesNested<A> editMatchingInnerType(Predicate<TypeDefBuilder> predicate)
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classModifierSupportFluent<A extends TypeDefFluent<A>>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classModifierSupportFluent<A extends TypeDefFluent<A>>
-
toString
public String toString()
- Overrides:
toStringin classModifierSupportFluent<A extends TypeDefFluent<A>>
-
-