public interface LayoutDecisionView
LayoutDecision. LayoutContext
hands this out from decisionAt(...) so consumers (layout rules in
pp2.layout.rules, the S31 output writer) can read decisions but cannot
mutate them out of precedence — all writes must go through the context's
priority-mediated request* methods.
Plan reference: §7.3/S23, §7.4/S23.
| Modifier and Type | Method and Description |
|---|---|
int |
getBlanksBefore()
Number of blank columns to emit before the token, or
LayoutDecision.UNSET. |
int |
getIndentLevel()
Indent level for the token's line, or
LayoutDecision.UNSET. |
int |
getLinebreaksBefore()
Number of linebreaks to emit before the token, or
LayoutDecision.UNSET. |
String |
getTextOverride()
Text to emit instead of the token's source text, or
null if undecided. |
boolean |
isBlanksDecided() |
boolean |
isIndentDecided() |
boolean |
isLinebreaksDecided() |
boolean |
isTextDecided() |
int getLinebreaksBefore()
LayoutDecision.UNSET.int getBlanksBefore()
LayoutDecision.UNSET.int getIndentLevel()
LayoutDecision.UNSET.boolean isLinebreaksDecided()
boolean isBlanksDecided()
boolean isIndentDecided()
String getTextOverride()
null if undecided.boolean isTextDecided()