Package eu.bandm.tools.metajava
Class GeneratedProcedure
java.lang.Object
eu.bandm.tools.metajava.GeneratedAnnotationTarget
eu.bandm.tools.metajava.GeneratedDeclaration
eu.bandm.tools.metajava.GeneratedMember
eu.bandm.tools.metajava.GeneratedProcedure
- All Implemented Interfaces:
GeneratedCode
,MetaModifiable
,MetaProcedure
- Direct Known Subclasses:
GeneratedConstructor
,GeneratedMethod
public abstract class GeneratedProcedure
extends GeneratedMember
implements MetaProcedure, GeneratedCode
-
Field Summary
Fields inherited from class eu.bandm.tools.metajava.GeneratedMember
enclosing, name
-
Constructor Summary
ModifierConstructorDescriptionprotected
GeneratedProcedure
(GeneratedClass enclosing, int modifiers, String name) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addExceptionType
(MetaClass exception) void
addExceptionType
(Class exception) addParameter
(int modifiers, MetaType type, String name) addParameter
(int modifiers, Class type, String name) addParameter
(GeneratedParameter newParameter) addParameter
(MetaType type, String name) addParameter
(Class type, String name) addParameterEllipsis
(MetaType type, String name) addParameterEllipsis
(Class type, String name) void
addStatement
(Format statement) void
addStatement
(String template, Formattable... args) void
void
getCode()
getParameter
(int index) Methods inherited from class eu.bandm.tools.metajava.GeneratedMember
addTypeVariable, addTypeVariable, getEnclosingClass, getName, getTypeVariables
Methods inherited from class eu.bandm.tools.metajava.GeneratedDeclaration
getModifiers, setModifiers
Methods inherited from class eu.bandm.tools.metajava.GeneratedAnnotationTarget
addAnnotation, addAnnotation, addAnnotation, addComment, getAnnotations, getComments, getRawComments, hasMetadata
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface eu.bandm.tools.metajava.MetaModifiable
getModifiers
-
Field Details
-
statements
-
-
Constructor Details
-
GeneratedProcedure
-
-
Method Details
-
addParameter
-
addParameter
-
addParameter
-
addParameter
-
addParameter
-
addParameterEllipsis
-
addParameterEllipsis
-
getParameters
-
getParameter
-
getParameterTypes
- Specified by:
getParameterTypes
in interfaceMetaProcedure
-
addTypeParameter
-
getTypeParameters
-
addExceptionType
-
addExceptionType
-
getExceptionTypes
- Specified by:
getExceptionTypes
in interfaceMetaProcedure
-
addStatement
- Specified by:
addStatement
in interfaceGeneratedCode
-
addStatement
- Specified by:
addStatement
in interfaceGeneratedCode
-
getStatements
-
clearStatements
public void clearStatements() -
getCode
-