input
stringlengths 10
828
| output
stringlengths 5
107
|
---|---|
protected void print int c if c n if is printing single line comments dump comments column 1 line 1 else column 1 try out write c catch ioexception ioe throw new pretty printing exception ioe | write a single character |
public void visit binary not binary not x visit operator x | visits the specified binary not operator |
public void visit binary or binary or x visit operator x | visits the specified binary or operator |
protected void print char cbuf int off int len boolean col false for int i off len 1 i off i 1 if cbuf i n if is printing single line comments dump comments line 1 if col column off len 1 i 1 col true if col column len int i for i off len 1 i off cbuf i n i 1 column i off off len 1 i column len try out write cbuf off len catch ioexception ioe throw new pretty printing exception ioe | write a sequence of characters |
public void visit binary or assignment binary or assignment x visit operator x | visits the specified binary or assignment operator |
public constant specification create constant specification return new constant specification | creates a new |
public void visit binary xor binary xor x visit operator x | visits the specified binary xor operator |
protected void print string str int i str last index of n if i 0 column str length i 1 1 do dump comments line 1 i str last index of n i 1 while i 0 else column str length try out write str catch ioexception ioe throw new pretty printing exception ioe | writes a string |
public void visit binary xor assignment binary xor assignment x visit operator x | visits the specified binary xor assignment operator |
public void visit conditional conditional x visit operator x | visits the specified conditional operator |
public constant specification create constant specification identifier name return new constant specification name | creates a new |
public void visit copy assignment copy assignment x visit operator x | visits the specified copy assignment operator |
public void visit divide divide x visit operator x | visits the specified divide operator |
public void visit divide assignment divide assignment x visit operator x | visits the specified divide assignment operator |
public void visit equals equals x visit operator x | visits the specified equals operator |
protected int get indentation return indentation | get indentation amount blanks per level |
public void visit greater or equals greater or equals x visit operator x | visits the specified greater or equals operator |
public field specification create field specification return new field specification | creates a new |
public void visit greater than greater than x visit operator x | visits the specified greater than operator |
protected boolean is overwriting indentation return overwrite indentation | returns true if the pretty printer should also reformat existing |
public void visit instanceof instanceof x visit operator x | visits the specified instanceof operator |
public field specification create field specification identifier name return new field specification name | creates a new |
public void visit less or equals less or equals x visit operator x | visits the specified less or equals operator |
public void visit less than less than x visit operator x | visits the specified less than operator |
protected boolean is overwriting parse positions return overwrite parse positions | returns true if the pretty printer should reset the parse positions |
public void visit logical and logical and x visit operator x | visits the specified logical and operator |
public void visit logical not logical not x visit operator x | visits the specified logical not operator |
public void visit logical or logical or x visit operator x | visits the specified logical or operator |
public constant field specification create constant field specification return new constant field specification | creates a new |
public void visit minus minus x visit operator x | visits the specified minus operator |
public void visit minus assignment minus assignment x visit operator x | visits the specified minus assignment operator |
public void visit modulo modulo x visit operator x | visits the specified modulo operator |
public constant field specification create constant field specification identifier name return new constant field specification name | creates a new |
public void visit modulo assignment modulo assignment x visit operator x | visits the specified modulo assignment operator |
public void visit negative negative x visit operator x | visits the specified negative operator |
public void visit new new x visit operator x | visits the specified new operator |
public void visit new array new array x visit operator x | visits the specified new array operator |
public array initializer create array initializer return new array initializer | creates a new |
public void visit not equals not equals x visit operator x | visits the specified not equals operator |
public void visit plus plus x visit operator x | visits the specified plus operator |
protected void print footer program element x also in visit comment if overwrite parse positions overwrite position set position line column x set end position overwrite position int s x get comments null x get comments size 0 for int i 0 i s i 1 comment c x get comments get comment i if c is prefixed if c instanceof single line comment store until the next line feed is written single line comment work list add single line comment c else c accept this | sets end positions if required and prints program element footer |
public void visit plus assignment plus assignment x visit operator x | visits the specified plus assignment operator |
public array initializer create array initializer expression mutable list args return new array initializer args | creates a new |
public void visit positive positive x visit operator x | visits the specified positive operator |
public void visit post decrement post decrement x visit operator x | visits the specified post decrement operator |
public parenthesized expression create parenthesized expression return new parenthesized expression | creates a new |
public void visit post increment post increment x visit operator x | visits the specified post increment operator |
public void visit pre decrement pre decrement x visit operator x | visits the specified pre decrement operator |
public parenthesized expression create parenthesized expression expression child return new parenthesized expression child | creates a new |
public void visit pre increment pre increment x visit operator x | visits the specified pre increment operator |
public void visit shift left shift left x visit operator x | visits the specified shift left operator |
public void visit shift left assignment shift left assignment x visit operator x | visits the specified shift left assignment operator |
public boolean literal create boolean literal return new boolean literal | creates a new |
public void visit shift right shift right x visit operator x | visits the specified shift right operator |
public void visit shift right assignment shift right assignment x visit operator x | visits the specified shift right assignment operator |
public boolean literal create boolean literal boolean value return new boolean literal value | creates a new |
public void visit times times x visit operator x | visits the specified times operator |
public void visit times assignment times assignment x visit operator x | visits the specified times assignment operator |
public char literal create char literal return new char literal | creates a new |
public void visit type cast type cast x visit operator x | visits the specified type cast operator |
public void visit break break x | visits the specified break statement |
public char literal create char literal char value return new char literal value | creates a new |
public void visit case case x | visits the specified case statement |
public void visit catch catch x | visits the specified catch branch |
public char literal create char literal string value return new char literal value | creates a new |
public void visit continue continue x | visits the specified continue statement |
public double literal create double literal return new double literal | creates a new |
public void visit default default x | visits the specified default branch |
public void visit do do x | visits the specified do statement |
public double literal create double literal double value return new double literal value | creates a new |
public void visit else else x | visits the specified else branch |
public void visit empty statement empty statement x | visits the specified empty statement |
public double literal create double literal string value return new double literal value | creates a new |
public void visit finally finally x | visits the specified finally branch |
public float literal create float literal return new float literal | creates a new |
public void visit for for x | visits the specified for statement |
public void visit assert assert x | visits the specified assert statement |
public float literal create float literal float value return new float literal value | creates a new |
public void visit if if x | visits the specified if statement |
public float literal create float literal string value return new float literal value | creates a new |
public void visit labeled statement labeled statement x | visits the specified labeled statement |
public void visit return return x | visits the specified return statement |
public int literal create int literal return new int literal | creates a new |
public void visit switch switch x | visits the specified switch statement |
public void visit locked block locked block x | visits the specified synchronized block |
public int literal create int literal int value return new int literal value | creates a new |
public void visit then then x | visits the specified then branch |
public void visit throw throw x | visits the specified throw statement |
public int literal create int literal string value return new int literal value | creates a new |
public void visit try try x | visits the specified try statement |
public void visit while while x | visits the specified while statement |
public long literal create long literal return new long literal | creates a new |
public void visit array reference array reference x | visits the specified array reference |
public void visit array length reference array length reference x | visits the specified array length reference |
public long literal create long literal long value return new long literal value | creates a new |
public void visit field reference field reference x | visits the specified field reference |
public void visit meta class reference meta class reference x | visits the specified meta class reference |
public void visit method reference method reference x | visits the specified method reference |
public long literal create long literal string value return new long literal value | creates a new |
public void visit namespace reference namespace reference x | visits the specified package reference |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.