Class PhantomNodeLogic


  • @Deprecated
    public class PhantomNodeLogic
    extends java.lang.Object
    Deprecated.
    This class is no longer used phantom node are now an attribute of each node
    We want to recognize and ignore "phantom" nodes, like the fake type of variable in FieldDeclaration
    • 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.
       
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.
    • Constructor Detail

      • PhantomNodeLogic

        public PhantomNodeLogic()
        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.