List of usage examples for org.jsoup.select Elements getClass
@HotSpotIntrinsicCandidate public final native Class<?> getClass();
From source file:cn.wanghaomiao.xpath.core.XpathEvaluator.java
/** * xpath/* ww w .j a va2s . c o m*/ * * @param funcname * @param context * @return * @throws NoSuchFunctionException */ public Object callFunc(String funcname, Elements context) throws NoSuchFunctionException { try { Method function = emFuncs.get(renderFuncKey(funcname, context.getClass())); return function.invoke(SingletonProducer.getInstance().getFunctions(), context); } catch (Exception e) { throw new NoSuchFunctionException("This function is not supported"); } }