com.google.caja.lexer
Class CharProducer.Factory.CharProducerImpl

java.lang.Object
  extended by com.google.caja.lexer.CharProducer
      extended by com.google.caja.lexer.CharProducer.Factory.CharProducerImpl
All Implemented Interfaces:
java.lang.CharSequence
Enclosing class:
CharProducer.Factory

private static final class CharProducer.Factory.CharProducerImpl
extends CharProducer


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.caja.lexer.CharProducer
CharProducer.Factory
 
Field Summary
private  SourceBreaks breaks
           
private  int charInFile
           
 
Constructor Summary
(package private) CharProducer.Factory.CharProducerImpl(char[] buf, int limit, FilePosition pos)
           
private CharProducer.Factory.CharProducerImpl(CharProducer.Factory.CharProducerImpl orig)
           
 
Method Summary
 CharProducer clone()
          Returns a distinct instance initialized with the same offset and limit.
 int getCharInFile(int offset)
          The index of the character at getBuffer()[offset] in the input.
 SourceBreaks getSourceBreaks(int offset)
          The source breaks associated with getBuffer()[offset].
 
Methods inherited from class com.google.caja.lexer.CharProducer
charAt, consume, consumeTo, filePositionForOffsets, getBuffer, getCurrentPosition, getLength, getLimit, getOffset, isEmpty, length, subSequence, toString, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

breaks

private final SourceBreaks breaks

charInFile

private final int charInFile
Constructor Detail

CharProducer.Factory.CharProducerImpl

CharProducer.Factory.CharProducerImpl(char[] buf,
                                      int limit,
                                      FilePosition pos)

CharProducer.Factory.CharProducerImpl

private CharProducer.Factory.CharProducerImpl(CharProducer.Factory.CharProducerImpl orig)
Method Detail

getCharInFile

public int getCharInFile(int offset)
Description copied from class: CharProducer
The index of the character at getBuffer()[offset] in the input.

Specified by:
getCharInFile in class CharProducer

getSourceBreaks

public SourceBreaks getSourceBreaks(int offset)
Description copied from class: CharProducer
The source breaks associated with getBuffer()[offset].

Specified by:
getSourceBreaks in class CharProducer

clone

public CharProducer clone()
Description copied from class: CharProducer
Returns a distinct instance initialized with the same offset and limit.

Specified by:
clone in class CharProducer


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