Class ResolvedLambdaConstraintType
- java.lang.Object
-
- com.github.javaparser.resolution.types.ResolvedLambdaConstraintType
-
- All Implemented Interfaces:
ResolvedType
public class ResolvedLambdaConstraintType extends java.lang.Object implements ResolvedType
-
-
Field Summary
Fields Modifier and Type Field Description private ResolvedType
bound
-
Constructor Summary
Constructors Modifier Constructor Description private
ResolvedLambdaConstraintType(ResolvedType bound)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ResolvedLambdaConstraintType
asConstraintType()
static ResolvedLambdaConstraintType
bound(ResolvedType bound)
java.lang.String
describe()
ResolvedType
getBound()
boolean
isAssignableBy(ResolvedType other)
This method checks if ThisType t = new OtherType() would compile.boolean
isConstraint()
Is this a lambda constraint type?java.lang.String
toString()
-
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, isArray, isNull, isPrimitive, isReference, isReferenceType, isTypeVariable, isUnionType, isVoid, isWildcard, mention, replaceTypeVariables, replaceTypeVariables
-
-
-
-
Field Detail
-
bound
private ResolvedType bound
-
-
Constructor Detail
-
ResolvedLambdaConstraintType
private ResolvedLambdaConstraintType(ResolvedType bound)
-
-
Method Detail
-
describe
public java.lang.String describe()
- Specified by:
describe
in interfaceResolvedType
-
getBound
public ResolvedType getBound()
-
isConstraint
public boolean isConstraint()
Description copied from interface:ResolvedType
Is this a lambda constraint type?- Specified by:
isConstraint
in interfaceResolvedType
-
asConstraintType
public ResolvedLambdaConstraintType asConstraintType()
- Specified by:
asConstraintType
in interfaceResolvedType
-
bound
public static ResolvedLambdaConstraintType bound(ResolvedType bound)
-
isAssignableBy
public boolean isAssignableBy(ResolvedType other)
Description copied from interface:ResolvedType
This method checks if ThisType t = new OtherType() would compile.- Specified by:
isAssignableBy
in interfaceResolvedType
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-