Class CsmAttribute
- java.lang.Object
-
- com.github.javaparser.printer.concretesyntaxmodel.CsmAttribute
-
- All Implemented Interfaces:
CsmElement
public class CsmAttribute extends Object implements CsmElement
-
-
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, String text, String tokenText)
Obtain the token type corresponding to the specific value of the attribute.void
prettyPrint(Node node, SourcePrinter printer)
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.github.javaparser.printer.concretesyntaxmodel.CsmElement
isCorrespondingElement
-
-
-
-
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, String text, 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
-
-