com.google.googlejavaformat.CommentsHelper Java Examples

The following examples show how to use com.google.googlejavaformat.CommentsHelper. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JavaOutput.java    From java-n-IDE-for-Android with Apache License 2.0 5 votes vote down vote up
/**
 * {@code JavaOutput} constructor.
 *
 * @param javaInput      the {@link JavaInput}, used to match up blank lines in the output
 * @param commentsHelper the {@link CommentsHelper}, used to rewrite comments
 */
public JavaOutput(String lineSeparator, JavaInput javaInput, CommentsHelper commentsHelper) {
    this.lineSeparator = lineSeparator;
    this.javaInput = javaInput;
    this.commentsHelper = commentsHelper;
    kN = javaInput.getkN();
}
 
Example #2
Source File: JavaOutput.java    From javaide with GNU General Public License v3.0 5 votes vote down vote up
/**
 * {@code JavaOutput} constructor.
 *
 * @param javaInput      the {@link JavaInput}, used to match up blank lines in the output
 * @param commentsHelper the {@link CommentsHelper}, used to rewrite comments
 */
public JavaOutput(String lineSeparator, JavaInput javaInput, CommentsHelper commentsHelper) {
    this.lineSeparator = lineSeparator;
    this.javaInput = javaInput;
    this.commentsHelper = commentsHelper;
    kN = javaInput.getkN();
}
 
Example #3
Source File: JavaOutput.java    From google-java-format with Apache License 2.0 5 votes vote down vote up
/**
 * {@code JavaOutput} constructor.
 *
 * @param javaInput the {@link Input}, used to match up blank lines in the output
 * @param commentsHelper the {@link CommentsHelper}, used to rewrite comments
 */
public JavaOutput(String lineSeparator, Input javaInput, CommentsHelper commentsHelper) {
  this.lineSeparator = lineSeparator;
  this.javaInput = javaInput;
  this.commentsHelper = commentsHelper;
  kN = javaInput.getkN();
}
 
Example #4
Source File: JavaOutput.java    From java-n-IDE-for-Android with Apache License 2.0 4 votes vote down vote up
@Override
public CommentsHelper getCommentsHelper() {
    return commentsHelper;
}
 
Example #5
Source File: JavaOutput.java    From javaide with GNU General Public License v3.0 4 votes vote down vote up
@Override
public CommentsHelper getCommentsHelper() {
    return commentsHelper;
}
 
Example #6
Source File: JavaOutput.java    From google-java-format with Apache License 2.0 4 votes vote down vote up
@Override
public CommentsHelper getCommentsHelper() {
  return commentsHelper;
}