| Package | Description |
|---|---|
| net.sourceforge.pmd.lang.java.typeresolution | |
| net.sourceforge.pmd.lang.java.typeresolution.typeinference |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
MethodTypeResolution.produceInitialBounds(java.lang.reflect.Method method,
JavaTypeDefinition context,
java.util.List<Variable> variables,
java.util.List<Bound> initialBounds) |
|
static java.util.List<Constraint> |
MethodTypeResolution.produceInitialConstraints(java.lang.reflect.Method method,
ASTArgumentList argList,
java.util.List<Variable> variables) |
| Modifier and Type | Method | Description |
|---|---|---|
Variable |
BoundOrConstraint.getLeftMentionedVariable() |
|
Variable |
BoundOrConstraint.getRightMentionedVariable() |
|
Variable |
BoundOrConstraint.leftVariable() |
|
Variable |
BoundOrConstraint.rightVariable() |
| Modifier and Type | Method | Description |
|---|---|---|
static java.util.Map<Variable,JavaTypeDefinition> |
TypeInferenceResolver.getInstantiations(java.util.List<Bound> bounds) |
|
static java.util.Set<Variable> |
TypeInferenceResolver.getMentionedVariables(java.util.List<Bound> bounds) |
|
static java.util.Set<Variable> |
TypeInferenceResolver.getUninstantiatedVariables(java.util.List<Bound> bounds) |
|
static java.util.Map<Variable,java.util.Set<Variable>> |
TypeInferenceResolver.getVariableDependencies(java.util.List<Bound> bounds) |
|
static java.util.Map<Variable,java.util.Set<Variable>> |
TypeInferenceResolver.getVariableDependencies(java.util.List<Bound> bounds) |
|
static java.util.Map<Variable,JavaTypeDefinition> |
TypeInferenceResolver.resolveVariables(java.util.List<Bound> bounds) |
Resolve unresolved variables in a list of bounds.
|
| Modifier and Type | Method | Description |
|---|---|---|
static boolean |
TypeInferenceResolver.boundsHaveAnEqualityBetween(java.util.List<Variable> firstList,
Variable second,
java.util.List<Bound> bounds) |
|
static java.util.List<JavaTypeDefinition> |
TypeInferenceResolver.getLowerBoundsOf(Variable var,
java.util.List<Bound> bounds) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
BoundOrConstraint.addVariablesToSet(java.util.Set<Variable> variables) |
|
static boolean |
TypeInferenceResolver.boundsHaveAnEqualityBetween(java.util.List<Variable> firstList,
Variable second,
java.util.List<Bound> bounds) |
|
static boolean |
TypeInferenceResolver.isProperSubsetOfVariables(java.util.List<Variable> variables,
java.util.Map<Variable,JavaTypeDefinition> instantiations,
java.util.Map<Variable,java.util.Set<Variable>> dependencies,
java.util.List<Bound> bounds) |
Given a set of inference variables to resolve, let V be the union of this set and all variables upon which
the resolution of at least one variable in this set depends.
|
static boolean |
TypeInferenceResolver.isProperSubsetOfVariables(java.util.List<Variable> variables,
java.util.Map<Variable,JavaTypeDefinition> instantiations,
java.util.Map<Variable,java.util.Set<Variable>> dependencies,
java.util.List<Bound> bounds) |
Given a set of inference variables to resolve, let V be the union of this set and all variables upon which
the resolution of at least one variable in this set depends.
|
| Constructor | Description |
|---|---|
Bound(JavaTypeDefinition leftProperType,
Variable rightTypeVariable,
InferenceRuleType ruleType) |
|
Bound(Variable leftTypeVariable,
JavaTypeDefinition rightProperType,
InferenceRuleType ruleType) |
|
Bound(Variable leftTypeVariable,
Variable rightTypeVariable,
InferenceRuleType ruleType) |
|
BoundOrConstraint(JavaTypeDefinition leftProperType,
Variable rightTypeVariable,
InferenceRuleType ruleType) |
|
BoundOrConstraint(Variable leftTypeVariable,
JavaTypeDefinition rightProperType,
InferenceRuleType ruleType) |
|
BoundOrConstraint(Variable leftTypeVariable,
Variable rightTypeVariable,
InferenceRuleType ruleType) |
|
Constraint(JavaTypeDefinition leftProperType,
Variable rightTypeVariable,
InferenceRuleType ruleType) |
|
Constraint(Variable leftTypeVariable,
JavaTypeDefinition rightProperType,
InferenceRuleType ruleType) |
|
Constraint(Variable leftTypeVariable,
Variable rightTypeVariable,
InferenceRuleType ruleType) |
Copyright © 2002–2018 PMD. All rights reserved.