Package io.sundr.model
Class DeclareFluent<A extends DeclareFluent<A>>
- java.lang.Object
-
- io.sundr.builder.BaseFluent<A>
-
- io.sundr.model.DeclareFluent<A>
-
- Direct Known Subclasses:
AssignFluent.DeclareTargetNested,AssignFluent.DeclareValueNested,BinaryExpressionFluent.DeclareLeftNested,BinaryExpressionFluent.DeclareRightNested,BlockFluent.DeclareStatementsNested,CastFluent.DeclareExpressionNested,ConstructFluent.DeclareArgumentsNested,DeclareBuilder,DoFluent.DeclareConditionNested,DoFluent.DeclareStatementNested,EnclosedFluent.DeclareExpresionNested,ForeachFluent.DeclareBodyNested,ForeachFluent.DeclareExpressionNested,ForeachFluent.DeclareNested,ForFluent.DeclareBodyNested,ForFluent.DeclareCompareNested,ForFluent.DeclareInitNested,ForFluent.DeclareUpdateNested,IfFluent.DeclareConditionNested,IfFluent.DeclareStatementNested,IndexFluent.DeclareExpressionNested,IndexFluent.DeclareScopeNested,InstanceOfFluent.DeclareExpressionNested,InverseFluent.DeclareExpresionNested,LambdaFluent.DeclareStatementNested,MethodCallFluent.DeclareArgumentsNested,MethodCallFluent.DeclareScopeNested,NegativeFluent.DeclareExpresionNested,NewArrayFluent.DeclareExpressionsNested,NotFluent.DeclareExpresionNested,PositiveFluent.DeclareExpresionNested,PostDecrementFluent.DeclareExpressionNested,PostIncrementFluent.DeclareExpressionNested,PreDecrementFluent.DeclareExpressionNested,PreIncrementFluent.DeclareExpressionNested,PropertyRefFluent.DeclareScopeNested,ReturnFluent.DeclareExpressionNested,SwitchFluent.DeclareExpressionNested,TernaryFluent.DeclareAlternativeNested,TernaryFluent.DeclareConditionNested,TernaryFluent.DeclareResultNested,WhileFluent.DeclareConditionNested,WhileFluent.DeclareStatementNested
public class DeclareFluent<A extends DeclareFluent<A>> extends io.sundr.builder.BaseFluent<A>Generated
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classDeclareFluent.PropertiesNested<N>
-
Constructor Summary
Constructors Constructor Description DeclareFluent()DeclareFluent(io.sundr.model.Declare instance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AaddAllToProperties(Collection<io.sundr.model.Property> items)DeclareFluent.PropertiesNested<A>addNewProperty()DeclareFluent.PropertiesNested<A>addNewPropertyLike(io.sundr.model.Property item)AaddToProperties(int index, io.sundr.model.Property item)AaddToProperties(io.sundr.model.Property... items)io.sundr.model.PropertybuildFirstProperty()io.sundr.model.PropertybuildLastProperty()io.sundr.model.PropertybuildMatchingProperty(Predicate<PropertyBuilder> predicate)List<io.sundr.model.Property>buildProperties()io.sundr.model.PropertybuildProperty(int index)protected voidcopyInstance(io.sundr.model.Declare instance)DeclareFluent.PropertiesNested<A>editFirstProperty()DeclareFluent.PropertiesNested<A>editLastProperty()DeclareFluent.PropertiesNested<A>editMatchingProperty(Predicate<PropertyBuilder> predicate)DeclareFluent.PropertiesNested<A>editProperty(int index)booleanequals(Object o)Optional<io.sundr.model.Expression>getValue()inthashCode()booleanhasMatchingProperty(Predicate<PropertyBuilder> predicate)booleanhasProperties()booleanhasValue()AremoveAllFromProperties(Collection<io.sundr.model.Property> items)AremoveFromProperties(io.sundr.model.Property... items)AremoveMatchingFromProperties(Predicate<PropertyBuilder> predicate)DeclareFluent.PropertiesNested<A>setNewPropertyLike(int index, io.sundr.model.Property item)AsetToProperties(int index, io.sundr.model.Property item)StringtoString()AwithProperties(io.sundr.model.Property... properties)AwithProperties(List<io.sundr.model.Property> properties)AwithValue(io.sundr.model.Expression value)AwithValue(Optional<io.sundr.model.Expression> value)
-
-
-
Method Detail
-
copyInstance
protected void copyInstance(io.sundr.model.Declare instance)
-
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 DeclareFluent.PropertiesNested<A> addNewProperty()
-
addNewPropertyLike
public DeclareFluent.PropertiesNested<A> addNewPropertyLike(io.sundr.model.Property item)
-
setNewPropertyLike
public DeclareFluent.PropertiesNested<A> setNewPropertyLike(int index, io.sundr.model.Property item)
-
editProperty
public DeclareFluent.PropertiesNested<A> editProperty(int index)
-
editFirstProperty
public DeclareFluent.PropertiesNested<A> editFirstProperty()
-
editLastProperty
public DeclareFluent.PropertiesNested<A> editLastProperty()
-
editMatchingProperty
public DeclareFluent.PropertiesNested<A> editMatchingProperty(Predicate<PropertyBuilder> predicate)
-
withValue
public A withValue(io.sundr.model.Expression value)
-
getValue
public Optional<io.sundr.model.Expression> getValue()
-
hasValue
public boolean hasValue()
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classio.sundr.builder.BaseFluent<A extends DeclareFluent<A>>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classio.sundr.builder.BaseFluent<A extends DeclareFluent<A>>
-
-