public class TypeInference extends Object
Modifier and Type | Field and Description |
---|---|
protected Function<String,String> |
namespaceMappings |
protected Function<NamespaceName,Type.XPathProperType> |
variables |
Constructor and Description |
---|
TypeInference(DTM.Dtd dtd,
Function<NamespaceName,FunctionSignature> functions)
Performs type inference assuming that ALL elements in given Ddtd can be roots.
|
TypeInference(DTM.Dtd dtd,
Function<NamespaceName,FunctionSignature> functions,
Collection<? extends DTM.Element> roots)
Performs type inference assuming that only given elements can be roots.
|
TypeInference(DTM.Dtd dtd,
Function<NamespaceName,FunctionSignature> functions,
DTM.Element... roots)
Performs type inference assuming that only given elements can be roots.
|
TypeInference(DTM.Dtd dtd,
Function<NamespaceName,FunctionSignature> functions,
Predicate<DTM.Element> filter)
ATTENTION MessageReceiver is initially a MessageDisposer.
|
Modifier and Type | Method and Description |
---|---|
Set<? extends Node.NodeType> |
getAllTypes() |
Type.XPathType |
infer(TPath.Expr expr,
Function<String,String> namespaceMappings,
Function<NamespaceName,Type.XPathProperType> variables) |
void |
setMessageReceiver(MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> msg) |
protected Function<NamespaceName,Type.XPathProperType> variables
public TypeInference(DTM.Dtd dtd, Function<NamespaceName,FunctionSignature> functions, DTM.Element... roots)
public TypeInference(DTM.Dtd dtd, Function<NamespaceName,FunctionSignature> functions, Collection<? extends DTM.Element> roots)
public TypeInference(DTM.Dtd dtd, Function<NamespaceName,FunctionSignature> functions)
public TypeInference(DTM.Dtd dtd, Function<NamespaceName,FunctionSignature> functions, Predicate<DTM.Element> filter)
setMessageReceiver(MessageReceiver)
.public void setMessageReceiver(MessageReceiver<? super SimpleMessage<XMLDocumentIdentifier>> msg)
public Set<? extends Node.NodeType> getAllTypes()
public Type.XPathType infer(TPath.Expr expr, Function<String,String> namespaceMappings, Function<NamespaceName,Type.XPathProperType> variables)
see also the complete user documentation .