@NotStorableClass public class ClassReplacementDef extends Object
Constructor and Description |
---|
ClassReplacementDef(ClassInfo originalClass,
ClassInfo replacementClass,
ClassInfo converterClass,
ClassInfo staticConverterClass,
FieldConversionMap fieldConversionMap,
FieldConversionMap staticFieldConversionMap) |
Modifier and Type | Method and Description |
---|---|
void |
addFieldConversion(FieldInfo originalFieldInfo,
int originalFieldIndex,
FieldInfo replacementFieldInfo,
int replacementFieldIndex) |
ClassInfo |
getConverterClass() |
FieldConversionMap |
getFieldConversionMap() |
ClassInfo |
getOriginalClass() |
ClassInfo |
getReplacementClass() |
FieldReplacementDef |
getReplacementFieldInfo(FieldInfo originalFieldInfo) |
FieldReplacementDef |
getReplacementFieldInfo(int originalFieldIndex) |
FieldReplacementDef |
getReplacementStaticFieldInfo(FieldInfo originalFieldInfo) |
FieldReplacementDef |
getReplacementStaticFieldInfo(int originalFieldIndex) |
ClassInfo |
getStaticConverterClass() |
FieldConversionMap |
getStaticFieldConversionMap() |
String |
toString() |
public ClassReplacementDef(ClassInfo originalClass, ClassInfo replacementClass, ClassInfo converterClass, ClassInfo staticConverterClass, FieldConversionMap fieldConversionMap, FieldConversionMap staticFieldConversionMap)
originalClass
- original classreplacementClass
- replacement classconverterClass
- staticConverterClass
- fieldConversionMap
- not static field conversion definition mapstaticFieldConversionMap
- static field conversion definition mappublic void addFieldConversion(FieldInfo originalFieldInfo, int originalFieldIndex, FieldInfo replacementFieldInfo, int replacementFieldIndex) throws ConversionException
ConversionException
public ClassInfo getOriginalClass()
public ClassInfo getReplacementClass()
public ClassInfo getConverterClass()
public ClassInfo getStaticConverterClass()
public FieldReplacementDef getReplacementFieldInfo(FieldInfo originalFieldInfo)
public FieldReplacementDef getReplacementStaticFieldInfo(FieldInfo originalFieldInfo)
public FieldReplacementDef getReplacementFieldInfo(int originalFieldIndex)
public FieldReplacementDef getReplacementStaticFieldInfo(int originalFieldIndex)
@Fortest public FieldConversionMap getFieldConversionMap()
@Fortest public FieldConversionMap getStaticFieldConversionMap()
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.