public class NamedColorExpression extends ColorExpression
ColorExpression.ColorWithAlphaExpressionblue, green, red, value| Constructor and Description |
|---|
NamedColorExpression(HiddenTokenAwareTree token,
String colorName,
ColorExpression color) |
| Modifier and Type | Method and Description |
|---|---|
NamedColorExpression |
clone() |
static ColorExpression |
createNamedColorExpression(HiddenTokenAwareTree token,
String colorName) |
static Map<String,String> |
getAllNames() |
String |
getColorName() |
String |
getValue() |
static boolean |
isColorName(String value) |
boolean |
isNamed() |
void |
setColorName(String colorName) |
getAlpha, getBlue, getChilds, getGreen, getRed, getType, getValueInHexadecimal, hasAlpha, isShorthand, setValue, toARGB, toColor, toHex, toStringgetScope, hasScope, setScope, splitByCommaaddOpeningComments, addTrailingComment, addTrailingComments, configureParentToAllChilds, getOpeningComments, getOrphanComments, getParent, getSource, getSourceColumn, getSourceLine, getTrailingComments, getUnderlyingStructure, hasParent, isFaulty, isSilent, setOpeningComments, setOrphanComments, setParent, setSilent, setTrailingComments, setUnderlyingStructurepublic NamedColorExpression(HiddenTokenAwareTree token, String colorName, ColorExpression color)
public String getColorName()
getColorName in class ColorExpressionpublic void setColorName(String colorName)
public static boolean isColorName(String value)
public static ColorExpression createNamedColorExpression(HiddenTokenAwareTree token, String colorName)
public String getValue()
getValue in class ColorExpressionpublic boolean isNamed()
isNamed in class ColorExpressionpublic NamedColorExpression clone()
clone in interface PubliclyCloneableclone in class ColorExpressionCopyright © 2012-2015. All Rights Reserved.