public interface SourceLambdaExpression extends SourceExpression
EMPTY_ARRAYCHILDREN_ALL, CHILDREN_BLANKLINES, CHILDREN_COMMENTS, CHILDREN_default, CHILDREN_none, CHILDREN_REGULAR, PRINT_ALL, REFORMAT_ALL, REFORMAT_INDENT| Modifier and Type | Method and Description |
|---|---|
SourceElement |
getBody()
Get the body of this lambda expression, which can be either a SourceExpression or
a SourceBlock.
|
SourceFormalParameterList |
getFormalParameterList()
Get the formal parameter list.
|
java.util.List<SourceLambdaParameter> |
getFormalParameters()
Get the formal parameters.
|
JavaType[] |
getFormalParameterTypes()
Get the formal parameter types.
|
JavaType |
getResolvedType()
Get the resolved type of this lambda expression, which is its return type.
|
JavaMethod |
getTargetMethod()
Get the method that is the target of this lambda expression IFF the target
of this lambda expression is a method in a functional interface.
|
JavaType |
getTargetType()
Get the functional interface whose abstract method this lambda expression
implements.
|
boolean |
hasFormalParameters()
Determine if this lambda expression has formal parameters, either inferred or typed.
|
boolean |
hasInferredFormalParameters()
Determine if this lambda expression has inferred formal parameters.
|
getConstantValue, getExpressionCode, getFirstOperand, getOperandAt, getOperandCount, getOperands, getOperatorCode, getSecondOperand, getThirdOperandaddSelf, addSelf, addSelfAfter, addSelfBefore, adjustTextIndentation, clearBinding, cloneSelf, compile, createContext, getBinding, getChildren, getChildren, getCompiledObject, getContainedElements, getContext, getEndOffset, getFirstToken, getJdkVersion, getLastToken, getOwningFile, getOwningSourceFile, getParent, getSiblingAfter, getSiblingAfter, getSiblingBefore, getSiblingBefore, getSiblings, getSiblings, getStartOffset, getSymbolKind, getText, getTokens, getTokens, hasErrors, print, print, print, print, reformatSelf, removeSelf, replaceSelf, resolve, setBinding, setContext, visitSelfgetCompiledObject, getResolvedObjectgetUnresolvedTypegetElementKind, getFile, getModifiers, getOwner, getSourceElement, isDeprecated, isFinal, isHidden, isSourceElement, isSynthetic, printCompiledInfoSourceElement getBody()
SourceFormalParameterList getFormalParameterList()
java.util.List<SourceLambdaParameter> getFormalParameters()
JavaType[] getFormalParameterTypes()
boolean hasFormalParameters()
boolean hasInferredFormalParameters()
JavaMethod getTargetMethod()
JavaType getTargetType()
JavaType getResolvedType()
getResolvedType in interface JavaHasType