public static class JCTree.JCLambda extends JCTree.JCFunctionalExpression implements LambdaExpressionTree
Modifier and Type | Class and Description |
---|---|
static class |
JCTree.JCLambda.ParameterKind |
JCTree.JCPolyExpression.PolyKind
JCTree.Factory, JCTree.JCAnnotatedType, JCTree.JCAnnotation, JCTree.JCArrayAccess, JCTree.JCArrayTypeTree, JCTree.JCAssert, JCTree.JCAssign, JCTree.JCAssignOp, JCTree.JCBinary, JCTree.JCBlock, JCTree.JCBreak, JCTree.JCCase, JCTree.JCCatch, JCTree.JCClassDecl, JCTree.JCCompilationUnit, JCTree.JCConditional, JCTree.JCContinue, JCTree.JCDoWhileLoop, JCTree.JCEnhancedForLoop, JCTree.JCErroneous, JCTree.JCExpression, JCTree.JCExpressionStatement, JCTree.JCFieldAccess, JCTree.JCForLoop, JCTree.JCFunctionalExpression, JCTree.JCIdent, JCTree.JCIf, JCTree.JCImport, JCTree.JCInstanceOf, JCTree.JCLabeledStatement, JCTree.JCLambda, JCTree.JCLiteral, JCTree.JCMemberReference, JCTree.JCMethodDecl, JCTree.JCMethodInvocation, JCTree.JCModifiers, JCTree.JCNewArray, JCTree.JCNewClass, JCTree.JCParens, JCTree.JCPolyExpression, JCTree.JCPrimitiveTypeTree, JCTree.JCReturn, JCTree.JCSkip, JCTree.JCStatement, JCTree.JCSwitch, JCTree.JCSynchronized, JCTree.JCThrow, JCTree.JCTry, JCTree.JCTypeApply, JCTree.JCTypeCast, JCTree.JCTypeIntersection, JCTree.JCTypeParameter, JCTree.JCTypeUnion, JCTree.JCUnary, JCTree.JCVariableDecl, JCTree.JCWhileLoop, JCTree.JCWildcard, JCTree.LetExpr, JCTree.Tag, JCTree.TypeBoundKind, JCTree.Visitor
LambdaExpressionTree.BodyKind
Modifier and Type | Field and Description |
---|---|
JCTree |
body |
boolean |
canCompleteNormally |
JCTree.JCLambda.ParameterKind |
paramKind |
List<JCTree.JCVariableDecl> |
params |
targets
polyKind
Constructor and Description |
---|
JCLambda(List<JCTree.JCVariableDecl> params,
JCTree body) |
Modifier and Type | Method and Description |
---|---|
void |
accept(JCTree.Visitor v)
Visit this tree with a given visitor.
|
<R,D> R |
accept(TreeVisitor<R,D> v,
D d)
Accept method used to implement the visitor pattern.
|
JCTree |
getBody() |
LambdaExpressionTree.BodyKind |
getBodyKind() |
Tree.Kind |
getKind()
Gets the kind of this tree.
|
List<? extends VariableTree> |
getParameters() |
JCTree.Tag |
getTag() |
JCTree.JCLambda |
setType(Type type)
Set type field and return this tree.
|
getDescriptorType
setPos
clone, getEndPosition, getPreferredPosition, getStartPosition, getTree, hasTag, pos, toString
public List<JCTree.JCVariableDecl> params
public JCTree body
public boolean canCompleteNormally
public JCTree.JCLambda.ParameterKind paramKind
public JCLambda(List<JCTree.JCVariableDecl> params, JCTree body)
public JCTree.Tag getTag()
public void accept(JCTree.Visitor v)
JCTree
public <R,D> R accept(TreeVisitor<R,D> v, D d)
Tree
public Tree.Kind getKind()
Tree
public JCTree getBody()
getBody
in interface LambdaExpressionTree
public List<? extends VariableTree> getParameters()
getParameters
in interface LambdaExpressionTree
public JCTree.JCLambda setType(Type type)
JCTree
setType
in class JCTree.JCExpression
public LambdaExpressionTree.BodyKind getBodyKind()
getBodyKind
in interface LambdaExpressionTree
Copyright © 2016. All rights reserved.