com.google.caja.parser.css
Class CssParser.RecoveryStrategy

java.lang.Object
  extended by com.google.caja.parser.css.CssParser.RecoveryStrategy
Enclosing class:
CssParser

private abstract static class CssParser.RecoveryStrategy
extends java.lang.Object

After a parse failure, consumes tokens from the stream until we are at a likely good position.


Constructor Summary
private CssParser.RecoveryStrategy()
           
 
Method Summary
(package private) abstract  void recover(CssParser p, TokenQueue.Mark start)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CssParser.RecoveryStrategy

private CssParser.RecoveryStrategy()
Method Detail

recover

abstract void recover(CssParser p,
                      TokenQueue.Mark start)
               throws ParseException
Parameters:
p - a parser with a token queue positioned after a parse failure.
start - the position of the start of the malformed construct. This is used to report which tokens are being discarded without producing content.
Throws:
ParseException


Copyright (C) 2008 Google Inc.
Licensed under the Apache License, Version 2.0