Class Balancing.IfScope
- java.lang.Object
-
- org.immutables.generator.processor.Balancing.Scope
-
- org.immutables.generator.processor.Balancing.BlockScope
-
- org.immutables.generator.processor.Balancing.IfScope
-
- Enclosing class:
- Balancing
private static class Balancing.IfScope extends Balancing.BlockScope
-
-
Field Summary
Fields Modifier and Type Field Description private ImmutableTrees.IfStatement.Builderbuilderprivate ImmutableTrees.ElsecurrentElseprivate ImmutableTrees.ElseIfcurrentElseIfprivate ImmutableTrees.Ifdirective-
Fields inherited from class org.immutables.generator.processor.Balancing.BlockScope
parent
-
Fields inherited from class org.immutables.generator.processor.Balancing.Scope
parts
-
-
Constructor Summary
Constructors Constructor Description IfScope(Balancing.Scope parent, ImmutableTrees.If directive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidadd(Trees.TemplatePart part)(package private) ImmutableTrees.IfStatementcreatePart()private voidflushBlock()(package private) booleanincorrect(Trees.TemplatePart part)-
Methods inherited from class org.immutables.generator.processor.Balancing.BlockScope
correct, end
-
-
-
-
Field Detail
-
directive
private final ImmutableTrees.If directive
-
builder
private final ImmutableTrees.IfStatement.Builder builder
-
currentElseIf
@Nullable private ImmutableTrees.ElseIf currentElseIf
-
currentElse
@Nullable private ImmutableTrees.Else currentElse
-
-
Constructor Detail
-
IfScope
IfScope(Balancing.Scope parent, ImmutableTrees.If directive)
-
-
Method Detail
-
add
void add(Trees.TemplatePart part)
- Overrides:
addin classBalancing.Scope
-
incorrect
boolean incorrect(Trees.TemplatePart part)
- Overrides:
incorrectin classBalancing.BlockScope
-
flushBlock
private void flushBlock()
-
createPart
ImmutableTrees.IfStatement createPart()
- Specified by:
createPartin classBalancing.BlockScope
-
-