Class CsmAttribute
- java.lang.Object
-
- com.github.javaparser.printer.concretesyntaxmodel.CsmAttribute
-
- All Implemented Interfaces:
CsmElement
public class CsmAttribute extends java.lang.Object implements CsmElement
-
-
Field Summary
Fields Modifier and Type Field Description private ObservableProperty
property
-
Constructor Summary
Constructors Constructor Description CsmAttribute(ObservableProperty property)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObservableProperty
getProperty()
int
getTokenType(Node node, java.lang.String text, java.lang.String tokenText)
Obtain the token type corresponding to the specific value of the attribute.void
prettyPrint(Node node, SourcePrinter printer)
-
-
-
Field Detail
-
property
private final ObservableProperty property
-
-
Constructor Detail
-
CsmAttribute
public CsmAttribute(ObservableProperty property)
-
-
Method Detail
-
getProperty
public ObservableProperty getProperty()
-
prettyPrint
public void prettyPrint(Node node, SourcePrinter printer)
- Specified by:
prettyPrint
in interfaceCsmElement
-
getTokenType
public int getTokenType(Node node, java.lang.String text, java.lang.String tokenText)
Obtain the token type corresponding to the specific value of the attribute. For example, to the attribute "Operator" different token could correspond like PLUS or MINUS.- Parameters:
tokenText
- Operator's token text
-
-