public class GetViaCheck extends ClassMethod
static YYY dnGetZZZ(MyClass objPC)
{
if (objPC.dnFlags > 0 && objPC.dnStateManager != null && !objPC.dnStateManager.isLoaded(objPC, 2))
return objPC.dnStateManager.getStringField(objPC, 2, objPC.ZZZ);
if (objPC.dnIsDetached() != false && ((BitSet)objPC.dnDetachedState[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| Modifier and Type | Field and Description |
|---|---|
protected AbstractMemberMetaData |
fmd
Field that this dnGetXXX is for.
|
access, argNames, argTypes, enhancer, exceptions, methodName, returnType, visitor| Constructor and Description |
|---|
GetViaCheck(ClassEnhancer enhancer,
AbstractMemberMetaData fmd)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Method to add the contents of the class method.
|
close, equals, getAccess, getClassEnhancer, getDescriptor, getMethodAdditionMessage, getName, getNamer, hashCode, initialise, initialiseprotected AbstractMemberMetaData fmd
public GetViaCheck(ClassEnhancer enhancer, AbstractMemberMetaData fmd)
enhancer - ClassEnhancerfmd - MetaData for the field we are generating forpublic void execute()
execute in class ClassMethodCopyright © 2017. All rights reserved.