|
||||||||||
| 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
koala.dynamicjava.tree.InterfaceDeclaration
public class InterfaceDeclaration
This class represents an interface declaration
| Constructor Summary | |
|---|---|
InterfaceDeclaration(ModifierSet mods,
boolean ann,
java.lang.String name,
java.util.List<? extends ReferenceTypeName> impl,
java.util.List<Node> body)
Creates a new interface declaration |
|
InterfaceDeclaration(ModifierSet mods,
boolean ann,
java.lang.String name,
java.util.List<? extends ReferenceTypeName> impl,
java.util.List<Node> body,
SourceInfo si)
Creates a new interface declaration |
|
InterfaceDeclaration(ModifierSet mods,
boolean ann,
java.lang.String name,
Option<java.util.List<TypeParameter>> tparams,
java.util.List<? extends ReferenceTypeName> impl,
java.util.List<Node> body)
Creates a new interface declaration |
|
InterfaceDeclaration(ModifierSet mods,
boolean ann,
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 interface declaration |
|
| Method Summary | ||
|---|---|---|
|
acceptVisitor(Visitor<T> visitor)
Allows a visitor to traverse the tree |
|
boolean |
isAnnotation()
Whether this is an annotation declaration. |
|
void |
setIsAnnotation(boolean ann)
Sets whether this is an annotation declaration. |
|
java.lang.String |
toString()
Implementation of toString for use in unit testing |
|
protected java.lang.String |
toStringHelper()
|
|
| Methods inherited from class koala.dynamicjava.tree.TypeDeclaration |
|---|
getInterfaces, getMembers, getName, getTypeParams, setInterfaces, setMembers, setName, setTypeArgs, setTypeArgs |
| 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 InterfaceDeclaration(ModifierSet mods,
boolean ann,
java.lang.String name,
Option<java.util.List<TypeParameter>> tparams,
java.util.List<? extends ReferenceTypeName> impl,
java.util.List<Node> body)
mods - the modifiersann - whether this is an annotationname - the name of the interface to declaretparams - type parametersimpl - the list of implemented interfaces. Can be null.body - the list of fields declarations
public InterfaceDeclaration(ModifierSet mods,
boolean ann,
java.lang.String name,
java.util.List<? extends ReferenceTypeName> impl,
java.util.List<Node> body)
mods - the modifiersann - whether this is an annotationname - the name of the interface to declareimpl - the list of implemented interfaces. Can be null.body - the list of fields declarations
public InterfaceDeclaration(ModifierSet mods,
boolean ann,
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 modifiersann - whether this is an annotationname - the name of the interface to declaretparams - type parametersimpl - the list of implemented interfaces. Can be null.body - the list of fields declarations
public InterfaceDeclaration(ModifierSet mods,
boolean ann,
java.lang.String name,
java.util.List<? extends ReferenceTypeName> impl,
java.util.List<Node> body,
SourceInfo si)
mods - the modifiersann - whether this is an annotationname - the name of the interface to declareimpl - the list of implemented interfaces. Can be null.body - the list of fields declarations| Method Detail |
|---|
public boolean isAnnotation()
public void setIsAnnotation(boolean ann)
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.Objectprotected java.lang.String toStringHelper()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||