APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.xpath.internal.compiler

public Class FuncLoader

extends Object
Class Inheritance
Imports
javax.xml.transform.TransformerException, com.sun.org.apache.xpath.internal.functions.Function, com.sun.org.apache.xalan.internal.utils.ObjectFactory, .ConfigurationError

Lazy load of functions into the function table as needed, so we don't have to load all the functions allowed in XPath and XSLT on startup.

Field Summary

Modifier and TypeField and Description
private int
m_funcID

The function ID, which may correspond to one of the FUNC_XXX values found in com.sun.org.apache.xpath.internal.compiler.FunctionTable, but may be a value installed by an external module.

private String
m_funcName

The class name of the function.

Constructor Summary

AccessConstructor and Description
public
FuncLoader(String
The class name of the {com.sun.org.apache.xpath.internal.functions.Function} class, which, if it does not have a '.' in it, is assumed to be relative to 'com.sun.org.apache.xpath.internal.functions'.
funcName
,
int
The function ID, which may correspond to one of the FUNC_XXX values found in com.sun.org.apache.xpath.internal.compiler.FunctionTable, but may be a value installed by an external module.
funcID
)

Construct a function loader

Method Summary

Modifier and TypeMethod and Description
pack-priv Function

Returns:

non-null reference to Function derivative.
getFunction
()

Get a Function instance that this instance is liaisoning for.

public String

Returns:

The class name of the {com.sun.org.apache.xpath.internal.functions.Function} class.
getName
()

Get the local class name of the function class.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

m_funcIDback to summary
private int m_funcID

The function ID, which may correspond to one of the FUNC_XXX values found in com.sun.org.apache.xpath.internal.compiler.FunctionTable, but may be a value installed by an external module.

m_funcNameback to summary
private String m_funcName

The class name of the function. Must not be null.

Constructor Detail

FuncLoaderback to summary
public FuncLoader(String funcName, int funcID)

Construct a function loader

Parameters
funcName:String

The class name of the {com.sun.org.apache.xpath.internal.functions.Function} class, which, if it does not have a '.' in it, is assumed to be relative to 'com.sun.org.apache.xpath.internal.functions'.

funcID:int

The function ID, which may correspond to one of the FUNC_XXX values found in com.sun.org.apache.xpath.internal.compiler.FunctionTable, but may be a value installed by an external module.

Method Detail

getFunctionback to summary
pack-priv Function getFunction() throws TransformerException

Get a Function instance that this instance is liaisoning for.

Returns:Function

non-null reference to Function derivative.

Exceptions
TransformerException:
if ClassNotFoundException, IllegalAccessException, or InstantiationException is thrown.
getNameback to summary
public String getName()

Get the local class name of the function class. If function name does not have a '.' in it, it is assumed to be relative to 'com.sun.org.apache.xpath.internal.functions'.

Returns:String

The class name of the {com.sun.org.apache.xpath.internal.functions.Function} class.