Package picasso.parser.tokens
Class StringToken
- java.lang.Object
-
- picasso.parser.tokens.Token
-
- picasso.parser.tokens.StringToken
-
public class StringToken extends Token
Represents a string literal token (for image filenames)
-
-
Constructor Summary
Constructors Constructor Description StringToken(String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetValue()booleanisConstant()Returns true if this token represents a constant, false otherwisebooleanisFunction()Returns true if this token represents a function, false otherwise
-
-
-
Constructor Detail
-
StringToken
public StringToken(String value)
-
-
Method Detail
-
getValue
public String getValue()
-
isConstant
public boolean isConstant()
Description copied from class:TokenReturns true if this token represents a constant, false otherwise- Specified by:
isConstantin classToken- Returns:
- true iff this Token represents a constant
-
isFunction
public boolean isFunction()
Description copied from class:TokenReturns true if this token represents a function, false otherwise- Specified by:
isFunctionin classToken- Returns:
- true iff this Token represents a function
-
-