Class ConstantTagFilter

    • Constructor Detail

      • ConstantTagFilter

        public ConstantTagFilter​(int constantTag,
                                 ConstantVisitor constantVisitor)
        Creates a new ConstantTagFilter.
        Parameters:
        constantTag - the type of constants for which visits will be delegated.
        constantVisitor - the ConstantVisitor to which visits will be delegated.
      • ConstantTagFilter

        public ConstantTagFilter​(int[] constantTags,
                                 ConstantVisitor constantVisitor)
        Creates a new ConstantTagFilter.
        Parameters:
        constantTags - the types of constants for which visits will be delegated.
        constantVisitor - the ConstantVisitor to which visits will be delegated.
    • Method Detail

      • visitAnyConstant

        public void visitAnyConstant​(Clazz clazz,
                                     Constant constant)
        Description copied from interface: ConstantVisitor
        Visits any Constant instance. The more specific default implementations of this interface delegate to this method.
        Specified by:
        visitAnyConstant in interface ConstantVisitor