public class AWTImageToken extends ImageToken
_class, _value, NULL
Constructor and Description |
---|
AWTImageToken(java.awt.Image value)
Construct a token with a specified java.awt.Image.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Image |
asAWTImage()
Because all tokens that contain images must extend ImageToken,
we must include the following method.
|
Type |
getType()
Return the type of this token.
|
java.awt.Image |
getValue()
Return the java.awt.Image object associated with this token.
|
java.lang.String |
toString()
Return a description of the token.
|
_isCloseTo, _isEqualTo, convert, equals, getValueClass, hashCode, isCloseTo, isEqualTo, object
add, addReverse, divide, divideReverse, isCloseTo, isNil, modulo, moduloReverse, multiply, multiplyReverse, notSupportedConversionMessage, notSupportedIncomparableConversionMessage, notSupportedIncomparableMessage, notSupportedMessage, notSupportedNullNilStringMessage, one, pow, subtract, subtractReverse, zero, zeroReturnType
public AWTImageToken(java.awt.Image value)
value
- The given valuepublic java.awt.Image asAWTImage()
asAWTImage
in class ImageToken
public Type getType()
ObjectToken
getType
in class ObjectToken
public java.awt.Image getValue()
getValue
in class ObjectToken
public java.lang.String toString()
toString
in class ObjectToken