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>
-
-
Field Summary
-
Fields inherited from class io.sundr.builder.BaseFluent
_visitables
-
-
Constructor Summary
Constructors Constructor Description TypeDefFluent()TypeDefFluent(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
-
Methods inherited from class io.sundr.builder.BaseFluent
aggregate, aggregate, build, build, builderOf, getVisitableMap
-
-
-
-
Constructor Detail
-
TypeDefFluent
public TypeDefFluent()
-
TypeDefFluent
public TypeDefFluent(TypeDef instance)
-
-
Method Detail
-
copyInstance
protected void copyInstance(TypeDef instance)
-
getKind
public Kind getKind()
-
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, AnnotationRef item)
-
setToAnnotations
public A setToAnnotations(int index, AnnotationRef item)
-
addToAnnotations
public A addToAnnotations(AnnotationRef... items)
-
addAllToAnnotations
public A addAllToAnnotations(Collection<AnnotationRef> items)
-
removeFromAnnotations
public A removeFromAnnotations(AnnotationRef... items)
-
removeAllFromAnnotations
public A removeAllFromAnnotations(Collection<AnnotationRef> items)
-
removeMatchingFromAnnotations
public A removeMatchingFromAnnotations(Predicate<AnnotationRefBuilder> predicate)
-
buildAnnotations
public List<AnnotationRef> buildAnnotations()
-
buildAnnotation
public AnnotationRef buildAnnotation(int index)
-
buildFirstAnnotation
public AnnotationRef buildFirstAnnotation()
-
buildLastAnnotation
public AnnotationRef buildLastAnnotation()
-
buildMatchingAnnotation
public AnnotationRef buildMatchingAnnotation(Predicate<AnnotationRefBuilder> predicate)
-
hasMatchingAnnotation
public boolean hasMatchingAnnotation(Predicate<AnnotationRefBuilder> predicate)
-
withAnnotations
public A withAnnotations(List<AnnotationRef> annotations)
-
withAnnotations
public A withAnnotations(AnnotationRef... annotations)
-
hasAnnotations
public boolean hasAnnotations()
-
addNewAnnotation
public TypeDefFluent.AnnotationsNested<A> addNewAnnotation()
-
addNewAnnotationLike
public TypeDefFluent.AnnotationsNested<A> addNewAnnotationLike(AnnotationRef item)
-
setNewAnnotationLike
public TypeDefFluent.AnnotationsNested<A> setNewAnnotationLike(int index, 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)
-
addAllToExtendsList
public A addAllToExtendsList(Collection<ClassRef> items)
-
removeAllFromExtendsList
public A removeAllFromExtendsList(Collection<ClassRef> items)
-
removeMatchingFromExtendsList
public A removeMatchingFromExtendsList(Predicate<ClassRefBuilder> predicate)
-
buildExtendsList
public ClassRef buildExtendsList(int index)
-
buildFirstExtendsList
public ClassRef buildFirstExtendsList()
-
buildLastExtendsList
public ClassRef buildLastExtendsList()
-
buildMatchingExtendsList
public ClassRef buildMatchingExtendsList(Predicate<ClassRefBuilder> predicate)
-
hasMatchingExtendsList
public boolean hasMatchingExtendsList(Predicate<ClassRefBuilder> predicate)
-
hasExtendsList
public boolean hasExtendsList()
-
addNewExtendsList
public TypeDefFluent.ExtendsListNested<A> addNewExtendsList()
-
addNewExtendsListLike
public TypeDefFluent.ExtendsListNested<A> addNewExtendsListLike(ClassRef item)
-
setNewExtendsListLike
public TypeDefFluent.ExtendsListNested<A> setNewExtendsListLike(int index, 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)
-
addAllToImplementsList
public A addAllToImplementsList(Collection<ClassRef> items)
-
removeAllFromImplementsList
public A removeAllFromImplementsList(Collection<ClassRef> items)
-
removeMatchingFromImplementsList
public A removeMatchingFromImplementsList(Predicate<ClassRefBuilder> predicate)
-
buildImplementsList
public ClassRef buildImplementsList(int index)
-
buildFirstImplementsList
public ClassRef buildFirstImplementsList()
-
buildLastImplementsList
public ClassRef buildLastImplementsList()
-
buildMatchingImplementsList
public ClassRef buildMatchingImplementsList(Predicate<ClassRefBuilder> predicate)
-
hasMatchingImplementsList
public boolean hasMatchingImplementsList(Predicate<ClassRefBuilder> predicate)
-
hasImplementsList
public boolean hasImplementsList()
-
addNewImplementsList
public TypeDefFluent.ImplementsListNested<A> addNewImplementsList()
-
addNewImplementsListLike
public TypeDefFluent.ImplementsListNested<A> addNewImplementsListLike(ClassRef item)
-
setNewImplementsListLike
public TypeDefFluent.ImplementsListNested<A> setNewImplementsListLike(int index, 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, TypeParamDef item)
-
setToParameters
public A setToParameters(int index, TypeParamDef item)
-
addToParameters
public A addToParameters(TypeParamDef... items)
-
addAllToParameters
public A addAllToParameters(Collection<TypeParamDef> items)
-
removeFromParameters
public A removeFromParameters(TypeParamDef... items)
-
removeAllFromParameters
public A removeAllFromParameters(Collection<TypeParamDef> items)
-
removeMatchingFromParameters
public A removeMatchingFromParameters(Predicate<TypeParamDefBuilder> predicate)
-
buildParameters
public List<TypeParamDef> buildParameters()
-
buildParameter
public TypeParamDef buildParameter(int index)
-
buildFirstParameter
public TypeParamDef buildFirstParameter()
-
buildLastParameter
public TypeParamDef buildLastParameter()
-
buildMatchingParameter
public TypeParamDef buildMatchingParameter(Predicate<TypeParamDefBuilder> predicate)
-
hasMatchingParameter
public boolean hasMatchingParameter(Predicate<TypeParamDefBuilder> predicate)
-
withParameters
public A withParameters(List<TypeParamDef> parameters)
-
withParameters
public A withParameters(TypeParamDef... parameters)
-
hasParameters
public boolean hasParameters()
-
addNewParameter
public TypeDefFluent.ParametersNested<A> addNewParameter()
-
addNewParameterLike
public TypeDefFluent.ParametersNested<A> addNewParameterLike(TypeParamDef item)
-
setNewParameterLike
public TypeDefFluent.ParametersNested<A> setNewParameterLike(int index, 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)
-
addAllToProperties
public A addAllToProperties(Collection<Property> items)
-
removeAllFromProperties
public A removeAllFromProperties(Collection<Property> items)
-
removeMatchingFromProperties
public A removeMatchingFromProperties(Predicate<PropertyBuilder> predicate)
-
buildProperty
public Property buildProperty(int index)
-
buildFirstProperty
public Property buildFirstProperty()
-
buildLastProperty
public Property buildLastProperty()
-
buildMatchingProperty
public Property buildMatchingProperty(Predicate<PropertyBuilder> predicate)
-
hasMatchingProperty
public boolean hasMatchingProperty(Predicate<PropertyBuilder> predicate)
-
hasProperties
public boolean hasProperties()
-
addNewProperty
public TypeDefFluent.PropertiesNested<A> addNewProperty()
-
addNewPropertyLike
public TypeDefFluent.PropertiesNested<A> addNewPropertyLike(Property item)
-
setNewPropertyLike
public TypeDefFluent.PropertiesNested<A> setNewPropertyLike(int index, 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)
-
addAllToConstructors
public A addAllToConstructors(Collection<Method> items)
-
removeAllFromConstructors
public A removeAllFromConstructors(Collection<Method> items)
-
removeMatchingFromConstructors
public A removeMatchingFromConstructors(Predicate<MethodBuilder> predicate)
-
buildConstructor
public Method buildConstructor(int index)
-
buildFirstConstructor
public Method buildFirstConstructor()
-
buildLastConstructor
public Method buildLastConstructor()
-
buildMatchingConstructor
public Method buildMatchingConstructor(Predicate<MethodBuilder> predicate)
-
hasMatchingConstructor
public boolean hasMatchingConstructor(Predicate<MethodBuilder> predicate)
-
hasConstructors
public boolean hasConstructors()
-
addNewConstructor
public TypeDefFluent.ConstructorsNested<A> addNewConstructor()
-
addNewConstructorLike
public TypeDefFluent.ConstructorsNested<A> addNewConstructorLike(Method item)
-
setNewConstructorLike
public TypeDefFluent.ConstructorsNested<A> setNewConstructorLike(int index, 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)
-
addAllToMethods
public A addAllToMethods(Collection<Method> items)
-
removeAllFromMethods
public A removeAllFromMethods(Collection<Method> items)
-
removeMatchingFromMethods
public A removeMatchingFromMethods(Predicate<MethodBuilder> predicate)
-
buildMethod
public Method buildMethod(int index)
-
buildFirstMethod
public Method buildFirstMethod()
-
buildLastMethod
public Method buildLastMethod()
-
buildMatchingMethod
public Method buildMatchingMethod(Predicate<MethodBuilder> predicate)
-
hasMatchingMethod
public boolean hasMatchingMethod(Predicate<MethodBuilder> predicate)
-
hasMethods
public boolean hasMethods()
-
addNewMethod
public TypeDefFluent.MethodsNested<A> addNewMethod()
-
addNewMethodLike
public TypeDefFluent.MethodsNested<A> addNewMethodLike(Method item)
-
setNewMethodLike
public TypeDefFluent.MethodsNested<A> setNewMethodLike(int index, 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()
-
addAllToInnerTypes
public A addAllToInnerTypes(Collection<TypeDef> items)
-
removeAllFromInnerTypes
public A removeAllFromInnerTypes(Collection<TypeDef> items)
-
removeMatchingFromInnerTypes
public A removeMatchingFromInnerTypes(Predicate<TypeDefBuilder> predicate)
-
buildInnerType
public TypeDef buildInnerType(int index)
-
buildFirstInnerType
public TypeDef buildFirstInnerType()
-
buildLastInnerType
public TypeDef buildLastInnerType()
-
buildMatchingInnerType
public TypeDef buildMatchingInnerType(Predicate<TypeDefBuilder> predicate)
-
hasMatchingInnerType
public boolean hasMatchingInnerType(Predicate<TypeDefBuilder> predicate)
-
hasInnerTypes
public boolean hasInnerTypes()
-
addNewInnerType
public TypeDefFluent.InnerTypesNested<A> addNewInnerType()
-
addNewInnerTypeLike
public TypeDefFluent.InnerTypesNested<A> addNewInnerTypeLike(TypeDef item)
-
setNewInnerTypeLike
public TypeDefFluent.InnerTypesNested<A> setNewInnerTypeLike(int index, 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>>
-
-