koala.dynamicjava.tree
Class EnumDeclaration

java.lang.Object
  extended by koala.dynamicjava.tree.Node
      extended by koala.dynamicjava.tree.Declaration
          extended by koala.dynamicjava.tree.TypeDeclaration
              extended by koala.dynamicjava.tree.ClassDeclaration
                  extended by koala.dynamicjava.tree.EnumDeclaration
All Implemented Interfaces:
SourceInfo.Wrapper

public class EnumDeclaration
extends ClassDeclaration

This class represents an enum declaration

Author:
Moez, Shankar

Nested Class Summary
static class EnumDeclaration.EnumBody
           
static class EnumDeclaration.EnumConstant
           
 
Constructor Summary
EnumDeclaration(ModifierSet mods, java.lang.String name, java.util.List<? extends ReferenceTypeName> impl, EnumDeclaration.EnumBody body)
          Creates a new enum declaration
EnumDeclaration(ModifierSet mods, java.lang.String name, java.util.List<? extends ReferenceTypeName> impl, EnumDeclaration.EnumBody body, SourceInfo si)
          Creates a new enum declaration
 
Method Summary
 
Methods inherited from class koala.dynamicjava.tree.ClassDeclaration
acceptVisitor, getSuperclass, setSuperclass, toString, 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

EnumDeclaration

public EnumDeclaration(ModifierSet mods,
                       java.lang.String name,
                       java.util.List<? extends ReferenceTypeName> impl,
                       EnumDeclaration.EnumBody body)
Creates a new enum declaration

Parameters:
mods - the modifiers
name - the name of the enum to declare
impl - the list of implemented interfaces (a list of list of Token). Can be null.
body - the list of members declarations

EnumDeclaration

public EnumDeclaration(ModifierSet mods,
                       java.lang.String name,
                       java.util.List<? extends ReferenceTypeName> impl,
                       EnumDeclaration.EnumBody body,
                       SourceInfo si)
Creates a new enum declaration

Parameters:
mods - the modifiers
name - the name of the enum to declare
impl - the list of implemented interfaces (a list of list of Token). Can be null.
body - the list of members declarations