@Override public Void visitComment(final Comment comment, final Void ignored) { if (lastWritten == LastWritten.Division) { formatter.space(); } formatter.startNode(comment); formatter.writeComment(comment.getCommentType(), comment.getContent()); formatter.endNode(comment); lastWritten = LastWritten.Whitespace; return null; }
public List<LineNumberPosition> getLineNumberPositions() { return this.formatter.getLineNumberPositions(); }
Object reference; reference = getCurrentLocalReference(); reference = getCurrentMemberReference(); reference = getCurrentTypeReference(); reference = getCurrentPackageReference(); Object definition = getCurrentDefinition(); definition = getCurrentLocalDefinition();
public JavaOutputVisitor(final ITextOutput output, final DecompilerSettings settings) { this.output = output; this.settings = VerifyArgument.notNull(settings, "settings"); this.formatter = new TextOutputFormatter( output, settings.getShowDebugLineNumbers() ? LineNumberMode.WITH_DEBUG_LINE_NUMBERS : LineNumberMode.WITHOUT_DEBUG_LINE_NUMBERS ); final JavaFormattingOptions formattingOptions = settings.getFormattingOptions(); this.policy = formattingOptions != null ? formattingOptions : JavaFormattingOptions.createDefault(); }
void endNode(final AstNode node) { assert node == containerStack.peek(); final AstNode position = positionStack.pop(); assert position == null || position.getParent() == node; writeSpecials(position, null); containerStack.pop(); formatter.endNode(node); }
void closeBrace(final BraceStyle style) { writeSpecialsUpToRole(Roles.RIGHT_BRACE); formatter.closeBrace(style); lastWritten = LastWritten.Other; }
Object reference; reference = getCurrentLocalReference(); reference = getCurrentMemberReference(); reference = getCurrentTypeReference(); reference = getCurrentPackageReference(); Object definition = getCurrentDefinition(); definition = getCurrentLocalDefinition();
public JavaOutputVisitor(final ITextOutput output, final DecompilerSettings settings) { this.output = output; this.settings = VerifyArgument.notNull(settings, "settings"); this.formatter = new TextOutputFormatter( output, settings.getShowDebugLineNumbers() ? LineNumberMode.WITH_DEBUG_LINE_NUMBERS : LineNumberMode.WITHOUT_DEBUG_LINE_NUMBERS ); final JavaFormattingOptions formattingOptions = settings.getFormattingOptions(); this.policy = formattingOptions != null ? formattingOptions : JavaFormattingOptions.createDefault(); }
void endNode(final AstNode node) { assert node == containerStack.peek(); final AstNode position = positionStack.pop(); assert position == null || position.getParent() == node; writeSpecials(position, null); containerStack.pop(); formatter.endNode(node); }
void closeBrace(final BraceStyle style) { writeSpecialsUpToRole(Roles.RIGHT_BRACE); formatter.closeBrace(style); lastWritten = LastWritten.Other; }
Object reference; reference = getCurrentLocalReference(); reference = getCurrentMemberReference(); reference = getCurrentTypeReference(); reference = getCurrentPackageReference(); Object definition = getCurrentDefinition(); definition = getCurrentLocalDefinition();
@Override public Void visitComment(final Comment comment, final Void ignored) { if (lastWritten == LastWritten.Division) { formatter.space(); } formatter.startNode(comment); formatter.writeComment(comment.getCommentType(), comment.getContent()); formatter.endNode(comment); lastWritten = LastWritten.Whitespace; return null; }
public JavaOutputVisitor(final ITextOutput output, final DecompilerSettings settings) { this.output = output; this.settings = VerifyArgument.notNull(settings, "settings"); this.formatter = new TextOutputFormatter( output, settings.getShowDebugLineNumbers() ? LineNumberMode.WITH_DEBUG_LINE_NUMBERS : LineNumberMode.WITHOUT_DEBUG_LINE_NUMBERS ); final JavaFormattingOptions formattingOptions = settings.getJavaFormattingOptions(); this.policy = formattingOptions != null ? formattingOptions : JavaFormattingOptions.createDefault(); }
void endNode(final AstNode node) { assert node == containerStack.peek(); final AstNode position = positionStack.pop(); assert position == null || position.getParent() == node; writeSpecials(position, null); containerStack.pop(); formatter.endNode(node); }
void closeBrace(final BraceStyle style) { writeSpecialsUpToRole(Roles.RIGHT_BRACE); formatter.closeBrace(style); lastWritten = LastWritten.Other; }
public List<LineNumberPosition> getLineNumberPositions() { return this.formatter.getLineNumberPositions(); }
@Override public Void visitComment(final Comment comment, final Void ignored) { if (lastWritten == LastWritten.Division) { formatter.space(); } formatter.startNode(comment); formatter.writeComment(comment.getCommentType(), comment.getContent()); formatter.endNode(comment); lastWritten = LastWritten.Whitespace; return null; }