|
||||||||||
| 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.TypeDeclaration
public abstract class TypeDeclaration
This class represents a type declaration
| Constructor Summary | |
|---|---|
protected |
TypeDeclaration(ModifierSet mods,
java.lang.String name,
Option<java.util.List<TypeParameter>> tparams,
java.util.List<? extends ReferenceTypeName> impl,
java.util.List<Node> body,
SourceInfo si)
Creates a new class declaration |
| Method Summary | |
|---|---|
java.util.List<? extends ReferenceTypeName> |
getInterfaces()
Returns a list that contains the names (String) of the implemented interfaces. |
java.util.List<Node> |
getMembers()
Returns the list of the declared members |
java.lang.String |
getName()
Returns the name of this class |
Option<java.util.List<TypeParameter>> |
getTypeParams()
|
void |
setInterfaces(java.util.List<? extends ReferenceTypeName> l)
Sets the interfaces (a list of strings) |
void |
setMembers(java.util.List<Node> l)
Sets the members |
void |
setName(java.lang.String s)
Sets the type's name |
void |
setTypeArgs(java.util.List<TypeParameter> tparams)
|
void |
setTypeArgs(Option<java.util.List<TypeParameter>> tparams)
|
| Methods inherited from class koala.dynamicjava.tree.Declaration |
|---|
getModifiers, setModifiers |
| Methods inherited from class koala.dynamicjava.tree.Node |
|---|
acceptVisitor, archiveProperties, getProperties, getProperty, getSourceInfo, hasProperty, setProperty, setSourceInfo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected TypeDeclaration(ModifierSet mods,
java.lang.String name,
Option<java.util.List<TypeParameter>> tparams,
java.util.List<? extends ReferenceTypeName> impl,
java.util.List<Node> body,
SourceInfo si)
mods - the modifiersname - the name of the class to declaretparams - declared type parametersimpl - the list of implemented interfaces. Can be null.body - the list of fields declarations
java.lang.IllegalArgumentException - if name is null or body is null| Method Detail |
|---|
public java.lang.String getName()
public void setName(java.lang.String s)
java.lang.IllegalArgumentException - if s is nullpublic Option<java.util.List<TypeParameter>> getTypeParams()
public void setTypeArgs(java.util.List<TypeParameter> tparams)
public void setTypeArgs(Option<java.util.List<TypeParameter>> tparams)
public java.util.List<? extends ReferenceTypeName> getInterfaces()
public void setInterfaces(java.util.List<? extends ReferenceTypeName> l)
public java.util.List<Node> getMembers()
public void setMembers(java.util.List<Node> l)
java.lang.IllegalArgumentException - if l is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||