org.datanucleus.enhancer.asm.method
Class CheckRead
java.lang.Object
org.datanucleus.enhancer.ClassMethod
org.datanucleus.enhancer.asm.ASMClassMethod
org.datanucleus.enhancer.asm.method.CheckRead
public class CheckRead
- extends ASMClassMethod
Method to generate the method "jdoGetZZZ" using ASM for CHECK_READ fields.
static YYY jdoGetZZZ(MyClass objPC)
{
if (objPC.jdoFlags > 0 && objPC.jdoStateManager != null && !objPC.jdoStateManager.isLoaded(objPC, 2))
return objPC.jdoStateManager.getStringField(objPC, 2, objPC.ZZZ);
if (objPC.jdoIsDetached() != false && ((BitSet)objPC.jdoDetachedState[2]).get(2) != true)
throw new JDODetachedFieldAccessException
("You have just attempted to access field \"ZZZ\" yet this field was not detached ... ");
return objPC.ZZZ;
}
with the last part only applying when Detachable
- Version:
- $Revision: 1.9 $
|
Field Summary |
protected org.datanucleus.metadata.AbstractMemberMetaData |
fmd
Field that this jdoGetXXX is for. |
|
Constructor Summary |
CheckRead(ClassEnhancer enhancer,
org.datanucleus.metadata.AbstractMemberMetaData fmd)
Constructor. |
|
Method Summary |
void |
execute()
Method to add the contents of the class method. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
fmd
protected org.datanucleus.metadata.AbstractMemberMetaData fmd
- Field that this jdoGetXXX is for.
CheckRead
public CheckRead(ClassEnhancer enhancer,
org.datanucleus.metadata.AbstractMemberMetaData fmd)
- Constructor.
- Parameters:
enhancer - ClassEnhancerfmd - MetaData for the field we are generating for
execute
public void execute()
- Method to add the contents of the class method.
- Specified by:
execute in class ClassMethod
Copyright © 2011. All Rights Reserved.