haXe XPath Documentation
Back | Index
class xpath.context.UnionEnvironment
implements Environment
Class implementing the union of two environments.
function new(primary : Environment, secondary : Environment) : Void
Constructs a new Environment which is the union of existing primary and secondary environments. Functions and variables which are defined by the primary environment override those which are defined by the secondary environment.
function callFunction(context : Context, name : String, ?parameters : Array<xpath.type.XPathValue>) : xpath.type.XPathValue
Calls a function with the specified parameters and returns the result.
function existsFunction(name : String) : Bool
Tests if a function with the specified name is provided by this environment.
function existsVariable(name : String) : Bool
Tests if a variable with the specified name is provided by this environment.
function getFunction(name : String) : xpath.type.XPathFunction
Returns a reference to the function with the specified name.
function getVariable(name : String) : xpath.type.XPathValue
Gets the value of the variable with the specified name.
Back | Index