|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ConForM.CoopnTools.CoKer.PackageMgr.PackageElement
Package file elements. This abstract class essentially defines project file elements, i.e. elements arising in the text of project files. This class must de extended in immutable classes, by defining "equals", "toString(CoopnEnv)" and "clone" methods. In addition, for each textual attribute attr_i of type Attr_i, a private attribute variable must be defined, a constructor with parameters "(Attr_1 attr_1, ... , Attr_n attr_n)" must be defined, and n methods "Attr_i attr_i()" returning the value of the attribute must be defined.
Constructor Summary | |
PackageElement()
|
Method Summary | |
abstract java.lang.Object |
clone()
Cloning method. |
protected PackageElement |
clonePackageElement()
Internal cloning method. |
abstract boolean |
equals(java.lang.Object obj)
Equality method. |
abstract int |
hashCode()
Hashcode method. |
java.lang.String |
toCompleteString()
String conversion method. |
java.lang.String |
toCompleteString(CoopnEnv env)
String conversion method. |
java.lang.String |
toCompleteString(CoopnEnv env,
int indent)
String conversion method. |
java.lang.String |
toString()
String conversion method. |
java.lang.String |
toString(CoopnEnv env)
String conversion method. |
abstract java.lang.String |
toString(CoopnEnv env,
int indent)
String conversion method. |
abstract java.lang.Object |
unmodifiableCopy()
Copy the element into an unmodifiable structure. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PackageElement()
Method Detail |
public abstract boolean equals(java.lang.Object obj)
equals
in interface CoopnSyntacticElement
equals
in class java.lang.Object
obj
- the object to comparepublic abstract int hashCode()
hashCode
in interface CoopnSyntacticElement
hashCode
in class java.lang.Object
public abstract java.lang.String toString(CoopnEnv env, int indent)
toString
in interface CoopnSyntacticElement
env
- the environment deciding the form of the displayindent
- the identation factorpublic java.lang.String toString(CoopnEnv env)
toString
in interface CoopnSyntacticElement
env
- the environment deciding the form of the displaypublic java.lang.String toString()
toString
in interface CoopnSyntacticElement
toString
in class java.lang.Object
public java.lang.String toCompleteString(CoopnEnv env, int indent)
toCompleteString
in interface CoopnSyntacticElement
env
- the environment deciding the form of the display. A null
values indicates a default form.indent
- the identation factor. A zero value indicates no
indentation at all.public java.lang.String toCompleteString(CoopnEnv env)
toCompleteString
in interface CoopnSyntacticElement
env
- the environment deciding the form of the displaypublic java.lang.String toCompleteString()
toCompleteString
in interface CoopnSyntacticElement
public abstract java.lang.Object unmodifiableCopy()
protected PackageElement clonePackageElement()
public abstract java.lang.Object clone()
clone
in interface CoopnSyntacticElement
clone
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |