Class ReflectiveVisitor

  • All Implemented Interfaces:
    Visitor
    Direct Known Subclasses:
    DescrDumper

    public abstract class ReflectiveVisitor
    extends java.lang.Object
    implements Visitor
    Java Tip 98: Reflect on the Visitor design pattern. Implement visitors in Java, using reflection. http://www.javaworld.com/javaworld/javatips/jw-javatip98.html Michael Neale says: I really hate this code. Not really a helpful use of reflection, always annoys me.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static org.slf4j.Logger logger  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void visit​(java.lang.Object object)  
      void visitObject​(java.lang.Object object)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • logger

        protected static final transient org.slf4j.Logger logger
    • Constructor Detail

      • ReflectiveVisitor

        public ReflectiveVisitor()
    • Method Detail

      • visit

        public void visit​(java.lang.Object object)
        Specified by:
        visit in interface Visitor
      • visitObject

        public void visitObject​(java.lang.Object object)