Package io.sundr.model
Class PropertyFluent<A extends PropertyFluent<A>>
- java.lang.Object
-
- io.sundr.builder.BaseFluent<A>
-
- io.sundr.model.AttributeSupportFluent<A>
-
- io.sundr.model.ModifierSupportFluent<A>
-
- io.sundr.model.PropertyFluent<A>
-
- Direct Known Subclasses:
DeclareFluent.PropertiesNested,MethodFluent.ArgumentsNested,PropertyBuilder,PropertyRefFluent.PropertyNested,TypeDefFluent.PropertiesNested
public class PropertyFluent<A extends PropertyFluent<A>> extends ModifierSupportFluent<A>
Generated
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classPropertyFluent.AnnotationsNested<N>classPropertyFluent.ClassRefTypeNested<N>classPropertyFluent.PrimitiveRefTypeNested<N>classPropertyFluent.TypeParamRefTypeNested<N>classPropertyFluent.VoidRefTypeNested<N>classPropertyFluent.WildcardRefTypeNested<N>-
Nested classes/interfaces inherited from class io.sundr.model.ModifierSupportFluent
ModifierSupportFluent.ModifiersNested<N>
-
-
Constructor Summary
Constructors Constructor Description PropertyFluent()PropertyFluent(io.sundr.model.Property 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.Property instance)
-
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 PropertyFluent.AnnotationsNested<A> addNewAnnotation()
-
addNewAnnotationLike
public PropertyFluent.AnnotationsNested<A> addNewAnnotationLike(io.sundr.model.AnnotationRef item)
-
setNewAnnotationLike
public PropertyFluent.AnnotationsNested<A> setNewAnnotationLike(int index, io.sundr.model.AnnotationRef item)
-
editAnnotation
public PropertyFluent.AnnotationsNested<A> editAnnotation(int index)
-
editFirstAnnotation
public PropertyFluent.AnnotationsNested<A> editFirstAnnotation()
-
editLastAnnotation
public PropertyFluent.AnnotationsNested<A> editLastAnnotation()
-
editMatchingAnnotation
public PropertyFluent.AnnotationsNested<A> editMatchingAnnotation(Predicate<AnnotationRefBuilder> predicate)
-
buildTypeRef
public io.sundr.model.TypeRef buildTypeRef()
-
withTypeRef
public A withTypeRef(io.sundr.model.TypeRef typeRef)
-
hasTypeRef
public boolean hasTypeRef()
-
withNewClassRefType
public PropertyFluent.ClassRefTypeNested<A> withNewClassRefType()
-
withNewClassRefTypeLike
public PropertyFluent.ClassRefTypeNested<A> withNewClassRefTypeLike(io.sundr.model.ClassRef item)
-
withNewPrimitiveRefType
public PropertyFluent.PrimitiveRefTypeNested<A> withNewPrimitiveRefType()
-
withNewPrimitiveRefTypeLike
public PropertyFluent.PrimitiveRefTypeNested<A> withNewPrimitiveRefTypeLike(io.sundr.model.PrimitiveRef item)
-
withNewVoidRefType
public PropertyFluent.VoidRefTypeNested<A> withNewVoidRefType()
-
withNewVoidRefTypeLike
public PropertyFluent.VoidRefTypeNested<A> withNewVoidRefTypeLike(io.sundr.model.VoidRef item)
-
withNewTypeParamRefType
public PropertyFluent.TypeParamRefTypeNested<A> withNewTypeParamRefType()
-
withNewTypeParamRefTypeLike
public PropertyFluent.TypeParamRefTypeNested<A> withNewTypeParamRefTypeLike(io.sundr.model.TypeParamRef item)
-
withNewWildcardRefType
public PropertyFluent.WildcardRefTypeNested<A> withNewWildcardRefType()
-
withNewWildcardRefTypeLike
public PropertyFluent.WildcardRefTypeNested<A> withNewWildcardRefTypeLike(io.sundr.model.WildcardRef item)
-
getName
public String getName()
-
hasName
public boolean hasName()
-
withInitialValue
public A withInitialValue(io.sundr.model.Expression initialValue)
-
getInitialValue
public Optional<io.sundr.model.Expression> getInitialValue()
-
hasInitialValue
public boolean hasInitialValue()
-
isEnumConstant
public boolean isEnumConstant()
-
withEnumConstant
public A withEnumConstant(boolean enumConstant)
-
hasEnumConstant
public boolean hasEnumConstant()
-
isSynthetic
public boolean isSynthetic()
-
withSynthetic
public A withSynthetic(boolean synthetic)
-
hasSynthetic
public boolean hasSynthetic()
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classModifierSupportFluent<A extends PropertyFluent<A>>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classModifierSupportFluent<A extends PropertyFluent<A>>
-
toString
public String toString()
- Overrides:
toStringin classModifierSupportFluent<A extends PropertyFluent<A>>
-
builder
protected static <T> io.sundr.builder.VisitableBuilder<T,?> builder(Object item)
-
withEnumConstant
public A withEnumConstant()
-
withSynthetic
public A withSynthetic()
-
-