public class SrcMethod extends SrcObject
Constructor and Description |
---|
SrcMethod() |
Modifier and Type | Method and Description |
---|---|
SrcMethod |
addAnnotation(SrcAnnotation annotation) |
SrcMethod |
addException(String exception) |
SrcMethod |
addModifier(SrcModifier modifier) |
SrcMethod |
addParameter(SrcParameter parameter) |
SrcMethod |
addParameter(String type,
String name) |
SrcMethod |
addReplacement(String originString,
String replacementString) |
SrcExpression |
getBody() |
String |
getHeaderString() |
String |
getName() |
SrcMethod |
setBody(SrcExpression exp) |
SrcMethod |
setName(String name) |
SrcMethod |
setReturnType(String type) |
String |
toCodeString() |
String |
toJavaString() |
lineSeparator
public SrcMethod addAnnotation(SrcAnnotation annotation)
public SrcMethod addModifier(SrcModifier modifier)
public String getName()
public SrcMethod addParameter(SrcParameter parameter)
public SrcExpression getBody()
public SrcMethod setBody(SrcExpression exp)
public String toCodeString()
toCodeString
in class SrcObject
public String toJavaString()
toJavaString
in class SrcObject
public String getHeaderString()
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.