Package org.exquery.xquery

Examples of org.exquery.xquery.FunctionSignature


     2) the name of the Resource Function
     *  3) the arity of the Resource Function
     */
    @Override
    public int hashCode() {
        final FunctionSignature fnSignature = getResourceFunction().getFunctionSignature();
        return getResourceFunction().getXQueryLocation().hashCode()
        ^ fnSignature.getName().hashCode()
        ^ fnSignature.getArgumentCount() * 32;
    }
View Full Code Here


     2) the name of the Resource Function
     *  3) the arity of the Resource Function
     */
    @Override
    public boolean equals(final Object obj) {
        final FunctionSignature fnSignature = getResourceFunction().getFunctionSignature();
       
        if(obj == null) {
            return false;
        }
       
        if(!(obj instanceof RestXqService)) {
            return false;
        }
       
        final RestXqService other = ((RestXqService)obj);
       
        return
            other.getResourceFunction().getXQueryLocation().equals(getResourceFunction().getXQueryLocation())
            && other.getResourceFunction().getFunctionSignature().getName().equals(fnSignature.getName())
            && other.getResourceFunction().getFunctionSignature().getArgumentCount() == fnSignature.getArgumentCount();
    }
View Full Code Here

TOP

Related Classes of org.exquery.xquery.FunctionSignature

Copyright © 2018 www.massapicom. 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.