Lombok.ast - v0.2

lombok.ast.grammar
Class BasicsParser

java.lang.Object
  extended by org.parboiled.BaseActions<V>
      extended by org.parboiled.BaseParser<Node>
          extended by lombok.ast.grammar.BasicsParser
All Implemented Interfaces:
org.parboiled.ContextAware<Node>

public class BasicsParser
extends org.parboiled.BaseParser<Node>

Contains the basics of java parsing: Whitespace and comment handling, as well as applying backslash-u escapes.


Constructor Summary
BasicsParser(ParserGroup group)
           
 
Method Summary
 org.parboiled.Rule comment()
          Any comment (block, line, or javadoc)
 org.parboiled.Rule dotIdentifier()
           
 org.parboiled.Rule identifier()
           
 org.parboiled.Rule identifierPart()
           
 org.parboiled.Rule identifierRaw()
           
 org.parboiled.Rule lineTerminator()
           
 org.parboiled.Rule mandatoryWS()
          Eats up any whitespace and comments at the current position, but only matches if there is at least one comment or whitespace character to gobble up.
 org.parboiled.Rule optWS()
          Eats up any whitespace and comments at the current position.
 org.parboiled.Rule testLexBreak()
           
 
Methods inherited from class org.parboiled.BaseParser
ACTION, Any, CAPTURE, Ch, CharIgnoreCase, CharRange, CharSet, CharSet, CharSet, DOWN, DOWN2, DOWN3, DOWN4, DOWN5, DOWN6, Empty, Eoi, FirstOf, FirstOf, FromCharArray, FromCharLiteral, FromStringLiteral, newInstance, OneOrMore, Optional, Sequence, Sequence, String, String, StringIgnoreCase, StringIgnoreCase, Test, TestNot, ToRule, ToRules, UP, UP2, UP3, UP4, UP5, UP6, ZeroOrMore
 
Methods inherited from class org.parboiled.BaseActions
character, character, chars, chars, currentChar, getContext, hasError, inPredicate, lastChar, lastNode, lastText, lastValue, node, nodeByLabel, nodes, nodesByLabel, nodeSuppressed, prevChar, prevEnd, prevStart, prevText, prevValue, set, set, setContext, text, text, texts, texts, value, value, value, values, values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicsParser

public BasicsParser(ParserGroup group)
Method Detail

optWS

public org.parboiled.Rule optWS()
Eats up any whitespace and comments at the current position.


mandatoryWS

public org.parboiled.Rule mandatoryWS()
Eats up any whitespace and comments at the current position, but only matches if there is at least one comment or whitespace character to gobble up.


testLexBreak

public org.parboiled.Rule testLexBreak()

identifier

public org.parboiled.Rule identifier()

dotIdentifier

public org.parboiled.Rule dotIdentifier()

identifierRaw

public org.parboiled.Rule identifierRaw()

identifierPart

public org.parboiled.Rule identifierPart()

comment

public org.parboiled.Rule comment()
Any comment (block, line, or javadoc)

See Also:
JLS section 3.7

lineTerminator

public org.parboiled.Rule lineTerminator()
See Also:
JLS section 3.6

Lombok.ast - v0.2

Copyright © 2010-2011 The Project Lombok Authors, licensed under the MIT licence.