com.google.caja.lexer
Class CharProducer.Factory.CharProducerImpl
java.lang.Object
com.google.caja.lexer.CharProducer
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
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 |
breaks
private final SourceBreaks breaks
charInFile
private final int charInFile
CharProducer.Factory.CharProducerImpl
CharProducer.Factory.CharProducerImpl(char[] buf,
int limit,
FilePosition pos)
CharProducer.Factory.CharProducerImpl
private CharProducer.Factory.CharProducerImpl(CharProducer.Factory.CharProducerImpl orig)
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