Examples of XRefFunctions


Examples of oracle.tip.xref.xpath.XRefFunctions

        Class<?> c;

        try {
            if (functionName.getLocalPart().equals("lookupXref")) {
                String innerClassName = "oracle.tip.xref.xpath.XRefFunctions$LookupXRef";
                XRefFunctions oc = new XRefFunctions();
                Class[] innerClasses = oc.getClass().getClasses();

                for(int i=0;i<innerClasses.length;i++){
                    if(innerClasses[i].getName().equals(innerClassName)){
                        //The next line will dynamically create an instance of the inner class
                        return XPathFunctionFactory.createXPathFunction((IXPathFunction)innerClasses[i].getConstructor(new Class[]{oc.getClass()}).newInstance(new Object[]{oc}));
                    }
                }
                return null;
/*                c =   Class.forName(
                        "testClass",
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.