package com.l7tech.xml.xpath;

import java.util.Set;
import org.jaxen.saxpath.SAXPathException;

class t extends XPathHandlerAdapter {
   final Set val$ret;
   final boolean val$lookForQnameLiterals;

   t(Set var1, boolean var2) {
      this.val$ret = var1;
      this.val$lookForQnameLiterals = var2;
   }

   @Override
   public void startFunction(String var1, String var2) throws SAXPathException {
      this.val$ret.add(var1);
   }

   @Override
   public void startNameStep(int var1, String var2, String var3) throws SAXPathException {
      this.val$ret.add(var2);
   }

   @Override
   public void variableReference(String var1, String var2) throws SAXPathException {
      this.val$ret.add(var1);
   }

   @Override
   public void literal(String param1) throws SAXPathException {
      // $VF: Couldn't be decompiled
      // Please report this to the Vineflower issue tracker, at https://github.com/Vineflower/vineflower/issues with a copy of the class file (if you have the rights to distribute it!)
      // java.lang.RuntimeException: parsing failure!
      //   at org.jetbrains.java.decompiler.modules.decompiler.decompose.DomHelper.parseGraph(DomHelper.java:211)
      //   at org.jetbrains.java.decompiler.main.rels.MethodProcessor.codeToJava(MethodProcessor.java:174)
      //
      // Bytecode:
      // 00: aload 0
      // 01: getfield com/l7tech/xml/xpath/t.val$lookForQnameLiterals Z
      // 04: ifeq 37
      // 07: aload 1
      // 08: invokestatic com/l7tech/util/DomUtils.isValidXmlQname (Ljava/lang/CharSequence;)Z
      // 0b: ifeq 37
      // 0e: goto 15
      // 11: invokestatic com/l7tech/xml/xpath/t.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 14: athrow
      // 15: aload 0
      // 16: getfield com/l7tech/xml/xpath/t.val$ret Ljava/util/Set;
      // 19: aload 1
      // 1a: invokestatic com/l7tech/util/FullQName.valueOf (Ljava/lang/String;)Lcom/l7tech/util/FullQName;
      // 1d: invokevirtual com/l7tech/util/FullQName.getPrefix ()Ljava/lang/String;
      // 20: invokeinterface java/util/Set.add (Ljava/lang/Object;)Z 2
      // 25: pop
      // 26: goto 37
      // 29: invokestatic com/l7tech/xml/xpath/t.a (Ljava/lang/Exception;)Ljava/lang/Exception;
      // 2c: athrow
      // 2d: astore 2
      // 2e: new org/jaxen/saxpath/SAXPathException
      // 31: dup
      // 32: aload 2
      // 33: invokespecial org/jaxen/saxpath/SAXPathException.<init> (Ljava/lang/Throwable;)V
      // 36: athrow
      // 37: return
      // try (0 -> 6): 7 java/text/ParseException
      // try (9 -> 16): 19 java/text/ParseException
      // try (3 -> 17): 17 org/jaxen/saxpath/SAXPathException
   }

   private static Exception a(Exception var0) {
      return var0;
   }
}
