public class SameAsBound extends Bound
| Constructor and Description |
|---|
SameAsBound(com.github.javaparser.resolution.types.ResolvedType s,
com.github.javaparser.resolution.types.ResolvedType t) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
com.github.javaparser.resolution.types.ResolvedType |
getS() |
com.github.javaparser.resolution.types.ResolvedType |
getT() |
int |
hashCode() |
boolean |
isADependency()
Other bounds relate two inference variables, or an inference variable to a type that contains inference
variables.
|
Optional<Instantiation> |
isAnInstantiation()
Given a bound of the form α = T or T = α, we say T is an instantiation of α.
|
boolean |
isSatisfied(InferenceVariableSubstitution inferenceVariableSubstitution)
A bound is satisfied by an inference variable substitution if, after applying the substitution,
the assertion is true.
|
String |
toString() |
Set<InferenceVariable> |
usedInferenceVariables() |
isProperLowerBound, isProperUpperBoundpublic SameAsBound(com.github.javaparser.resolution.types.ResolvedType s,
com.github.javaparser.resolution.types.ResolvedType t)
public Set<InferenceVariable> usedInferenceVariables()
usedInferenceVariables in class Boundpublic com.github.javaparser.resolution.types.ResolvedType getS()
public com.github.javaparser.resolution.types.ResolvedType getT()
public boolean isADependency()
BoundisADependency in class Boundpublic Optional<Instantiation> isAnInstantiation()
BoundisAnInstantiation in class Boundpublic boolean isSatisfied(InferenceVariableSubstitution inferenceVariableSubstitution)
BoundisSatisfied in class BoundCopyright © 2007–2019. All rights reserved.