Class ResolvedLambdaConstraintType
- java.lang.Object
-
- com.github.javaparser.resolution.types.ResolvedLambdaConstraintType
-
- All Implemented Interfaces:
ResolvedType
public class ResolvedLambdaConstraintType extends Object implements ResolvedType
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ResolvedLambdaConstraintTypeasConstraintType()static ResolvedLambdaConstraintTypebound(ResolvedType bound)Stringdescribe()ResolvedTypegetBound()booleanisAssignableBy(ResolvedType other)This method checks if ThisType t = new OtherType() would compile.booleanisConstraint()Is this a lambda constraint type?StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.github.javaparser.resolution.types.ResolvedType
arrayLevel, asArrayType, asPrimitive, asReferenceType, asTypeParameter, asTypeVariable, asUnionType, asWildcard, erasure, isArray, isInferenceVariable, isNull, isNumericType, isPrimitive, isReference, isReferenceType, isTypeVariable, isUnionType, isVoid, isWildcard, mention, replaceTypeVariables, replaceTypeVariables, solveGenericTypes, toDescriptor
-
-
-
-
Method Detail
-
describe
public String describe()
- Specified by:
describein interfaceResolvedType
-
getBound
public ResolvedType getBound()
-
isConstraint
public boolean isConstraint()
Description copied from interface:ResolvedTypeIs this a lambda constraint type?- Specified by:
isConstraintin interfaceResolvedType
-
asConstraintType
public ResolvedLambdaConstraintType asConstraintType()
- Specified by:
asConstraintTypein interfaceResolvedType
-
bound
public static ResolvedLambdaConstraintType bound(ResolvedType bound)
-
isAssignableBy
public boolean isAssignableBy(ResolvedType other)
Description copied from interface:ResolvedTypeThis method checks if ThisType t = new OtherType() would compile.- Specified by:
isAssignableByin interfaceResolvedType
-
-