|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITypeExpectation
Method Summary | |
---|---|
void |
acceptActualType(JvmTypeReference type,
ConformanceHint hint)
|
JvmTypeReference |
getExpectedType()
Returns the expected type. |
boolean |
isNoTypeExpectation()
Returns true if anything is allowed and no constraints are expected. |
boolean |
isVoidTypeAllowed()
Returns true if Void.TYPE is a valid type. |
Method Detail |
---|
void acceptActualType(JvmTypeReference type, ConformanceHint hint)
JvmTypeReference getExpectedType()
getExpectedType()
may return
null
or some sort of unresolved, specialized reference. If null
is returned, clients
may want to check isNoTypeExpectation()
or isVoidTypeAllowed()
.
null
.boolean isNoTypeExpectation()
true
if anything is allowed and no constraints are expected.
true
if anything is allowed and no constraints are expected.boolean isVoidTypeAllowed()
true
if Void.TYPE
is a valid type. It may be the only valid type
or there may exist others.
true
if primitive void
is allowed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |