public void loadThis() { mAssembler.loadThis(); }
public void loadThis() { mAssembler.loadThis(); }
/** * Push decoding instanceVar to stack in preparation to calling * storePropertyValue. * * @param ordinal zero-based property ordinal, used only if instanceVar * refers to an object array. * @param instanceVar local variable referencing Storable instance, * defaults to "this" if null. If variable type is an Object array, then * property values are written to the runtime value of this array instead * of a Storable instance. * @see #storePropertyValue storePropertyValue */ protected void pushDecodingInstanceVar(CodeAssembler a, int ordinal, LocalVariable instanceVar) { if (instanceVar == null) { // Push this to stack in preparation for storing a property. a.loadThis(); } else if (instanceVar.getType() != TypeDesc.forClass(Object[].class)) { // Push reference to stack in preparation for storing a property. a.loadLocal(instanceVar); } else { // Push array and index to stack in preparation for storing a property. a.loadLocal(instanceVar); a.loadConstant(ordinal); } }
/** * Push decoding instanceVar to stack in preparation to calling * storePropertyValue. * * @param ordinal zero-based property ordinal, used only if instanceVar * refers to an object array. * @param instanceVar local variable referencing Storable instance, * defaults to "this" if null. If variable type is an Object array, then * property values are written to the runtime value of this array instead * of a Storable instance. * @see #storePropertyValue storePropertyValue */ protected void pushDecodingInstanceVar(CodeAssembler a, int ordinal, LocalVariable instanceVar) { if (instanceVar == null) { // Push this to stack in preparation for storing a property. a.loadThis(); } else if (instanceVar.getType() != TypeDesc.forClass(Object[].class)) { // Push reference to stack in preparation for storing a property. a.loadLocal(instanceVar); } else { // Push array and index to stack in preparation for storing a property. a.loadLocal(instanceVar); a.loadConstant(ordinal); } }
/** * Generates code to push RawSupport instance to the stack. RawSupport is * available only in Storable instances. If instanceVar is an Object[], a * SupportException is thrown. * * @param instanceVar Storable instance or array of property values. Null * is storable instance of "this". */ protected void pushRawSupport(CodeAssembler a, LocalVariable instanceVar) throws SupportException { boolean isObjectArrayInstanceVar = instanceVar != null && instanceVar.getType() == TypeDesc.forClass(Object[].class); if (isObjectArrayInstanceVar) { throw new SupportException("Lob properties not supported"); } if (instanceVar == null) { a.loadThis(); } else { a.loadLocal(instanceVar); } a.loadField(SUPPORT_FIELD_NAME, TypeDesc.forClass(TriggerSupport.class)); a.checkCast(TypeDesc.forClass(RawSupport.class)); }
/** * Generates code to push RawSupport instance to the stack. RawSupport is * available only in Storable instances. If instanceVar is an Object[], a * SupportException is thrown. * * @param instanceVar Storable instance or array of property values. Null * is storable instance of "this". */ protected void pushRawSupport(CodeAssembler a, LocalVariable instanceVar) throws SupportException { boolean isObjectArrayInstanceVar = instanceVar != null && instanceVar.getType() == TypeDesc.forClass(Object[].class); if (isObjectArrayInstanceVar) { throw new SupportException("Lob properties not supported"); } if (instanceVar == null) { a.loadThis(); } else { a.loadLocal(instanceVar); } a.loadField(SUPPORT_FIELD_NAME, TypeDesc.forClass(TriggerSupport.class)); a.checkCast(TypeDesc.forClass(RawSupport.class)); }
a.loadThis(); a.loadField(PROPERTY_STATE_FIELD_NAME + stateVarOrdinal, TypeDesc.INT); a.storeLocal(stateVars.get(stateVarOrdinal));
a.loadThis(); a.loadField(PROPERTY_STATE_FIELD_NAME + stateVarOrdinal, TypeDesc.INT); a.storeLocal(stateVars.get(stateVarOrdinal));
a.loadThis(); if (useReadMethod) { info.addInvokeReadMethod(a);
a.loadThis(); if (useReadMethod) { info.addInvokeReadMethod(a);
a.loadLocal(stateFieldVar); } else { a.loadThis(); a.loadField(PROPERTY_STATE_FIELD_NAME + fieldOrdinal, TypeDesc.INT); a.storeLocal(stateFieldVar);
a.loadLocal(stateFieldVar); } else { a.loadThis(); a.loadField(PROPERTY_STATE_FIELD_NAME + fieldOrdinal, TypeDesc.INT); a.storeLocal(stateFieldVar);