com.novell.xsl.extensions
Class JavaMember
java.lang.Object
com.novell.xml.xpath.Function
com.novell.xsl.extensions.JavaMember
- Direct Known Subclasses:
- JavaConstructor, JavaMethod
- public abstract class JavaMember
- extends Function
The base class for JavaConstructor and JavaMethod
It has smarts to try and resolve overloads based on parameter type
Method Summary |
protected int |
weightParam(Class formalType,
Expression argument)
Calculate the weighting given to the combination of a
formal parameter and an actual parameter.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
interfaceExpressionValue
protected static final Class interfaceExpressionValue
classString
protected static final Class classString
classNumber
protected static final Class classNumber
classBoolean
protected static final Class classBoolean
interfaceNode
protected static final Class interfaceNode
JavaMember
public JavaMember(FunctionSignature signature)
weightParam
protected int weightParam(Class formalType,
Expression argument)
- Calculate the weighting given to the combination of a
formal parameter and an actual parameter.
These weights are added together to try and determine the
best signature to use, given an overload based on parameter
types.
- Parameters:
formalType
- The formal parameter type.argument
- The actual parameter.
- Returns:
- An integer number giving the weighting of the match.