Class PhantomNodeLogic
- java.lang.Object
-
- com.github.javaparser.printer.lexicalpreservation.PhantomNodeLogic
-
@Deprecated public class PhantomNodeLogic extends java.lang.Object
Deprecated.This class is no longer used phantom node are now an attribute of each nodeWe 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
Deprecated.private static java.util.Map<Node,java.lang.Boolean>
isPhantomNodeCache
Deprecated.private static int
LEVELS_TO_EXPLORE
Deprecated.
-
Constructor Summary
Constructors Constructor Description PhantomNodeLogic()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static void
cleanUpCache()
Deprecated.Clean up the cache used by the LexicalPreserving logic.private static boolean
inPhantomNode(Node node, int levels)
Deprecated.A node contained in a phantom node is also a phantom node.(package private) static boolean
isPhantomNode(Node node)
Deprecated.
-
-
-
Field Detail
-
LEVELS_TO_EXPLORE
private static final int LEVELS_TO_EXPLORE
Deprecated.- See Also:
- Constant Field Values
-
isPhantomNodeCache
private static final java.util.Map<Node,java.lang.Boolean> isPhantomNodeCache
Deprecated.
-
cacheCleaner
private static final AstObserver cacheCleaner
Deprecated.
-
-
Method Detail
-
isPhantomNode
static boolean isPhantomNode(Node node)
Deprecated.
-
inPhantomNode
private static boolean inPhantomNode(Node node, int levels)
Deprecated.A node contained in a phantom node is also a phantom node. We limit how many levels up we check just for performance reasons.
-
cleanUpCache
public static void cleanUpCache()
Deprecated.Clean up the cache used by the LexicalPreserving logic. This should only be used once you're done printing all parsed data with a JavaParser's configuration setLexicalPreservationEnabled=true.
-
-