Package org.jboss.jdeparser
Class JLambdaImpl
java.lang.Object
org.jboss.jdeparser.AbstractJExpr
org.jboss.jdeparser.JLambdaImpl
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BasicJBlock
private AbstractJExpr
private boolean
private ArrayList<JLambdaImpl.Param>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbody()
Get the lambda body as a block.Set the lambda body as an expression.Add a declared-type parameter to this lambda.Add an inferred-type parameter to this lambda.Add a declared-type parameter to this lambda.Add a declared-type parameter to this lambda.void
write
(SourceFileWriter writer) Methods inherited from class org.jboss.jdeparser.AbstractJExpr
_instanceof, _instanceof, _instanceof, _new, _new, _new, _newAnon, _newAnon, _newAnon, $v, and, band, bor, bxor, call, cast, cast, cast, comp, cond, div, eq, field, ge, gt, idx, idx, le, length, lshr, lt, minus, mod, ne, neg, not, of, or, paren, plus, prec, shl, shr, times
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jboss.jdeparser.JExpr
_instanceof, _instanceof, _instanceof, _new, _new, _new, _newAnon, _newAnon, _newAnon, $v, and, band, bor, bxor, call, cast, cast, cast, comp, cond, div, eq, field, ge, gt, idx, idx, le, length, lshr, lt, minus, mod, ne, neg, not, or, paren, plus, shl, shr, times
-
Field Details
-
blockBody
-
exprBody
-
hasInferred
private boolean hasInferred -
params
-
-
Constructor Details
-
JLambdaImpl
JLambdaImpl()
-
-
Method Details
-
param
Description copied from interface:JLambda
Add a declared-type parameter to this lambda. -
param
Description copied from interface:JLambda
Add a declared-type parameter to this lambda. -
param
Description copied from interface:JLambda
Add a declared-type parameter to this lambda. -
param
Description copied from interface:JLambda
Add an inferred-type parameter to this lambda. If one parameter is inferred, all will be, despite any declared parameter type. -
body
Description copied from interface:JLambda
Get the lambda body as a block. Clears any expression body. -
body
Description copied from interface:JLambda
Set the lambda body as an expression. Clears any block body or previously set expression body. -
write
- Specified by:
write
in interfaceWritable
- Throws:
IOException
-