Package picasso.parser.tokens
Class ImageToken
- java.lang.Object
-
- picasso.parser.tokens.Token
-
- picasso.parser.tokens.ImageToken
-
public class ImageToken extends Token
Represents an image filename token in the Picasso language
-
-
Constructor Summary
Constructors Constructor Description ImageToken(String value)Constructs a token representing an image filename
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Checks if this token equals another objectStringgetValue()Gets the filename value of this image tokenbooleanisConstant()Checks if this token is a constantbooleanisFunction()Checks if this token is a functionStringtoString()Returns a string representation of this image token
-
-
-
Constructor Detail
-
ImageToken
public ImageToken(String value)
Constructs a token representing an image filename- Parameters:
value- The filename (without the quotes)
-
-
Method Detail
-
getValue
public String getValue()
Gets the filename value of this image token- Returns:
- The filename (without quotes)
-
toString
public String toString()
Returns a string representation of this image token
-
equals
public boolean equals(Object obj)
Checks if this token equals another object
-
isConstant
public boolean isConstant()
Checks if this token is a constant- Specified by:
isConstantin classToken- Returns:
- false, as ImageToken is not a constant
-
isFunction
public boolean isFunction()
Checks if this token is a function- Specified by:
isFunctionin classToken- Returns:
- false, as ImageToken is not a function
-
-