Methods Summary |
---|
public synchronized boolean | acceptsFrame()
return !mValueWaiting;
|
public void | clear()
|
public java.lang.Object | getTarget()
try {
return mField.get(mFilter);
} catch (IllegalAccessException e) {
return null;
}
|
public synchronized boolean | hasFrame()
return mHasFrame;
|
public synchronized Frame | pullFrame()
throw new RuntimeException("Cannot pull frame on " + this + "!");
|
public void | pushFrame(Frame frame)
setFieldFrame(frame, false);
|
protected synchronized void | setFieldFrame(Frame frame, boolean isAssignment)
assertPortIsOpen();
checkFrameType(frame, isAssignment);
// Store the object value
Object value = frame.getObjectValue();
if ((value == null && mValue != null) || !value.equals(mValue)) {
mValue = value;
mValueWaiting = true;
}
// Since a frame was set, mark this port as having a frame to pull
mHasFrame = true;
|
public void | setFrame(Frame frame)
setFieldFrame(frame, true);
|
public java.lang.String | toString()
return "field " + super.toString();
|
public synchronized void | transfer(FilterContext context)
if (mValueWaiting) {
try {
mField.set(mFilter, mValue);
} catch (IllegalAccessException e) {
throw new RuntimeException(
"Access to field '" + mField.getName() + "' was denied!");
}
mValueWaiting = false;
if (context != null) {
mFilter.notifyFieldPortValueUpdated(mName, context);
}
}
|