Example usage for org.jsoup.select Elements getClass

List of usage examples for org.jsoup.select Elements getClass

Introduction

In this page you can find the example usage for org.jsoup.select Elements getClass.

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

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");
    }
}