Class PathAwareTypedVisitor<V,​P>

  • All Implemented Interfaces:
    Visitor<V>

    public class PathAwareTypedVisitor<V,​P>
    extends Object
    implements Visitor<V>
    • Constructor Detail

      • PathAwareTypedVisitor

        public PathAwareTypedVisitor()
    • Method Detail

      • visit

        public void visit​(V element)
        Specified by:
        visit in interface Visitor<V>
      • hasVisitMethodMatching

        public <F> Boolean hasVisitMethodMatching​(F target)
        Checks if the specified visitor has a visit method compatible with the specified fluent.
        Specified by:
        hasVisitMethodMatching in interface Visitor<V>
        Type Parameters:
        F - The type of the candidate
        Parameters:
        target - The candidate to check if current visitor can visit.
        Returns:
        True if matching method was found.
      • getParent

        public P getParent​(List<Object> path)
      • getParentType

        public Class<P> getParentType()