|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.type.AnyFunctionType
public class AnyFunctionType
An ItemType representing the type function(). Subtypes represent function items with more specific type signatures.
Field Summary | |
---|---|
static AnyFunctionType |
ANY_FUNCTION
|
static SequenceType |
SINGLE_FUNCTION
|
Constructor Summary | |
---|---|
AnyFunctionType()
|
Method Summary | |
---|---|
SequenceType[] |
getArgumentTypes()
Get the argument types of the function |
AtomicType |
getAtomizedItemType()
Get the item type of the atomic values that will be produced when an item of this type is atomized |
double |
getDefaultPriority()
Determine the default priority of this item type when used on its own as a Pattern |
static AnyFunctionType |
getInstance()
Get the singular instance of this type (Note however that subtypes of this type may have any number of instances) |
ItemType |
getPrimitiveItemType()
Get the primitive item type corresponding to this item type. |
int |
getPrimitiveType()
Get the primitive type corresponding to this item type. |
SequenceType |
getResultType()
Get the result type |
ItemType |
getSuperType(TypeHierarchy th)
Get the type from which this item type is derived by restriction. |
boolean |
isAtomicType()
Determine whether this item type is an atomic type |
boolean |
isAtomizable()
Ask whether values of this type are atomizable |
boolean |
isMapType()
Ask whether this function item type is a map type. |
boolean |
isPlainType()
Determine whether this item type is atomic (that is, whether it can ONLY match atomic values) |
Expression |
makeFunctionSequenceCoercer(Expression exp,
RoleLocator role,
TypeCheckerEnvironment visitor)
Create an expression whose effect is to apply function coercion to coerce a function from this type to another type |
boolean |
matches(Item item,
XPathContext context)
Test whether a given item conforms to this type |
boolean |
matchesItem(Item item,
boolean allowURIPromotion,
Configuration config)
Test whether a given item conforms to this type |
int |
relationship(FunctionItemType other,
TypeHierarchy th)
Determine the relationship of one function item type to another |
String |
toString()
Produce a representation of this type name for use in error messages. |
String |
toString(NamePool pool)
Produce a representation of this type name for use in error messages. |
void |
visitNamedSchemaComponents(SchemaComponentVisitor visitor)
Visit all the schema components used in this ItemType definition |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static AnyFunctionType ANY_FUNCTION
public static SequenceType SINGLE_FUNCTION
Constructor Detail |
---|
public AnyFunctionType()
Method Detail |
---|
public static AnyFunctionType getInstance()
public boolean isAtomicType()
isAtomicType
in interface ItemType
public boolean isPlainType()
isPlainType
in interface ItemType
public boolean isMapType()
isMapType
in interface FunctionItemType
public SequenceType[] getArgumentTypes()
getArgumentTypes
in interface FunctionItemType
public boolean matches(Item item, XPathContext context)
matches
in interface ItemType
item
- The item to be testedcontext
- the XPath dynamic evaluation context
public boolean matchesItem(Item item, boolean allowURIPromotion, Configuration config)
matchesItem
in interface ItemType
item
- The item to be testedallowURIPromotion
- config
-
public ItemType getSuperType(TypeHierarchy th)
getSuperType
in interface ItemType
th
- the type hierarchy cache
public ItemType getPrimitiveItemType()
getPrimitiveItemType
in interface ItemType
public int getPrimitiveType()
getPrimitiveType
in interface ItemType
public String toString(NamePool pool)
toString
in interface ItemType
pool
- the name pool
public String toString()
toString
in class Object
public AtomicType getAtomizedItemType()
getAtomizedItemType
in interface ItemType
public boolean isAtomizable()
isAtomizable
in interface ItemType
public int relationship(FunctionItemType other, TypeHierarchy th)
relationship
in interface FunctionItemType
TypeHierarchy.SUBSUMES
, TypeHierarchy.SAME_TYPE
public Expression makeFunctionSequenceCoercer(Expression exp, RoleLocator role, TypeCheckerEnvironment visitor) throws XPathException
makeFunctionSequenceCoercer
in interface FunctionItemType
exp
- the expression that delivers the supplied sequence of function items (the ones in need of coercion)role
- information for use in diagnosticsvisitor
- the expression visitor, supplies context information
XPathException
public void visitNamedSchemaComponents(SchemaComponentVisitor visitor) throws XPathException
visitNamedSchemaComponents
in interface ItemType
visitor
- the visitor class to be called when each component is visited
XPathException
- if an error occurspublic SequenceType getResultType()
getResultType
in interface FunctionItemType
public double getDefaultPriority()
ItemType
getDefaultPriority
in interface ItemType
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |