|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xalan.xsltc.compiler.SymbolTable
final class SymbolTable
Field Summary | |
---|---|
private java.util.Hashtable |
_aliases
|
private java.util.Hashtable |
_attributeSets
|
private SyntaxTreeNode |
_current
Use a namespace prefix to lookup a namespace URI |
private java.util.Hashtable |
_decimalFormats
|
private java.util.Hashtable |
_excludedURI
|
private java.util.Stack |
_excludedURIStack
|
private java.util.Hashtable |
_keys
|
private int |
_nsCounter
This is used for xsl:attribute elements that have a "namespace" attribute that is currently not defined using xmlns: |
private java.util.Hashtable |
_primops
|
private java.util.Hashtable |
_stylesheets
|
private java.util.Hashtable |
_templates
|
private java.util.Hashtable |
_variables
|
Constructor Summary | |
---|---|
SymbolTable()
|
Method Summary | |
---|---|
AttributeSet |
addAttributeSet(AttributeSet atts)
|
void |
addDecimalFormatting(QName name,
DecimalFormatting symbols)
|
void |
addKey(QName name,
Key key)
|
Param |
addParam(Param parameter)
|
void |
addPrefixAlias(java.lang.String prefix,
java.lang.String alias)
Adds an alias for a namespace prefix |
void |
addPrimop(java.lang.String name,
MethodType mtype)
Add a primitive operator or function to the symbol table. |
Stylesheet |
addStylesheet(QName name,
Stylesheet node)
|
Template |
addTemplate(Template template)
|
Variable |
addVariable(Variable variable)
|
void |
excludeNamespaces(java.lang.String prefixes)
Exclude a series of namespaces given by a list of whitespace separated namespace prefixes. |
void |
excludeURI(java.lang.String uri)
Register a namespace URI so that it will not be declared in the output unless it is actually referenced in the output. |
java.lang.String |
generateNamespacePrefix()
|
DecimalFormatting |
getDecimalFormatting(QName name)
|
Key |
getKey(QName name)
|
boolean |
isExcludedNamespace(java.lang.String uri)
Check if a namespace should not be declared in the output (unless used) |
AttributeSet |
lookupAttributeSet(QName name)
|
SyntaxTreeNode |
lookupName(QName qname)
|
java.lang.String |
lookupNamespace(java.lang.String prefix)
|
Param |
lookupParam(QName qname)
|
java.lang.String |
lookupPrefixAlias(java.lang.String prefix)
Retrieves any alias for a given namespace prefix |
java.util.Vector |
lookupPrimop(java.lang.String name)
Lookup a primitive operator or function in the symbol table by prepending the prefix PrimopPrefix. |
Stylesheet |
lookupStylesheet(QName name)
|
Template |
lookupTemplate(QName name)
|
Variable |
lookupVariable(QName qname)
|
void |
popExcludedNamespacesContext()
Exclusion of namespaces by a stylesheet does not extend to any stylesheet imported or included by the stylesheet. |
void |
pushExcludedNamespacesContext()
Exclusion of namespaces by a stylesheet does not extend to any stylesheet imported or included by the stylesheet. |
void |
setCurrentNode(SyntaxTreeNode node)
|
void |
unExcludeNamespaces(java.lang.String prefixes)
Turn of namespace declaration exclusion |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final java.util.Hashtable _stylesheets
private final java.util.Hashtable _primops
private java.util.Hashtable _variables
private java.util.Hashtable _templates
private java.util.Hashtable _attributeSets
private java.util.Hashtable _aliases
private java.util.Hashtable _excludedURI
private java.util.Stack _excludedURIStack
private java.util.Hashtable _decimalFormats
private java.util.Hashtable _keys
private int _nsCounter
private SyntaxTreeNode _current
Constructor Detail |
---|
SymbolTable()
Method Detail |
---|
public DecimalFormatting getDecimalFormatting(QName name)
public void addDecimalFormatting(QName name, DecimalFormatting symbols)
public Key getKey(QName name)
public void addKey(QName name, Key key)
public Stylesheet addStylesheet(QName name, Stylesheet node)
public Stylesheet lookupStylesheet(QName name)
public Template addTemplate(Template template)
public Template lookupTemplate(QName name)
public Variable addVariable(Variable variable)
public Param addParam(Param parameter)
public Variable lookupVariable(QName qname)
public Param lookupParam(QName qname)
public SyntaxTreeNode lookupName(QName qname)
public AttributeSet addAttributeSet(AttributeSet atts)
public AttributeSet lookupAttributeSet(QName name)
public void addPrimop(java.lang.String name, MethodType mtype)
public java.util.Vector lookupPrimop(java.lang.String name)
public java.lang.String generateNamespacePrefix()
public void setCurrentNode(SyntaxTreeNode node)
public java.lang.String lookupNamespace(java.lang.String prefix)
public void addPrefixAlias(java.lang.String prefix, java.lang.String alias)
public java.lang.String lookupPrefixAlias(java.lang.String prefix)
public void excludeURI(java.lang.String uri)
public void excludeNamespaces(java.lang.String prefixes)
public boolean isExcludedNamespace(java.lang.String uri)
public void unExcludeNamespaces(java.lang.String prefixes)
public void pushExcludedNamespacesContext()
popExcludedNamespacesContext()
.
public void popExcludedNamespacesContext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |