org.eel.kitchen.jsonschema.format
Class CSSColorParser

java.lang.Object
  extended by org.parboiled.BaseActions<V>
      extended by org.parboiled.BaseParser<Object>
          extended by org.eel.kitchen.jsonschema.format.RepeatJoin
              extended by org.eel.kitchen.jsonschema.format.CSSColorParser
All Implemented Interfaces:
ContextAware<Object>

public class CSSColorParser
extends RepeatJoin

Parboiled grammar to match a CSS 2.1 color definitions The W3C says that a color can be either of:


Field Summary
 
Fields inherited from class org.parboiled.BaseParser
ANY, DEDENT, EMPTY, EOI, INDENT, NOTHING
 
Constructor Summary
CSSColorParser()
          Constructor Initializes the case insensitive color matchings.
 
Method Summary
 Rule CSSColor()
          Rule to match any CSS defined color (by name, hexadecimal or RGB)
 
Methods inherited from class org.parboiled.BaseParser
ACTION, AnyOf, AnyOf, AnyOf, Ch, CharRange, FirstOf, FirstOf, fromCharArray, fromCharLiteral, fromStringLiteral, IgnoreCase, IgnoreCase, IgnoreCase, newInstance, NoneOf, NoneOf, OneOrMore, OneOrMore, Optional, Optional, Sequence, Sequence, String, String, Test, Test, TestNot, TestNot, toRule, toRules, ZeroOrMore, ZeroOrMore
 
Methods inherited from class org.parboiled.BaseActions
currentChar, currentIndex, drop, drop, dup, getContext, hasError, inPredicate, match, matchedChar, matchEnd, matchLength, matchOrDefault, matchRange, matchStart, nodeSuppressed, peek, peek, poke, poke, pop, pop, position, push, push, pushAll, setContext, swap, swap3, swap4, swap5, swap6
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSSColorParser

public CSSColorParser()
Constructor Initializes the case insensitive color matchings.

Method Detail

CSSColor

public Rule CSSColor()
Rule to match any CSS defined color (by name, hexadecimal or RGB)

Returns:
the matching rule


Copyright © 2012. All Rights Reserved.