Dresden OCL Toolkit

tudresden.ocl.injection
Class JavaMethod

java.lang.Object
  extended bytudresden.ocl.injection.JavaFeature
      extended bytudresden.ocl.injection.JavaBehaviour
          extended bytudresden.ocl.injection.JavaMethod

public final class JavaMethod
extends JavaBehaviour

Represents a method of a class parsed by the java parser.

See Also:
Injector

Field Summary
private  int name_end
          The index of the end of the feature name in JavaBehaviour.literal.
private  String signature
          A cache for getSignature.
private  int wrapper_appendix
          The length of the wrapper appendix on the method name, or -1 if the method was not wrapped.
static String WRAPPER_SUFFIX
           
 
Fields inherited from class tudresden.ocl.injection.JavaBehaviour
literal, parameters, unmodifiableParameters
 
Fields inherited from class tudresden.ocl.injection.JavaFeature
name, type
 
Constructor Summary
JavaMethod(JavaClass parent, int modifiers, String type, String name, int name_end)
           
 
Method Summary
private static String cleanName(String n)
           
 int getAllowedModifiers()
          See Java Specification 8.4.3 "Method Modifiers"
private  String getSignature()
          Returns the signature of this method.
 String getWrappedLiteral()
           
 String getWrappedName()
           
 void printMore(PrintStream o)
           
 void setLiteral(String literal)
           
 
Methods inherited from class tudresden.ocl.injection.JavaBehaviour
addParameter, addThrowable, getLiteral, getParameters, getThrowables, setLastParameterEnd, setLastParameterStart
 
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
 

Field Detail

WRAPPER_SUFFIX

public static final String WRAPPER_SUFFIX
See Also:
Constant Field Values

name_end

private int name_end
The index of the end of the feature name in JavaBehaviour.literal. Needed for getWrappedLiteral().


wrapper_appendix

private int wrapper_appendix
The length of the wrapper appendix on the method name, or -1 if the method was not wrapped.


signature

private String signature
A cache for getSignature.

See Also:
getSignature()
Constructor Detail

JavaMethod

public JavaMethod(JavaClass parent,
                  int modifiers,
                  String type,
                  String name,
                  int name_end)
           throws InjectorParseException
Method Detail

cleanName

private static final String cleanName(String n)

setLiteral

public final void setLiteral(String literal)
Overrides:
setLiteral in class JavaBehaviour

getWrappedName

public final String getWrappedName()

getWrappedLiteral

public final String getWrappedLiteral()
Specified by:
getWrappedLiteral in class JavaBehaviour

getSignature

private String getSignature()
Returns the signature of this method.


getAllowedModifiers

public final int getAllowedModifiers()
See Java Specification 8.4.3 "Method Modifiers"

Specified by:
getAllowedModifiers in class JavaFeature

printMore

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

Dresden OCL Toolkit

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