| xtc.parser.Element xtc.parser.NonTerminal
NonTerminal | public class NonTerminal extends Element (Code) | | A nonterminal.
author: Robert Grimm version: $Revision: 1.22 $ |
Constructor Summary | |
public | NonTerminal(String name) Create a new nonterminal with the specified name. | public | NonTerminal(NonTerminal nt) Create a new nonterminal that is a copy of the specified
nonterminal. |
NonTerminal | public NonTerminal(String name)(Code) | | Create a new nonterminal with the specified name.
Parameters: name - The name. |
NonTerminal | public NonTerminal(NonTerminal nt)(Code) | | Create a new nonterminal that is a copy of the specified
nonterminal.
Parameters: nt - The nonterminal. |
getQualifier | public String getQualifier()(Code) | | Get this nonterminal's qualifier. If this nonterminal is
qualified, this method returns the qualifier. Otherwise, it
returns null .
The qualifier. |
hashCode | public int hashCode()(Code) | | |
isQualified | public boolean isQualified()(Code) | | Determine whether this nonterminal is qualified.
true if this nonterminal is qualified. |
qualify | public NonTerminal qualify(String module)(Code) | | Qualify this nonterminal. If this nonterminal is not qualified,
this method returns a new nonterminal representing a fully
qualified name. Otherwise, it returns this nonterminal.
Parameters: module - The module name. The corresponding, qualified nonterminal. |
rename | public NonTerminal rename(ModuleMap renaming)(Code) | | Rename this nonterminal. If this nonterminal is qualified and
the qualifier is a key in the specified module map, this method
returns a new nonterminal with the mapping's value as the new
qualifier. The new nonterminal's
Constants.ORIGINALoriginal property is set to be this nonterminal's original name
(i.e., this nonterminal's original property if it has that
property or this nonterminal if it does not). Otherwise, this
method returns this nonterminal.
Parameters: renaming - The module map. The renamed nonterminal. |
toIdentifier | public String toIdentifier()(Code) | | Convert this nonterminal to the corresponding Java identifier.
The corresponding Java identifier. |
unqualify | public NonTerminal unqualify()(Code) | | Unqualify this nonterminal. If this nonterminal is qualified,
this method returns a new nonterminal representing the
unqualified name. Otherwise, it returns this nonterminal.
The corresponding, unqualified nonterminal. |
Methods inherited from xtc.parser.Element | abstract public Tag tag()(Code)(Java Doc)
|
|
|