| Modifier and Type | Method and Description |
|---|---|
Lambda |
addParameter(Class<?> type,
String name)
Adds a new formal parameter with the given class type and name to this
Lambda and returns this Lambda. |
Lambda |
addParameter(String name)
Adds a new formal parameter with the specified name.
|
Lambda |
addParameter(Type type,
String name)
Adds a new formal parameter with the given type and name to this
Lambda and returns this Lambda. |
Codeable |
applyStyle(Style style) |
<T> T |
cast(Class<T> clazz) |
Comment |
getComment()
Gets the comment for this
Codeable object. |
boolean |
isActive(Style style) |
boolean |
isBlockWithAbruptCompletion() |
Block |
newBodyBlock()
Creates a new Block as body of the
Lambda. |
Lambda |
setBody(Expression body)
Sets the body of the
Lambda (as an Expression). |
net.sourceforge.jenesis4java.impl.MVM.MCodeable |
setComment(int type,
String text)
Sets the comment to the given type and text.
|
CodeWriter |
toCode(CodeWriter out)
Renders the codeable object to the given writer and returns it.
|
String |
toString() |
void |
visit(ReplacingVisitor visitor)
walk through the code tree and allow every element to be exchanged.
|
VirtualMachine |
vm()
Returns the virtual machine to which this
Codeable object
belongs. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyStyle, cast, getComment, isActive, isBlockWithAbruptCompletion, setComment, vmpublic MLambda(MVM vm)
public Lambda addParameter(Class<?> type, String name)
LambdaLambda and returns this Lambda.addParameter in interface Lambdapublic Lambda addParameter(Type type, String name)
LambdaLambda and returns this Lambda.addParameter in interface LambdaLambdapublic Lambda addParameter(String name)
LambdaaddParameter in interface Lambdaname - name of the parameter.Lambdapublic Lambda setBody(Expression body)
LambdaLambda (as an Expression).public Block newBodyBlock()
LambdaLambda.newBodyBlock in interface LambdaBlock containing the (initially empty) body of the
Lambda.public CodeWriter toCode(CodeWriter out)
Codeablepublic void visit(ReplacingVisitor visitor)
Codeablepublic <T> T cast(Class<T> clazz)
public Comment getComment()
CodeableCodeable object.getComment in interface Codeablepublic boolean isBlockWithAbruptCompletion()
isBlockWithAbruptCompletion in interface Codeablepublic net.sourceforge.jenesis4java.impl.MVM.MCodeable setComment(int type,
String text)
CodeablesetComment in interface Codeablepublic VirtualMachine vm()
CodeableCodeable object
belongs.public Codeable applyStyle(Style style)
applyStyle in interface CodeableCopyright © 2000–2018 jenesis4java. All rights reserved.