/** * Ask whether the function has an annotation with a particular name * @param name the name of the required annotation */ public boolean hasAnnotation(StructuredQName name) { return annotations.includes(name); }
/** * Ask whether the function has an annotation with a particular name * @param name the name of the required annotation */ public boolean hasAnnotation(StructuredQName name) { return annotations.includes(name); }
/** * Test whether a function with a given list of annotations satisfies an annotation assertion present * on a function item test. * * @param assertion the annotation assertion present in the function item test * @param annotationList the annotations present on the function being tested * @return true if the assertion is satisfied, false if not */ public boolean satisfiesAssertion(Annotation assertion, AnnotationList annotationList) { String local = assertion.getAnnotationQName().getLocalPart(); if (local.startsWith("not-")) { return !annotationList.includes(local.substring(4)); } else { return annotationList.includes(local); } }
/** * Test whether a function with a given list of annotations satisfies an annotation assertion present * on a function item test. * * @param assertion the annotation assertion present in the function item test * @param annotationList the annotations present on the function being tested * @return true if the assertion is satisfied, false if not */ public boolean satisfiesAssertion(Annotation assertion, AnnotationList annotationList) { String local = assertion.getAnnotationQName().getLocalPart(); if (local.startsWith("not-")) { return !annotationList.includes(local.substring(4)); } else { return annotationList.includes(local); } }
/** * Set the annotations on this function * * @param annotations the annotations, indexed by annotation name */ public void setAnnotations(AnnotationList annotations) { this.annotations = annotations; if (compiledFunction != null) { compiledFunction.setAnnotations(annotations); } if (annotations.includes(Annotation.UPDATING)) { setUpdating(true); } }
/** * Set the annotations on this function * * @param annotations the annotations, indexed by annotation name */ public void setAnnotations(AnnotationList annotations) { this.annotations = annotations; if (compiledFunction != null) { compiledFunction.setAnnotations(annotations); } if (annotations.includes(Annotation.UPDATING)) { setUpdating(true); } }
if (annotations.includes(SAXON_MEMO_FUNCTION)) { if (env.getConfiguration().getEditionCode().equals("HE")) { warning("saxon:memo-function option is ignored under Saxon-HE"); func.setStaticContext((QueryModule) env); func.setMemoFunction(memoFunction); func.setUpdating(annotations.includes(Annotation.UPDATING)); func.setAnnotations(annotations);
if (annotations.includes(SAXON_MEMO_FUNCTION)) { if (env.getConfiguration().getEditionCode().equals("HE")) { warning("saxon:memo-function option is ignored under Saxon-HE"); func.setStaticContext((QueryModule) env); func.setMemoFunction(memoFunction); func.setUpdating(annotations.includes(Annotation.UPDATING)); func.setAnnotations(annotations);
var.setSystemId(env.getSystemId()); if (annotations != null) { var.setPrivate(annotations.includes(Annotation.PRIVATE));
var.setSystemId(env.getSystemId()); if (annotations != null) { var.setPrivate(annotations.includes(Annotation.PRIVATE));