|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DesignIF
Interface for Design. A Design is a model for the facts extracted from .class file and source code.
Field Summary | |
---|---|
static java.lang.String |
FIELD_IDENTIFIER
|
static java.lang.String |
METHOD_IDENTIFIER
Identifiers for methods and fields. |
static java.lang.String |
STATIC_IDENTIFIER
|
Method Summary | |
---|---|
void |
addClassExtractedFromCode(java.lang.String className)
Adds a class that was extrated from code. |
void |
addRelation(Relation.TypesOfRelation type,
java.lang.String caller,
java.lang.String called)
Adds a new Relation on the Design . |
boolean |
containsEntity(java.lang.String entityName)
|
java.util.Set<ClassNode> |
getAllClassesFromCode()
Returns a Set containing Class objects that
represents all classes from code. |
java.util.Collection<PackageNode> |
getAllPackagesFromCode()
|
ClassNode |
getClass(java.lang.String className)
Returns a ClassEntity represented by the specified className. |
Entity |
getEntity(java.lang.String name)
Method that return the entity with the specified name. |
FieldNode |
getField(java.lang.String fieldName)
Returns a Field with the specified name. |
MethodNode |
getMethod(java.lang.String methodName)
Returns a Method with the specified name. |
PackageNode |
getPackage(java.lang.String fullyQualifiedNamePackage)
|
void |
packageExtracted(java.lang.String entity)
|
void |
resolveDependences()
Resolve all dependences between entities after extraction. |
void |
setParameters(java.lang.String m,
java.lang.String parameters)
|
void |
setReturnType(java.lang.String m,
java.lang.String returnType)
Put the retunrType value on return type of the specified method. |
void |
setVisibility(java.lang.String method,
Modifier visibility)
Put the visibility value on visibility of the specified method. |
Field Detail |
---|
static final java.lang.String METHOD_IDENTIFIER
static final java.lang.String STATIC_IDENTIFIER
static final java.lang.String FIELD_IDENTIFIER
Method Detail |
---|
void addRelation(Relation.TypesOfRelation type, java.lang.String caller, java.lang.String called)
Relation
on the Design
.
type
- the type of the Relation
.caller
- the caller of the Relation
.called
- the called of the Relation
.Entity getEntity(java.lang.String name) throws InexistentEntityException
entityName
- the name of the entity to be looked for.
InexistentEntityException
void addClassExtractedFromCode(java.lang.String className)
className
- the name of the class extracted.void setVisibility(java.lang.String method, Modifier visibility) throws InexistentEntityException
method
- visibility
-
InexistentEntityException
void setReturnType(java.lang.String m, java.lang.String returnType) throws InexistentEntityException
method
- visibility
-
InexistentEntityException
void setParameters(java.lang.String m, java.lang.String parameters) throws InexistentEntityException
InexistentEntityException
ClassNode getClass(java.lang.String className) throws InexistentEntityException
className
- - the name of the class.
InexistentEntityException
FieldNode getField(java.lang.String fieldName) throws InexistentEntityException
fieldName
- the name of the field.
InexistentEntityException
MethodNode getMethod(java.lang.String methodName) throws InexistentEntityException
methodName
- the name of the method.
InexistentEntityException
java.util.Set<ClassNode> getAllClassesFromCode()
Set
containing Class
objects that
represents all classes from code.
void resolveDependences()
java.util.Collection<PackageNode> getAllPackagesFromCode()
void packageExtracted(java.lang.String entity)
PackageNode getPackage(java.lang.String fullyQualifiedNamePackage) throws InexistentEntityException
InexistentEntityException
boolean containsEntity(java.lang.String entityName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |