Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

classgen.syntax
Class Specification  view Specification download Specification.java

java.lang.Object
  extended byclassgen.syntax.Specification
All Implemented Interfaces:
SyntaxNode

public class Specification
extends java.lang.Object
implements SyntaxNode


Field Summary
private  AttribDeclList attributes
           
private  StringList classes
           
private  MethodList methodList
           
private  java.lang.String name
           
private  StringList nonTerminals
           
private  SyntaxNode parent
           
private  ProductionList productions
           
 
Constructor Summary
Specification(java.lang.String name, AttribDeclList attributes, ProductionList productions, MethodList methodList)
           
 
Method Summary
 void accept(Visitor visitor)
           
 void childrenAccept(Visitor visitor)
           
 AttribDeclList getAttributes()
           
 StringList getClasses()
           
 MethodList getMethodList()
           
 java.lang.String getName()
           
 StringList getNonTerminals()
           
 SyntaxNode getParent()
           
 ProductionList getProductions()
           
 void setAttributes(AttribDeclList attributes)
           
 void setClasses(StringList classes)
           
 void setMethodList(MethodList methodList)
           
 void setName(java.lang.String name)
           
 void setNonTerminals(StringList nonTerminals)
           
 void setParent(SyntaxNode parent)
           
 void setProductions(ProductionList productions)
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 java.lang.String toString(java.lang.String tab)
           
 void traverseBottomUp(Visitor visitor)
           
 void traverseTopDown(Visitor visitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

parent

private SyntaxNode parent

name

private java.lang.String name

attributes

private AttribDeclList attributes

productions

private ProductionList productions

methodList

private MethodList methodList

nonTerminals

private StringList nonTerminals

classes

private StringList classes
Constructor Detail

Specification

public Specification(java.lang.String name,
                     AttribDeclList attributes,
                     ProductionList productions,
                     MethodList methodList)
Method Detail

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getAttributes

public AttribDeclList getAttributes()

setAttributes

public void setAttributes(AttribDeclList attributes)

getProductions

public ProductionList getProductions()

setProductions

public void setProductions(ProductionList productions)

getMethodList

public MethodList getMethodList()

setMethodList

public void setMethodList(MethodList methodList)

getNonTerminals

public StringList getNonTerminals()

setNonTerminals

public void setNonTerminals(StringList nonTerminals)

getClasses

public StringList getClasses()

setClasses

public void setClasses(StringList classes)

getParent

public SyntaxNode getParent()
Specified by:
getParent in interface SyntaxNode

setParent

public void setParent(SyntaxNode parent)
Specified by:
setParent in interface SyntaxNode

accept

public void accept(Visitor visitor)
Specified by:
accept in interface SyntaxNode

childrenAccept

public void childrenAccept(Visitor visitor)
Specified by:
childrenAccept in interface SyntaxNode

traverseTopDown

public void traverseTopDown(Visitor visitor)
Specified by:
traverseTopDown in interface SyntaxNode

traverseBottomUp

public void traverseBottomUp(Visitor visitor)
Specified by:
traverseBottomUp in interface SyntaxNode

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).


toString

public java.lang.String toString(java.lang.String tab)