public class TypeAssigner extends Object implements ITypeAssigner
| Modifier | Constructor and Description |
|---|---|
protected |
TypeAssigner(AbstractTypeComputationState state) |
| Modifier and Type | Method and Description |
|---|---|
void |
assignType(JvmIdentifiableElement element,
LightweightTypeReference actualType)
The given element is tagged with the given type.
|
protected void |
assignType(JvmIdentifiableElement element,
LightweightTypeReference actualType,
boolean addToChildScope) |
AbstractTypeComputationState |
getForkedState()
Returns the forked state that knows about the newly assigned types.
|
ITypeReferenceOwner |
getReferenceOwner()
Returns the current owner.
|
LightweightTypeReference |
toLightweightTypeReference(JvmTypeReference reference)
Can be used to convert
JvmTypeReferences in the context of
the newly forked state. |
protected TypeAssigner(AbstractTypeComputationState state)
public AbstractTypeComputationState getForkedState()
ITypeAssignergetForkedState in interface ITypeAssignerpublic void assignType(JvmIdentifiableElement element, LightweightTypeReference actualType)
ITypeAssignernull,
it is treated like an error type.assignType in interface ITypeAssignerprotected void assignType(JvmIdentifiableElement element, LightweightTypeReference actualType, boolean addToChildScope)
public ITypeReferenceOwner getReferenceOwner()
ITypeAssignergetReferenceOwner in interface ITypeAssignerpublic LightweightTypeReference toLightweightTypeReference(JvmTypeReference reference)
ITypeAssignerJvmTypeReferences in the context of
the newly forked state.toLightweightTypeReference in interface ITypeAssignerreference - the reference to convert.Copyright © 2015. All Rights Reserved.