Class MethodWithStringBody
- java.lang.Object
-
- org.drools.modelcompiler.builder.generator.declaredtype.api.MethodWithStringBody
-
- All Implemented Interfaces:
MethodDefinition
public class MethodWithStringBody extends Object implements MethodDefinition
-
-
Constructor Summary
Constructors Constructor Description MethodWithStringBody(String methodName, String returnType, String body)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodWithStringBodyaddAnnotation(String name)MethodWithStringBodyaddParameter(String key, String value)List<AnnotationDefinition>getAnnotations()StringgetBody()StringgetMethodName()StringgetReturnType()booleanisPublic()booleanisStatic()List<MethodParameter>parameters()
-
-
-
Method Detail
-
getMethodName
public String getMethodName()
- Specified by:
getMethodNamein interfaceMethodDefinition
-
getReturnType
public String getReturnType()
- Specified by:
getReturnTypein interfaceMethodDefinition
-
getBody
public 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(String key, String value)
-
parameters
public List<MethodParameter> parameters()
- Specified by:
parametersin interfaceMethodDefinition
-
addAnnotation
public MethodWithStringBody addAnnotation(String name)
-
getAnnotations
public List<AnnotationDefinition> getAnnotations()
- Specified by:
getAnnotationsin interfaceMethodDefinition
-
-