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

Quick Search    Search Deep

classgen.syntax
Class Method  view Method download Method.java

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

public class Method
extends java.lang.Object
implements SyntaxNode


Field Summary
private  java.lang.String className
           
private  LineList lines
           
private  SyntaxNode parent
           
 
Constructor Summary
Method(java.lang.String className, LineList lines)
           
 
Method Summary
 void accept(Visitor visitor)
           
 void childrenAccept(Visitor visitor)
           
 java.lang.String getClassName()
           
 LineList getLines()
           
 SyntaxNode getParent()
           
 void setClassName(java.lang.String className)
           
 void setLines(LineList lines)
           
 void setParent(SyntaxNode parent)
           
 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

className

private java.lang.String className

lines

private LineList lines
Constructor Detail

Method

public Method(java.lang.String className,
              LineList lines)
Method Detail

getClassName

public java.lang.String getClassName()

setClassName

public void setClassName(java.lang.String className)

getLines

public LineList getLines()

setLines

public void setLines(LineList lines)

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)