Class MethodWithStringBody
- java.lang.Object
-
- org.drools.model.codegen.execmodel.generator.declaredtype.api.MethodWithStringBody
-
- All Implemented Interfaces:
MethodDefinition
public class MethodWithStringBody extends java.lang.Object implements MethodDefinition
-
-
Constructor Summary
Constructors Constructor Description MethodWithStringBody(java.lang.String methodName, java.lang.String returnType, java.lang.String body)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodWithStringBodyaddAnnotation(java.lang.String name)MethodWithStringBodyaddParameter(java.lang.String key, java.lang.String value)java.util.List<AnnotationDefinition>getAnnotations()java.lang.StringgetBody()java.lang.StringgetMethodName()java.lang.StringgetReturnType()booleanisPublic()booleanisStatic()java.util.List<MethodParameter>parameters()
-
-
-
Method Detail
-
getMethodName
public java.lang.String getMethodName()
- Specified by:
getMethodNamein interfaceMethodDefinition
-
getReturnType
public java.lang.String getReturnType()
- Specified by:
getReturnTypein interfaceMethodDefinition
-
getBody
public java.lang.String getBody()
- Specified by:
getBodyin interfaceMethodDefinition
-
isStatic
public boolean isStatic()
- Specified by:
isStaticin interfaceMethodDefinition
-
isPublic
public boolean isPublic()
- Specified by:
isPublicin interfaceMethodDefinition
-
addParameter
public MethodWithStringBody addParameter(java.lang.String key, java.lang.String value)
-
parameters
public java.util.List<MethodParameter> parameters()
- Specified by:
parametersin interfaceMethodDefinition
-
addAnnotation
public MethodWithStringBody addAnnotation(java.lang.String name)
-
getAnnotations
public java.util.List<AnnotationDefinition> getAnnotations()
- Specified by:
getAnnotationsin interfaceMethodDefinition
-
-