Package net.sf.saxon.trans
Class SymbolicName.F
java.lang.Object
net.sf.saxon.trans.SymbolicName
net.sf.saxon.trans.SymbolicName.F
- Enclosing class:
SymbolicName
Subclass of SymbolicName used for function names (including the arity)
-
Nested Class Summary
Nested classes/interfaces inherited from class net.sf.saxon.trans.SymbolicName
SymbolicName.F
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether some other object is "equal to" this one.int
getArity()
Get the arity, in the case of function componentsGet a short name suitable for use in messagesint
hashCode()
Returns a hash code value for the object.toString()
Get the name as a string.Methods inherited from class net.sf.saxon.trans.SymbolicName
getComponentKind, getComponentName
-
Constructor Details
-
F
Create a symbolic name for a function.- Parameters:
name
- the QName that is the "name" of the componentarity
- the number of arguments
-
-
Method Details
-
getArity
public int getArity()Get the arity, in the case of function components- Returns:
- in the case of a function, the arity, otherwise -1.
-
hashCode
public int hashCode()Returns a hash code value for the object.- Overrides:
hashCode
in classSymbolicName
-
equals
Indicates whether some other object is "equal to" this one.- Overrides:
equals
in classSymbolicName
-
toString
Get the name as a string.- Overrides:
toString
in classSymbolicName
- Returns:
- a string typically in the form "template p:my-template" or "function f:my-function#2"
-
getShortName
Get a short name suitable for use in messages- Overrides:
getShortName
in classSymbolicName
-