Class LambdaArgumentTypePlaceholder
java.lang.Object
com.github.javaparser.resolution.model.LambdaArgumentTypePlaceholder
- All Implemented Interfaces:
ResolvedType
Placeholder used to represent a lambda argument type while it is being
calculated.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SymbolReference<? extends ResolvedMethodLikeDeclaration> private int -
Constructor Summary
ConstructorsConstructorDescriptionLambdaArgumentTypePlaceholder(int pos) LambdaArgumentTypePlaceholder(int pos, int parameterCount, Optional<Boolean> bodyBlockHasExplicitNonVoidReturn) -
Method Summary
Modifier and TypeMethodDescriptiondescribe()booleanisArray()booleanisAssignableBy(ResolvedType other) This method checks if ThisType t = new OtherType() would compile.booleanCan this be seen as a ReferenceTypeUsage? In other words: is this a reference to a class, an interface or an enum?booleanvoidsetMethod(SymbolReference<? extends ResolvedMethodLikeDeclaration> method) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ResolvedType
arrayLevel, asArrayType, asConstraintType, asPrimitive, asReferenceType, asTypeParameter, asTypeVariable, asUnionType, asWildcard, erasure, isConstraint, isInferenceVariable, isNull, isNumericType, isPrimitive, isReference, isUnionType, isVoid, isWildcard, mention, replaceTypeVariables, replaceTypeVariables, solveGenericTypes, toDescriptor
-
Field Details
-
pos
private int pos -
parameterCount
-
bodyBlockHasExplicitNonVoidReturn
-
method
-
-
Constructor Details
-
LambdaArgumentTypePlaceholder
public LambdaArgumentTypePlaceholder(int pos) -
LambdaArgumentTypePlaceholder
-
-
Method Details
-
getParameterCount
-
bodyBlockHasExplicitNonVoidReturn
-
isArray
public boolean isArray()- Specified by:
isArrayin interfaceResolvedType- Returns:
- true, if this type represent an array - otherwise false.
-
isReferenceType
public boolean isReferenceType()Description copied from interface:ResolvedTypeCan this be seen as a ReferenceTypeUsage? In other words: is this a reference to a class, an interface or an enum?- Specified by:
isReferenceTypein interfaceResolvedType
-
describe
- Specified by:
describein interfaceResolvedType
-
isTypeVariable
public boolean isTypeVariable()- Specified by:
isTypeVariablein interfaceResolvedType
-
setMethod
-
isAssignableBy
Description copied from interface:ResolvedTypeThis method checks if ThisType t = new OtherType() would compile.- Specified by:
isAssignableByin interfaceResolvedType
-