|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jac.ide.ModelElement | +--org.objectweb.jac.ide.Type | +--org.objectweb.jac.ide.Class
This class represents a class meta element.
Constructor Summary | |
Class()
|
Method Summary | |
void |
addConstructor(Constructor c)
|
void |
addField(Field f)
|
void |
addImport(String _import)
|
void |
addInterface(Interface _interface)
|
void |
addMainMethod()
Adds a "public static void main(String[] parameters)" method |
void |
addMethod(Method m)
|
void |
addMethodIntf(Method m)
|
Field |
findField(String name)
Finds a field with a given name |
Method |
findMethod(Method method)
Finds a method with the same name and the same parameter types as a given method. |
Method |
findMethod(String name,
List parameters)
Finds a method with a given name and parameters |
List |
getAbstractMethods()
|
List |
getAllFields()
Returns all fields, including inherited ones |
List |
getAllMethods()
Gets al methods, including specific getter,setters,adders,removers and clearers. |
Collection |
getAllNavigableRoles()
Gets all navigable roles, including those form inherited classes. |
Package |
getContainer()
Get the value of container. |
List |
getFields()
Get the value of fields. |
String |
getFullName()
Defines a redefinable method to get the full name. |
String |
getGenerationFullName()
Gets full name to use for code generation. |
String |
getGenerationName()
Gets name to use for code generation. |
List |
getImports()
|
List |
getInheritedMethods()
|
Set |
getInterfaces()
|
List |
getMethods()
Get the value of methods. |
Collection |
getNavigableRoles()
Gets navigable roles |
Project |
getProject()
|
Collection |
getReferenceRoles()
Gets all navigable reference roles (whose cardinality is 1 or 0-1), including those form inherited classes. |
Collection |
getRelationLinks()
|
Collection |
getRelationRoles()
|
Type |
getSuperClass()
Get the value of superClass. |
HandlerResult |
gotoLine(DisplayContext context,
int lineNumber)
|
void |
implementInterface(Interface intf)
Adds the necessary fields and methods to implement a interface |
void |
implementMethod(Method method)
Adds an implementation for an abstract method |
boolean |
isAbstract()
|
void |
overrideMethod(Method method)
Adds an overriding method |
void |
removeField(Field f)
|
void |
removeImport(String _import)
|
void |
removeInterface(Interface _interface)
|
void |
removeMethod(Method m)
|
void |
removeMethodIntf(Method m)
|
void |
setAbstract(boolean value)
|
void |
setContainer(Package v)
Set the value of container. |
void |
setSuperClass(Type v)
Set the value of superClass. |
Methods inherited from class org.objectweb.jac.ide.Type |
getPackagePath, isPrimitive, setPackagePath |
Methods inherited from class org.objectweb.jac.ide.ModelElement |
addConfigItem, addEndingLink, addLink, getConfigItems, getDescription, getEndingLinks, getLinks, getName, getType, remove, removeEndingLink, removeLink, setDescription, setEndingLinks, setLinks, setName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Class()
Method Detail |
public String getGenerationName()
ModelElement
getGenerationName
in class ModelElement
public Type getSuperClass()
public void setSuperClass(Type v)
v
- Value to assign to superClass.public Field findField(String name)
name
- field name
public List getFields()
public void addField(Field f)
public void removeField(Field f)
public List getAllFields()
public List getMethods()
public void addMethod(Method m)
public void removeMethod(Method m)
public void addConstructor(Constructor c)
public List getAllMethods()
public List getInheritedMethods()
public List getAbstractMethods()
public Method findMethod(String name, List parameters)
name
- method nameparameters
- the types of the parameters.
findMethod(Method)
public Method findMethod(Method method)
method
- method whose name and parameter types must match
findMethod(String,List)
public void addMethodIntf(Method m)
public void removeMethodIntf(Method m)
public void addMainMethod()
public Package getContainer()
public void setContainer(Package v)
v
- Value to assign to container.public String getFullName()
ModelElement
getName()
method.
getFullName
in class Type
public String getGenerationFullName()
ModelElement
getGenerationFullName
in class ModelElement
public Collection getNavigableRoles()
public Collection getAllNavigableRoles()
public Collection getReferenceRoles()
public Collection getRelationRoles()
public Collection getRelationLinks()
public Project getProject()
public List getImports()
public void addImport(String _import)
public void removeImport(String _import)
public boolean isAbstract()
public void setAbstract(boolean value)
public Set getInterfaces()
public void addInterface(Interface _interface)
public void removeInterface(Interface _interface)
public void implementInterface(Interface intf)
intf
- the interface to implementpublic void overrideMethod(Method method)
method
- method to overridepublic void implementMethod(Method method)
method
- abstract method to implementpublic HandlerResult gotoLine(DisplayContext context, int lineNumber)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |