Dresden OCL Toolkit

tudresden.ocl.injection
Class JavaClass

java.lang.Object
  extended bytudresden.ocl.injection.JavaFeature
      extended bytudresden.ocl.injection.JavaClass

public class JavaClass
extends JavaFeature

Represents a class parsed by the java parser. Is an inner class, if parent is not null.

See Also:
JavaFeature.getParent(), Injector

Field Summary
 
Fields inherited from class tudresden.ocl.injection.JavaFeature
name, type
 
Constructor Summary
JavaClass(JavaFile file, JavaClass parent, int modifiers, String name)
           
 
Method Summary
 int getAllowedModifiers()
          Subclasses use this method to specify, which modifiers are allowed for the specific kind of feature.
 String getFullName()
          Constructs the fully qualified name of this class, including package path.
 String getFullNameEscaped()
          Constructs the fully qualified name of this class, including package path.
 boolean isInterface()
           
 void printMore(PrintStream o)
           
 
Methods inherited from class tudresden.ocl.injection.JavaFeature
getFile, getModifiers, getName, getPackageName, getParent, getType, isAbstract, isStatic, print
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaClass

public JavaClass(JavaFile file,
                 JavaClass parent,
                 int modifiers,
                 String name)
          throws InjectorParseException
Method Detail

getFullName

public String getFullName()
Constructs the fully qualified name of this class, including package path.


getFullNameEscaped

public String getFullNameEscaped()
Constructs the fully qualified name of this class, including package path. The same as getFullName(), but without dots and dollars, so that this string can be used as part of a java identifier.


isInterface

public final boolean isInterface()

getAllowedModifiers

public final int getAllowedModifiers()
Description copied from class: JavaFeature
Subclasses use this method to specify, which modifiers are allowed for the specific kind of feature.

Specified by:
getAllowedModifiers in class JavaFeature

printMore

public final void printMore(PrintStream o)
Overrides:
printMore in class JavaFeature

Dresden OCL Toolkit

Submit a bug
Developed at the Dresden University of Technology.
This software is published under the GNU Lesser General Public License.