Modifier and Type | Field and Description |
---|---|
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
|
Constructor and Description |
---|
Class_(int lineNum,
java.lang.String filename,
java.lang.String name,
java.lang.String parent,
MemberList memberList)
Class_ constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
accept(visitor.Visitor v,
java.lang.Object o)
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
|
getLineNum
protected java.lang.String filename
protected java.lang.String name
protected java.lang.String parent
protected MemberList memberList
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 memberspublic java.lang.String getFilename()
public java.lang.String getName()
public java.lang.String getParent()
public MemberList getMemberList()