@Deprecated
public interface ITypeProvider
Modifier and Type | Method and Description |
---|---|
JvmTypeReference |
getCommonReturnType(XExpression expression,
boolean assumeImplicitReturn)
Deprecated.
The return type of an expression is the common super type of all types used within a return expression.
|
JvmTypeReference |
getExpectedReturnType(XExpression expression,
boolean rawType)
Deprecated.
Return the expected return type of the given expression.
|
JvmTypeReference |
getExpectedType(XExpression expression)
Deprecated.
Return the resolved expected type of the given expression.
|
JvmTypeReference |
getExpectedType(XExpression expression,
boolean rawType)
Deprecated.
|
java.lang.Iterable<JvmTypeReference> |
getThrownExceptionForIdentifiable(JvmIdentifiableElement identifiable)
Deprecated.
returns the exception types, declared to be thrown by referencing / executing the passed
JvmIdentifiableElement . |
java.lang.Iterable<JvmTypeReference> |
getThrownExceptionTypes(XExpression expression)
Deprecated.
returns all exception types, thrown within the given expression.
|
JvmTypeReference |
getType(XExpression expression)
Deprecated.
Return the resolved type of the given expression.
|
JvmTypeReference |
getType(XExpression expression,
boolean rawType)
Deprecated.
|
JvmTypeReference |
getType(XExpression expression,
JvmTypeReference rawExpectation,
boolean rawType)
Deprecated.
|
ITypeArgumentContext |
getTypeArgumentContext(XAbstractFeatureCall featureCall,
java.util.List<XExpression> actualArguments,
com.google.inject.Provider<JvmTypeReference> receiverTypeProvider,
JvmIdentifiableElement feature)
Deprecated.
|
ITypeArgumentContext |
getTypeArgumentContext(XConstructorCall constructorCall,
JvmConstructor constructor)
Deprecated.
|
JvmTypeReference |
getTypeForIdentifiable(JvmIdentifiableElement identifiableElement)
Deprecated.
Return the resolved type of the element.
|
JvmTypeReference |
getTypeForIdentifiable(JvmIdentifiableElement identifiableElement,
boolean rawType)
Deprecated.
|
JvmTypeReference getExpectedReturnType(XExpression expression, boolean rawType)
expression
- the expression. May not be null
.rawType
- true
if the raw type is sufficient.null
if no special return type is expectedJvmTypeReference getExpectedType(XExpression expression)
getExpectedType(expression, false
.expression
- the expression. May not be null
.null
if no special type is expectedJvmTypeReference getExpectedType(XExpression expression, boolean rawType)
expression
- the expression. May not be null
.rawType
- true
if the raw type is sufficient.null
if no special type is expectedJvmTypeReference getType(XExpression expression)
getType(expression, false
.expression
- the expression. May not be null
.XExpression
, if a correct, fully-linkable model is given.
null
indicates a problem during resolution.JvmTypeReference getType(XExpression expression, boolean rawType)
expression
- the expression. May not be null
.rawType
- true
if the raw type is sufficient.XExpression
, if a correct, fully-linkable model is given.
null
indicates a problem during resolution.JvmTypeReference getType(XExpression expression, JvmTypeReference rawExpectation, boolean rawType)
expression
- the expression. May not be null
.rawType
- true
if the raw type is sufficient.XExpression
, if a correct, fully-linkable model is given.
null
indicates a problem during resolution.JvmTypeReference getTypeForIdentifiable(JvmIdentifiableElement identifiableElement)
getTypeForIdentifiable(identifiableElement, false
.identifiableElement
- the identifiable element. May not be null
.JvmIdentifiableElement
, if a correct, fully-linkable model is
given. null
indicates a problem during resolution. given.JvmTypeReference getTypeForIdentifiable(JvmIdentifiableElement identifiableElement, boolean rawType)
identifiableElement
- the identifiable element. May not be null
.rawType
- true
if the raw type is sufficient.JvmIdentifiableElement
, if a correct, fully-linkable model is
given. null
indicates a problem during resolution. given.JvmTypeReference getCommonReturnType(XExpression expression, boolean assumeImplicitReturn)
expression
- May not be null
.assumeImplicitReturn
- indicating whether an implicit return expression should be assumedXExpression
, if a correct, fully-linkable model is
given. null
indicates a problem during computation, the primitive void indicates that no return expression was found.java.lang.Iterable<JvmTypeReference> getThrownExceptionTypes(XExpression expression)
RuntimeException
s as well.expression
- May not be null
.null
indicates a problem during computation, an empty iterable means no thrown exceptions were found.java.lang.Iterable<JvmTypeReference> getThrownExceptionForIdentifiable(JvmIdentifiableElement identifiable)
JvmIdentifiableElement
.
This includes explicitly declared RuntimeException
s as well.identifiable
- May not be null
.null
indicates a problem during computation, an empty iterable means no thrown exceptions were found.ITypeArgumentContext getTypeArgumentContext(XAbstractFeatureCall featureCall, java.util.List<XExpression> actualArguments, com.google.inject.Provider<JvmTypeReference> receiverTypeProvider, JvmIdentifiableElement feature)
ITypeArgumentContext getTypeArgumentContext(XConstructorCall constructorCall, JvmConstructor constructor)