public class CsmConditional extends java.lang.Object implements CsmElement
Modifier and Type | Class and Description |
---|---|
static class |
CsmConditional.Condition |
Modifier and Type | Field and Description |
---|---|
private CsmConditional.Condition |
condition |
private CsmElement |
elseElement |
private ObservableProperty |
property |
private CsmElement |
thenElement |
Constructor and Description |
---|
CsmConditional(ObservableProperty property,
CsmConditional.Condition condition,
CsmElement thenElement) |
CsmConditional(ObservableProperty property,
CsmConditional.Condition condition,
CsmElement thenElement,
CsmElement elseElement) |
Modifier and Type | Method and Description |
---|---|
CsmConditional.Condition |
getCondition() |
CsmElement |
getElseElement() |
ObservableProperty |
getProperty() |
CsmElement |
getThenElement() |
void |
prettyPrint(Node node,
SourcePrinter printer) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
attribute, block, charToken, child, comma, comment, conditional, conditional, indent, list, list, list, list, newline, none, orphanCommentsBeforeThis, orphanCommentsEnding, semicolon, sequence, space, string, string, stringToken, token, token, unindent
private final CsmConditional.Condition condition
private final ObservableProperty property
private final CsmElement thenElement
private final CsmElement elseElement
public CsmConditional(ObservableProperty property, CsmConditional.Condition condition, CsmElement thenElement, CsmElement elseElement)
public CsmConditional(ObservableProperty property, CsmConditional.Condition condition, CsmElement thenElement)
public CsmConditional.Condition getCondition()
public ObservableProperty getProperty()
public CsmElement getThenElement()
public CsmElement getElseElement()
public void prettyPrint(Node node, SourcePrinter printer)
prettyPrint
in interface CsmElement