Class InferredJavaType.IJTInternal_Impl
- java.lang.Object
-
- org.benf.cfr.reader.bytecode.analysis.types.discovery.InferredJavaType.IJTInternal_Impl
-
- All Implemented Interfaces:
InferredJavaType.IJTInternal
- Enclosing class:
- InferredJavaType
private static class InferredJavaType.IJTInternal_Impl extends java.lang.Object implements InferredJavaType.IJTInternal
-
-
Field Summary
Fields Modifier and Type Field Description private Troolean
canBeVar
private InferredJavaType.IJTInternal
delegate
private int
id
private boolean
isDelegate
private JavaTypeInstance
knownBase
private boolean
locked
private InferredJavaType.Source
source
private int
taggedBytecodeLocation
private JavaTypeInstance
type
-
Constructor Summary
Constructors Modifier Constructor Description private
IJTInternal_Impl(JavaTypeInstance type, InferredJavaType.Source source, boolean locked)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
collapseTypeClash()
void
confirmVarIfPossible()
void
forceType(JavaTypeInstance rawJavaType, boolean ignoreLock)
InferredJavaType.ClashState
getClashState()
int
getFinalId()
InferredJavaType.IJTInternal
getFirstLocked()
JavaTypeInstance
getJavaTypeInstance()
JavaTypeInstance
getKnownBaseType()
int
getLocalId()
RawJavaType
getRawType()
InferredJavaType.Source
getSource()
int
getTaggedBytecodeLocation()
boolean
isLocked()
void
markClashState(InferredJavaType.ClashState newClashState)
void
markKnownBaseClass(JavaTypeInstance newKnownBase)
void
mkDelegate(InferredJavaType.IJTInternal newDelegate)
void
setTaggedBytecodeLocation(int location)
void
shallowSetCanBeVar()
java.lang.String
toString()
boolean
usesFinalId(int id)
-
-
-
Field Detail
-
isDelegate
private boolean isDelegate
-
locked
private final boolean locked
-
type
private JavaTypeInstance type
-
knownBase
private JavaTypeInstance knownBase
-
taggedBytecodeLocation
private int taggedBytecodeLocation
-
source
private final InferredJavaType.Source source
-
id
private final int id
-
delegate
private InferredJavaType.IJTInternal delegate
-
canBeVar
private Troolean canBeVar
-
-
Constructor Detail
-
IJTInternal_Impl
private IJTInternal_Impl(JavaTypeInstance type, InferredJavaType.Source source, boolean locked)
-
-
Method Detail
-
getRawType
public RawJavaType getRawType()
- Specified by:
getRawType
in interfaceInferredJavaType.IJTInternal
-
getTaggedBytecodeLocation
public int getTaggedBytecodeLocation()
- Specified by:
getTaggedBytecodeLocation
in interfaceInferredJavaType.IJTInternal
-
setTaggedBytecodeLocation
public void setTaggedBytecodeLocation(int location)
- Specified by:
setTaggedBytecodeLocation
in interfaceInferredJavaType.IJTInternal
-
getJavaTypeInstance
public JavaTypeInstance getJavaTypeInstance()
- Specified by:
getJavaTypeInstance
in interfaceInferredJavaType.IJTInternal
-
getSource
public InferredJavaType.Source getSource()
- Specified by:
getSource
in interfaceInferredJavaType.IJTInternal
-
collapseTypeClash
public void collapseTypeClash()
- Specified by:
collapseTypeClash
in interfaceInferredJavaType.IJTInternal
-
getFinalId
public int getFinalId()
- Specified by:
getFinalId
in interfaceInferredJavaType.IJTInternal
-
usesFinalId
public boolean usesFinalId(int id)
- Specified by:
usesFinalId
in interfaceInferredJavaType.IJTInternal
-
getLocalId
public int getLocalId()
- Specified by:
getLocalId
in interfaceInferredJavaType.IJTInternal
-
shallowSetCanBeVar
public void shallowSetCanBeVar()
- Specified by:
shallowSetCanBeVar
in interfaceInferredJavaType.IJTInternal
-
confirmVarIfPossible
public void confirmVarIfPossible()
- Specified by:
confirmVarIfPossible
in interfaceInferredJavaType.IJTInternal
-
getClashState
public InferredJavaType.ClashState getClashState()
- Specified by:
getClashState
in interfaceInferredJavaType.IJTInternal
-
mkDelegate
public void mkDelegate(InferredJavaType.IJTInternal newDelegate)
- Specified by:
mkDelegate
in interfaceInferredJavaType.IJTInternal
-
markKnownBaseClass
public void markKnownBaseClass(JavaTypeInstance newKnownBase)
- Specified by:
markKnownBaseClass
in interfaceInferredJavaType.IJTInternal
-
getKnownBaseType
public JavaTypeInstance getKnownBaseType()
- Specified by:
getKnownBaseType
in interfaceInferredJavaType.IJTInternal
-
forceType
public void forceType(JavaTypeInstance rawJavaType, boolean ignoreLock)
- Specified by:
forceType
in interfaceInferredJavaType.IJTInternal
-
markClashState
public void markClashState(InferredJavaType.ClashState newClashState)
- Specified by:
markClashState
in interfaceInferredJavaType.IJTInternal
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
isLocked
public boolean isLocked()
- Specified by:
isLocked
in interfaceInferredJavaType.IJTInternal
-
getFirstLocked
public InferredJavaType.IJTInternal getFirstLocked()
- Specified by:
getFirstLocked
in interfaceInferredJavaType.IJTInternal
-
-