Class PhantomNodeLogic
- java.lang.Object
-
- com.github.javaparser.printer.lexicalpreservation.PhantomNodeLogic
-
class PhantomNodeLogic extends java.lang.Object
We want to recognize and ignore "phantom" nodes, like the fake type of variable in FieldDeclaration
-
-
Field Summary
Fields Modifier and Type Field Description private static AstObserver
cacheCleaner
private static java.util.Map<Node,java.lang.Boolean>
isPhantomNodeCache
private static int
LEVELS_TO_EXPLORE
-
Constructor Summary
Constructors Constructor Description PhantomNodeLogic()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static boolean
inPhantomNode(Node node, int levels)
A node contained in a phantom node is also a phantom node.(package private) static boolean
isPhantomNode(Node node)
-
-
-
Field Detail
-
LEVELS_TO_EXPLORE
private static final int LEVELS_TO_EXPLORE
- See Also:
- Constant Field Values
-
isPhantomNodeCache
private static final java.util.Map<Node,java.lang.Boolean> isPhantomNodeCache
-
cacheCleaner
private static final AstObserver cacheCleaner
-
-