public class FieldPort extends InputPort
Modifier and Type | Field and Description |
---|---|
protected Field |
mField |
protected boolean |
mHasFrame |
protected Object |
mValue |
protected boolean |
mValueWaiting |
mSourcePort
mChecksType, mFilter, mIsBlocking, mIsOpen, mName, mPortFormat
Constructor and Description |
---|
FieldPort(Filter filter,
String name,
Field field,
boolean hasDefault) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsFrame() |
void |
clear() |
Object |
getTarget() |
boolean |
hasFrame() |
Frame |
pullFrame() |
void |
pushFrame(Frame frame) |
protected void |
setFieldFrame(Frame frame,
boolean isAssignment) |
void |
setFrame(Frame frame) |
String |
toString()
Returns a string representation of the object.
|
void |
transfer(FilterContext context) |
close, filterMustClose, getSourceFilter, getSourceFormat, getSourcePort, isConnected, isReady, open, setSourcePort
assertPortIsOpen, checkFrameManager, checkFrameType, getFilter, getName, getPortFormat, isAttached, isBlocking, isOpen, setBlocking, setChecksType, setPortFormat
protected Field mField
protected boolean mHasFrame
protected boolean mValueWaiting
protected Object mValue
public void clear()
clear
in class FilterPort
public void pushFrame(Frame frame)
pushFrame
in class FilterPort
public void setFrame(Frame frame)
setFrame
in class FilterPort
public void transfer(FilterContext context)
public Frame pullFrame()
pullFrame
in class FilterPort
public boolean hasFrame()
hasFrame
in class FilterPort
public boolean acceptsFrame()
acceptsFrame
in class InputPort
public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
toString
in class FilterPort
protected void setFieldFrame(Frame frame, boolean isAssignment)