com.croftsoft.apps.compiler.mini.node
Class NameMiniNode

java.lang.Object
  extended by com.croftsoft.apps.compiler.mini.node.AbstractMiniNode
      extended by com.croftsoft.apps.compiler.mini.node.NameMiniNode
All Implemented Interfaces:
ElementMiniNode, MiniNode

public class NameMiniNode
extends AbstractMiniNode
implements ElementMiniNode

Parse tree node for the Mini programming language.

Version:
1999-04-25
See Also:
MiniNode
Author:
David W. Croft

Field Summary
protected  String name
           
 
Constructor Summary
NameMiniNode(String name)
           
 
Method Summary
 void checkSemantics(Stack parentMiniNodeStack)
           
 boolean equals(Object other)
           
 void generate(MiniNodeCodeVisitor miniNodeCodeVisitor)
          Uses the Visitor design pattern to generate code.
 String getName()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected String name
Constructor Detail

NameMiniNode

public NameMiniNode(String name)
Method Detail

getName

public String getName()

generate

public void generate(MiniNodeCodeVisitor miniNodeCodeVisitor)
Description copied from interface: MiniNode
Uses the Visitor design pattern to generate code.
 miniNodeCodeVisitor.generate ( this );
 

Specified by:
generate in interface MiniNode

checkSemantics

public void checkSemantics(Stack parentMiniNodeStack)
                    throws SemanticErrorException
Specified by:
checkSemantics in interface MiniNode
Throws:
SemanticErrorException

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

CroftSoft Javadoc

CroftSoft Apps Javadoc (2008-09-28 21:15:07)