public class Annotation extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ANNOTATION_ASSERTION |
static int |
FUNCTION_DECLARATION |
static int |
INLINE_FUNCTION |
static StructuredQName |
PRIVATE |
static StructuredQName |
PUBLIC |
static StructuredQName |
SIMPLE |
static StructuredQName |
UPDATING |
static int |
VARIABLE_DECLARATION |
Constructor and Description |
---|
Annotation(StructuredQName name)
Create an annotation
|
Modifier and Type | Method and Description |
---|---|
void |
addAnnotationParameter(AtomicValue value)
Add a value to the list of annotation parameters
|
static void |
checkAnnotationList(List<Annotation> list,
int where) |
static boolean |
existsAnnotation(List<Annotation> annotationList,
StructuredQName name) |
List<AtomicValue> |
getAnnotationParameters()
Get the list of annotation parameters
|
StructuredQName |
getAnnotationQName()
Get the name of the annotation (a QName)
|
public static final StructuredQName UPDATING
public static final StructuredQName SIMPLE
public static final StructuredQName PRIVATE
public static final StructuredQName PUBLIC
public static final int FUNCTION_DECLARATION
public static final int VARIABLE_DECLARATION
public static final int INLINE_FUNCTION
public static final int ANNOTATION_ASSERTION
public Annotation(StructuredQName name)
name
- the annotation name (a QName)public StructuredQName getAnnotationQName()
public void addAnnotationParameter(AtomicValue value)
value
- the value to be added. This will always be a string or number,
but Saxon enforces this only at the level of the query parserpublic List<AtomicValue> getAnnotationParameters()
public static boolean existsAnnotation(List<Annotation> annotationList, StructuredQName name)
public static void checkAnnotationList(List<Annotation> list, int where) throws XPathException
XPathException
Copyright (c) 2004-2017 Saxonica Limited. All rights reserved.