Class CsmList
- java.lang.Object
-
- com.github.javaparser.printer.concretesyntaxmodel.CsmList
-
- All Implemented Interfaces:
CsmElement
public class CsmList extends java.lang.Object implements CsmElement
-
-
Field Summary
Fields Modifier and Type Field Description private CsmElement
following
private CsmElement
preceeding
private ObservableProperty
property
private CsmElement
separatorPost
private CsmElement
separatorPre
-
Constructor Summary
Constructors Constructor Description CsmList(ObservableProperty property)
CsmList(ObservableProperty property, CsmElement separator)
CsmList(ObservableProperty property, CsmElement separatorPre, CsmElement separatorPost, CsmElement preceeding, CsmElement following)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CsmElement
getFollowing()
CsmElement
getPreceeding()
ObservableProperty
getProperty()
CsmElement
getSeparatorPost()
CsmElement
getSeparatorPre()
void
prettyPrint(Node node, SourcePrinter printer)
java.lang.String
toString()
-
-
-
Field Detail
-
property
private final ObservableProperty property
-
separatorPost
private final CsmElement separatorPost
-
separatorPre
private final CsmElement separatorPre
-
preceeding
private final CsmElement preceeding
-
following
private final CsmElement following
-
-
Constructor Detail
-
CsmList
public CsmList(ObservableProperty property, CsmElement separator)
-
CsmList
public CsmList(ObservableProperty property)
-
CsmList
public CsmList(ObservableProperty property, CsmElement separatorPre, CsmElement separatorPost, CsmElement preceeding, CsmElement following)
-
-
Method Detail
-
getProperty
public ObservableProperty getProperty()
-
getSeparatorPost
public CsmElement getSeparatorPost()
-
getSeparatorPre
public CsmElement getSeparatorPre()
-
getPreceeding
public CsmElement getPreceeding()
-
getFollowing
public CsmElement getFollowing()
-
prettyPrint
public void prettyPrint(Node node, SourcePrinter printer)
- Specified by:
prettyPrint
in interfaceCsmElement
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-