|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectast.ASTNode
ast.Class_
public class Class_
The Class_ class represents a class declaration, which consists of a filename (filename), a class name (name), the name of its parent class (parent), and a list of members (members) which can be either field declarations or method declarations.
ASTNode| Field Summary | |
|---|---|
protected java.lang.String |
filename
The filename of the file containing this class |
protected MemberList |
memberList
List of the class members |
protected java.lang.String |
name
The name of this class |
protected java.lang.String |
parent
The name of the parent of this class |
| Fields inherited from class ast.ASTNode |
|---|
charNum, lineNum, lineStr |
| Constructor Summary | |
|---|---|
Class_(int lineNum,
java.lang.String filename,
java.lang.String name,
java.lang.String parent,
MemberList memberList)
Class_ constructor |
|
| Method Summary | |
|---|---|
java.lang.Object |
accept(Visitor v)
Visitor method |
java.lang.String |
getFilename()
Get the filename of the file containing this class |
MemberList |
getMemberList()
Get list of members that this class contains |
java.lang.String |
getName()
Get the name of this class |
java.lang.String |
getParent()
Get the name of the parent of this class |
| Methods inherited from class ast.ASTNode |
|---|
getLineNum |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String filename
protected java.lang.String name
protected java.lang.String parent
protected MemberList memberList
| Constructor Detail |
|---|
public Class_(int lineNum,
java.lang.String filename,
java.lang.String name,
java.lang.String parent,
MemberList memberList)
lineNum - source line number corresponding to this AST nodefilename - the filename of the file containing this classname - the name of this classparent - the name of the parent of this classmemberList - a list of the class members| Method Detail |
|---|
public java.lang.String getFilename()
public java.lang.String getName()
public java.lang.String getParent()
public MemberList getMemberList()
public java.lang.Object accept(Visitor v)
accept in class ASTNodev - visitor object
Visitor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||