|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.mtu.eggplant.dbc.AssertClass
Object to represent an instrumented class.
Constructor Summary | |
AssertClass(String name,
String packageName,
boolean isInterface,
AssertClass enclosingClass,
boolean isAnonymous,
String superclass,
List interfaces,
Map imports,
Set starImports)
If packageName is null, then it's in the default package. |
Method Summary | |
void |
addMethod(AssertMethod am)
Adds this method to the list of methods defined on this class. |
String |
createAnonymousClassName()
Create the name for the next anonymous class that is defined inside this class. |
String |
createDummyConstructorClassName()
Create the name for a dummy class for the next constructors pre conditions. |
AssertClass |
getEnclosingClass()
|
String |
getFullName()
|
Map |
getImports()
The Map of imports from the file this class is defined in. |
List |
getInterfaces()
The List of interfaces implemented/extended by this class/interface, in the order that they are declared on the implements line. |
List |
getInvariants()
List of invariants for this class, ordered as they appear in the code. |
Set |
getMethods()
|
String |
getName()
|
String |
getPackage()
|
Set |
getStarImports()
The Set of star imports from the file this class is defined in. |
String |
getSuperclass()
|
boolean |
isAnonymous()
|
boolean |
isInterface()
|
void |
setInvariants(List invariants)
List of invariants for this class, ordered as they appear in the code. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AssertClass(String name, String packageName, boolean isInterface, AssertClass enclosingClass, boolean isAnonymous, String superclass, List interfaces, Map imports, Set starImports)
name
- the simple name of this classpackageName
- the name of hte package this class is inisInterface
- true if this class represents an interfaceenclosingClass
- the enclosing class, this can not be another
anonymous class, null if this is the outermost classisAnonymous
- true if this class represents an anonymous classsuperclass
- name of the superclass, null if none listed in the .java fileinterfaces
- list of interfaces implemented, this is where the list
of extended interfaces appear if this object represents an interface itself.
These names may not be fully qualified. They should be checked against the
imports list.imports
- map of imports for this class key = package, value = class/nullstarImports
- Set of star importsMethod Detail |
public final List getInterfaces()
public final Map getImports()
public final Set getStarImports()
public final String getSuperclass()
public final AssertClass getEnclosingClass()
public final boolean isAnonymous()
public final boolean isInterface()
public final String getName()
getName
in interface net.mtu.eggplant.util.Named
public final String getFullName()
public final String getPackage()
public final void addMethod(AssertMethod am)
public final Set getMethods()
public String toString()
public final void setInvariants(List invariants)
public final List getInvariants()
public final String createAnonymousClassName()
public final String createDummyConstructorClassName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |