tudresden.ocl.injection
Class JavaMethod
java.lang.Object
tudresden.ocl.injection.JavaFeature
tudresden.ocl.injection.JavaBehaviour
tudresden.ocl.injection.JavaMethod
- public final class JavaMethod
- extends JavaBehaviour
Represents a method of a class parsed by the java parser.
- See Also:
Injector
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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()
JavaMethod
public JavaMethod(JavaClass parent,
int modifiers,
String type,
String name,
int name_end)
throws InjectorParseException
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
Submit a bug
Developed at the Dresden University of Technology.
This software is published under the GNU Lesser General Public License.