Class LambdaArgumentTypePlaceholder
- java.lang.Object
-
- com.github.javaparser.resolution.model.LambdaArgumentTypePlaceholder
-
- All Implemented Interfaces:
ResolvedType
public class LambdaArgumentTypePlaceholder extends Object implements ResolvedType
Placeholder used to represent a lambda argument type while it is being calculated.- Author:
- Federico Tomassetti
-
-
Constructor Summary
Constructors Constructor Description LambdaArgumentTypePlaceholder(int pos)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdescribe()booleanisArray()booleanisAssignableBy(ResolvedType other)This method checks if ThisType t = new OtherType() would compile.booleanisReferenceType()Can this be seen as a ReferenceTypeUsage?booleanisTypeVariable()voidsetMethod(SymbolReference<? extends ResolvedMethodLikeDeclaration> method)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.javaparser.resolution.types.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
-
-
-
-
Method Detail
-
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
public String describe()
- Specified by:
describein interfaceResolvedType
-
isTypeVariable
public boolean isTypeVariable()
- Specified by:
isTypeVariablein interfaceResolvedType
-
setMethod
public void setMethod(SymbolReference<? extends ResolvedMethodLikeDeclaration> method)
-
isAssignableBy
public boolean isAssignableBy(ResolvedType other)
Description copied from interface:ResolvedTypeThis method checks if ThisType t = new OtherType() would compile.- Specified by:
isAssignableByin interfaceResolvedType
-
-