|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITypeProvider
Method Summary | |
---|---|
JvmTypeReference |
getCommonReturnType(XExpression expression,
boolean assumeImplicitReturn)
The return type of an expression is the common super type of all types used within a return expression. |
JvmTypeReference |
getExpectedType(XExpression expression)
Return the resolved expected type of the given expression. |
JvmTypeReference |
getExpectedType(XExpression expression,
boolean rawType)
|
java.lang.Iterable<JvmTypeReference> |
getThrownExceptionForIdentifiable(JvmIdentifiableElement identifiable)
returns the exception types, declared to be thrown by referencing / executing the passed JvmIdentifiableElement . |
java.lang.Iterable<JvmTypeReference> |
getThrownExceptionTypes(XExpression expression)
returns all exception types, thrown within the given expression. |
JvmTypeReference |
getType(XExpression expression)
Return the resolved type of the given expression. |
JvmTypeReference |
getType(XExpression expression,
boolean rawType)
|
JvmTypeReference |
getTypeForIdentifiable(JvmIdentifiableElement identifiableElement)
Return the resolved type of the element. |
JvmTypeReference |
getTypeForIdentifiable(JvmIdentifiableElement identifiableElement,
boolean rawType)
|
Method Detail |
---|
JvmTypeReference 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 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 assumed
XExpression
, 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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |