|
Dresden OCL Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttudresden.ocl.injection.JavaFeature
Represents a java feature. May be a class (even an inner class), an attribute or a method.
Field Summary | |
private JavaFile |
file
The java file, which contains this feature. |
private int |
modifiers
The modifiers of this feature. |
protected String |
name
|
private JavaClass |
parent
The class, which contains this feature. |
protected String |
type
The return type of the method. |
Constructor Summary | |
JavaFeature(JavaFile file,
JavaClass parent,
int modifiers,
String type,
String name)
|
Method Summary | |
abstract int |
getAllowedModifiers()
Subclasses use this method to specify, which modifiers are allowed for the specific kind of feature. |
JavaFile |
getFile()
Returns the java file, which contains this feature. |
int |
getModifiers()
Returns the modifiers of this feature. |
String |
getName()
|
String |
getPackageName()
Returns the package of the file containing this feature. |
JavaClass |
getParent()
Returns the class, which contains this feature. |
String |
getType()
The return type of the method. |
boolean |
isAbstract()
|
boolean |
isStatic()
|
void |
print(PrintStream o)
|
void |
printMore(PrintStream o)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private JavaFile file
private JavaClass parent
private int modifiers
Modifier
protected String type
protected String name
Constructor Detail |
public JavaFeature(JavaFile file, JavaClass parent, int modifiers, String type, String name) throws InjectorParseException
Method Detail |
public final JavaFile getFile()
public final String getPackageName()
public final JavaClass getParent()
public final int getModifiers()
Modifier
public abstract int getAllowedModifiers()
public final boolean isStatic()
public final boolean isAbstract()
public final String getType()
public final String getName()
public final void print(PrintStream o)
public void printMore(PrintStream o)
|
Dresden OCL Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |