org.codehaus.gmaven.runtime.support.stubgen.model
Class ClassDef

java.lang.Object
  extended by org.codehaus.gmaven.runtime.support.stubgen.model.Element
      extended by org.codehaus.gmaven.runtime.support.stubgen.model.NamedElement
          extended by org.codehaus.gmaven.runtime.support.stubgen.model.Entity
              extended by org.codehaus.gmaven.runtime.support.stubgen.model.ClassDef
All Implemented Interfaces:
Serializable, JavaDocAware, ModifiersAware, NameAware
Direct Known Subclasses:
AnnotationDef, EnumDef, InterfaceDef

public class ClassDef
extends Entity

Representation of a class definition.

Version:
$Id: ClassDef.java 18 2009-07-16 09:39:40Z user57 $
Author:
Jason Dillon
See Also:
Serialized Form

Nested Class Summary
static class ClassDef.Type
          Psuedo-enum for class type.
 
Constructor Summary
  ClassDef()
           
protected ClassDef(ClassDef.Type type)
           
 
Method Summary
 void addConstructor(ConstructorDef def)
           
 void addField(FieldDef def)
           
 void addImplements(String type)
           
 void addImplements(TypeDef type)
           
 void addMethod(MethodDef def)
           
 Set getConstructors()
           
 Set getFields()
           
 Set getImplements()
           
 Set getImports()
           
 Set getMethods()
           
 PackageDef getPackage()
           
 SourceDef getParent()
           
 TypeDef getSuperClass()
           
 ClassDef.Type getType()
           
 boolean isAnnotation()
           
 boolean isEnum()
           
 boolean isInterface()
           
 void setParent(SourceDef parent)
           
 void setSuperClass(String type)
           
 void setSuperClass(TypeDef type)
           
 
Methods inherited from class org.codehaus.gmaven.runtime.support.stubgen.model.Entity
getJavaDoc, getModifiers, setJavaDoc, setJavaDoc
 
Methods inherited from class org.codehaus.gmaven.runtime.support.stubgen.model.NamedElement
getName, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassDef

public ClassDef()

ClassDef

protected ClassDef(ClassDef.Type type)
Method Detail

getParent

public SourceDef getParent()

setParent

public void setParent(SourceDef parent)

getType

public ClassDef.Type getType()

isInterface

public boolean isInterface()

isEnum

public boolean isEnum()

isAnnotation

public boolean isAnnotation()

getPackage

public PackageDef getPackage()

getImports

public Set getImports()

getSuperClass

public TypeDef getSuperClass()

setSuperClass

public void setSuperClass(TypeDef type)

setSuperClass

public void setSuperClass(String type)

addImplements

public void addImplements(TypeDef type)

addImplements

public void addImplements(String type)

getImplements

public Set getImplements()

addField

public void addField(FieldDef def)

getFields

public Set getFields()

addConstructor

public void addConstructor(ConstructorDef def)

addMethod

public void addMethod(MethodDef def)

getMethods

public Set getMethods()

getConstructors

public Set getConstructors()


Copyright © 2006-2012 Codehaus. All Rights Reserved.