Package com.github.javaparser.printer
Class ConcreteSyntaxModel
- java.lang.Object
-
- com.github.javaparser.printer.ConcreteSyntaxModel
-
public class ConcreteSyntaxModel extends java.lang.Object
The Concrete Syntax Model for a single node type. It knows the syntax used to represent a certain element in Java code.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Map<java.lang.Class,CsmElement>
concreteSyntaxModelByClass
private static java.util.Optional<java.lang.String>
initializationError
-
Constructor Summary
Constructors Modifier Constructor Description private
ConcreteSyntaxModel()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static CsmElement
annotations()
static CsmElement
forClass(java.lang.Class<? extends Node> nodeClazz)
static java.lang.String
genericPrettyPrint(Node node)
static void
genericPrettyPrint(Node node, SourcePrinter printer)
private static CsmElement
memberAnnotations()
private static CsmElement
mix(CsmElement... elements)
Build a mix collecting all the elements specified.private static CsmElement
modifiers()
private static CsmElement
onlineAnnotations()
private static CsmElement
typeArguments()
private static CsmElement
typeParameters()
-
-
-
Field Detail
-
concreteSyntaxModelByClass
private static final java.util.Map<java.lang.Class,CsmElement> concreteSyntaxModelByClass
-
initializationError
private static java.util.Optional<java.lang.String> initializationError
-
-
Method Detail
-
modifiers
private static CsmElement modifiers()
-
mix
private static CsmElement mix(CsmElement... elements)
Build a mix collecting all the elements specified.
-
memberAnnotations
private static CsmElement memberAnnotations()
-
annotations
private static CsmElement annotations()
-
onlineAnnotations
private static CsmElement onlineAnnotations()
-
typeParameters
private static CsmElement typeParameters()
-
typeArguments
private static CsmElement typeArguments()
-
genericPrettyPrint
public static void genericPrettyPrint(Node node, SourcePrinter printer)
-
genericPrettyPrint
public static java.lang.String genericPrettyPrint(Node node)
-
forClass
public static CsmElement forClass(java.lang.Class<? extends Node> nodeClazz)
-
-