|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkoala.dynamicjava.tree.Node
koala.dynamicjava.tree.Declaration
koala.dynamicjava.tree.PackageDeclaration
public class PackageDeclaration
This class represents the package declarations
| Constructor Summary | |
|---|---|
PackageDeclaration(ModifierSet mods,
java.util.List<IdentifierToken> ident)
Creates a new package declaration node |
|
PackageDeclaration(ModifierSet mods,
java.util.List<IdentifierToken> ident,
SourceInfo si)
Creates a new package declaration node |
|
PackageDeclaration(ModifierSet mods,
java.lang.String nm,
SourceInfo si)
Creates a new package declaration node |
|
| Method Summary | ||
|---|---|---|
|
acceptVisitor(Visitor<T> visitor)
Allows a visitor to traverse the tree |
|
java.lang.String |
getName()
Returns the name of the imported class or package |
|
void |
setName(java.lang.String s)
Sets the name |
|
java.lang.String |
toString()
Implementation of toString for use in unit testing |
|
| Methods inherited from class koala.dynamicjava.tree.Declaration |
|---|
getModifiers, setModifiers |
| Methods inherited from class koala.dynamicjava.tree.Node |
|---|
archiveProperties, getProperties, getProperty, getSourceInfo, hasProperty, setProperty, setSourceInfo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PackageDeclaration(ModifierSet mods,
java.util.List<IdentifierToken> ident)
ident - a list of tokens that represents a package name.
The list can be null.
public PackageDeclaration(ModifierSet mods,
java.util.List<IdentifierToken> ident,
SourceInfo si)
ident - a list of tokens that represents a package name.
The list can be null.
public PackageDeclaration(ModifierSet mods,
java.lang.String nm,
SourceInfo si)
nm - a string that represents a package name.| Method Detail |
|---|
public java.lang.String getName()
public void setName(java.lang.String s)
java.lang.IllegalArgumentException - if s is nullpublic <T> T acceptVisitor(Visitor<T> visitor)
acceptVisitor in class Nodevisitor - the visitor to acceptpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||