Example usage for org.eclipse.jdt.core.search SearchDocument getCharContents

List of usage examples for org.eclipse.jdt.core.search SearchDocument getCharContents

Introduction

In this page you can find the example usage for org.eclipse.jdt.core.search SearchDocument getCharContents.

Prototype

public abstract char[] getCharContents();

Source Link

Document

Returns the contents of this document.

Usage

From source file:org.eclipse.ajdt.core.codeconversion.AJSourceIndexerRequestor.java

License:Open Source License

/**
 * @return// w  w w . ja v  a2 s  .co m
 */
private char[] getContents() {
    SearchDocument searchDocument = (SearchDocument) ReflectionUtils.getPrivateField(AbstractIndexer.class,
            "document", indexer);
    if (searchDocument != null) {
        return searchDocument.getCharContents();
    } else {
        return new char[0];
    }
}