public final class DeclarationC extends CommandBase
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
Name |
Constructor and Description |
---|
DeclarationC(Declaration decl)
Create a "declaration" command.
|
Modifier and Type | Method and Description |
---|---|
static java.util.Vector<Symbol> |
getReferenced(java.util.Collection<Symbol> symbols,
Environment env)
Get value symbols from collection that are contained in environment.
|
static Command |
newCommand(org.w3c.dom.Node node)
Convert DOM node to command.
|
void |
printCore(java.io.PrintWriter out)
Prints text representation on out (without new line termination).
|
void |
process()
Process declaration.
|
void |
process(boolean display)
Process declaration.
|
getName, toCommand, toNode, toString
public static final java.lang.String Name
public DeclarationC(Declaration decl)
decl
- the declaration to be processedpublic void process()
public void process(boolean display)
display
- true iff declaration is to be displayed.public static java.util.Vector<Symbol> getReferenced(java.util.Collection<Symbol> symbols, Environment env)
symbols
- a collection of Symbol values.env
- the environmentpublic static Command newCommand(org.w3c.dom.Node node)
node
- the DOM representation of the command.public void printCore(java.io.PrintWriter out)
printCore
in class CommandBase
out
- the stream on which the text is written