input
stringlengths 10
828
| output
stringlengths 5
107
|
---|---|
public void visit super constructor reference super constructor reference x | visits the specified super constructor reference |
public null literal create null literal return new null literal | creates a new |
public void visit super reference super reference x | visits the specified super reference |
public void visit this constructor reference this constructor reference x | visits the specified this constructor reference |
public void visit this reference this reference x | visits the specified this reference |
public string literal create string literal return new string literal | creates a new |
public void visit type reference type reference x | visits the specified type reference |
public void visit uncollated reference qualifier uncollated reference qualifier x | visits the specified uncollated reference qualifier |
public string literal create string literal string value return new string literal value | creates a new |
public void visit variable reference variable reference x | visits the specified variable reference |
protected void visit modifier modifier x | hook method that visits the specified modifier |
protected void visit literal literal x | hook method that visits the specified literal |
public verbatim string literal create verbatim string literal return new verbatim string literal | creates a new |
protected void visit operator operator x | hook method that visits the specified operator |
protected void visit variable declaration variable declaration x | visits the specified variable declaration |
public verbatim string literal create verbatim string literal string value return new verbatim string literal value | creates a new |
public void visit single line comment single line comment x visit comment x | visits the specified single line comment |
public void visit doc comment xml doc comment x visit comment x | visits the specified doc comment |
public pre defined type literal create pre defined type literal return new pre defined type literal | creates a new |
public void visit comment comment x | visits the specified comment |
public void visit operator declaration operator declaration x | method visit operator declaration |
public void visit indexer declaration indexer declaration indexer declaration | method visit indexer declaration |
public pre defined type literal create pre defined type literal string value return new pre defined type literal value | creates a new |
public void visit destructor declaration destructor declaration destructor declaration | method visit destructor declaration |
public void visit add accessor add accessor add accessor | method visit add accessor |
public array reference create array reference return new array reference | creates a new |
public void visit as as as | method visit as |
public void visit assembly target assembly target assembly target | method visit assembly target |
public void visit attribute attribute attribute | method visit attribute |
public void visit attribute section attribute section attribute section | method visit attribute section |
public void visit checked checked checked | method visit checked |
public field reference create field reference return new field reference | creates a new |
public void visit checked block checked block checked block | method visit checked block |
public void visit delegate declaration delegate declaration delegate declaration | method visit delegate declaration |
public void visit enum declaration enum declaration enum declaration | method visit enum declaration |
public field reference create field reference identifier id return new field reference id | creates a new |
public void visit event declaration event declaration event declaration | method visit event declaration |
public void visit extern extern extern | method visit extern |
public field reference create field reference reference prefix prefix identifier id return new field reference prefix id | creates a new |
public void visit get accessor get accessor get accessor | method visit get accessor |
public meta class reference create meta class reference return new meta class reference | creates a new |
public void visit member name member name member name | method visit member name |
public void visit out out out | method visit out |
public void visit out operator out operator out operator | method visit out operator |
public meta class reference create meta class reference type reference reference return new meta class reference reference | creates a new |
public int get index of child int position code return position code 4 | extracts the index of a child from its position code |
public int get role of child int position code return position code 15 | extracts the role of a child from its position code |
public method reference create method reference return new method reference | creates a new |
public void visit pre defined type literal pre defined type literal pre defined type literal | method visit pre defined type literal |
public void visit property declaration property declaration property declaration | method visit property declaration |
public method reference create method reference identifier name return new method reference name | creates a new |
public void visit readonly readonly readonly | method visit readonly |
public void visit ref operator ref operator ref operator | method visit ref operator |
public void visit remove accessor remove accessor remove accessor | method visit remove accessor |
private void copy array object dest int size size if size 0 if start end system arraycopy data start dest 0 size else int l1 data length start system arraycopy data start dest 0 l1 system arraycopy data 0 dest l1 end 1 | copies the data array to the given array |
private void grow int new size data length 2 if new size 0 new size 1 object new data new object new size if start 1 copy array new data end size 1 start 0 data new data | doubles the data array size and normalizes the indicees |
private void shrink if data length 31 object new data new object data length 2 if start 1 copy array new data end size 1 start 0 data new data | reduces the data array size and normalizes the indicees |
public void visit set accessor set accessor set accessor | method visit set accessor |
public void visit struct declaration struct declaration struct declaration | method visit struct declaration |
public void visit typeof typeof typeof | method visit typeof |
public void visit unchecked unchecked unchecked | method visit unchecked |
public void visit unchecked block unchecked block unchecked block | method visit unchecked block |
public void visit using block using block using block | method visit using block |
public void add item object todo add item todo allow duplicates | adds the given item to the worklist |
public void add item object todo boolean allow duplicates if allow duplicates contains todo impl enqueue todo int len size if len max len max len len | adds the given item to the worklist overriding the default |
public void visit static constructor declaration static constructor declaration static constructor declaration | method visit static constructor declaration |
public object get item if is empty return null else return impl first | retrieves the first item from the worklist |
public super constructor reference create super constructor reference return new super constructor reference | creates a new |
public object remove item return impl dequeue | removes the first item from the worklist and returns the removed item |
public boolean contains object x return impl contains x | determines whether or not the worklist contains some element |
public enumeration elements return impl elements | returns an enumeration of the elements within the list |
public int get maximum length return max len | returns the historical maximum length of the list |
private void grow stack file new stack new file stack length 2 system arraycopy stack 0 new stack 0 count stack new stack | for internal use |
public void visit attribute argument attribute argument attribute argument | method visit attribute argument |
public boolean next outer while count 0 current stack count pop while current is directory string content current list for int i content length 1 i 0 i 1 stack count new file current content i push if count stack length grow stack if count 0 break outer current stack count pop if current exists return true current null return false | proceed to the next file and return if this has been possible |
public boolean next string suffix while next if current get name ends with suffix return true return false | proceed to the next file with the given suffix and return if this |
public boolean next filename filter filter string pname file pfile null while next string p current get parent if p null p if pname equals p pname p pfile new file pname if filter accept pfile current get name return true return false | proceed to the next file that is accepted by the given filter and |
public file get file return current | fetch the current file or null if no one is available |
public void visit named attribute argument named attribute argument named attribute argument | method visit named attribute argument |
public void show usage string program name string params boolean detailed show usage system out program name params detailed | prints usage information to the standard output stream |
public vector get values string opt option description descr option description str2opt get opt if descr null return null return descr values | returns the values set for the given value |
public super constructor reference create super constructor reference expression mutable list arguments return new super constructor reference arguments | creates a new |
public object get value string opt vector vals get values opt if vals null vals size 0 return vals element at 0 else return null | retrieves the value set for the given option assumes single value |
public boolean is set string opt return get value opt true | returns true if the given flag option is set |
public boolean get boolean val string opt return get boolean val opt false | returns the boolean interpretation of the specified value |
public boolean get boolean val string opt boolean default val object v get value opt if v null return default val else return v true | returns the boolean interpretation of the specified value |
public int get int val string opt return get int val opt 0 | returns the integer interpretation of the specified value |
public int get int val string opt int default val object v get value opt if v true return 1 else if v false return 0 else try integer i integer v may raise class cast exception return i int value may raise null pointer exception catch exception e nothing to de here return default val | returns the integer interpretation of the specified value |
public string get string val string opt return get string val opt null | returns the string interpretation of the specified value |
public string get string val string opt string default val string result string get value opt if result null return default val else return result | returns the string interpretation of the specified value |
public long get object key int hash hasher hash code key int index 1640531527 hash ld for entry e table index e null e e next if e hash hash hasher equals e key key return e value return 1 l | retrieves the assigne long value for the given object |
public long put object key long value debug asserta value 0 int hash hasher hash code key int index 1640531527 hash ld for entry e table index e null e e next if e hash hash hasher equals e key key long old e value e value value return old if count table length rehash return put key value table index new entry hash key value table index count return 1 l | assigns the given long value to the specified key |
public void visit method target method target method target | method visit method target |
public super reference create super reference return new super reference | creates a new |
public void visit property target property target property target | method visit property target |
public super reference create super reference reference prefix access path return new super reference access path | creates a new |
public void visit internal internal internal | method visit internal |
public boolean equals object o if o instanceof object list return false object list list object list o if count list size return false if count 0 empty lists of different types are equals return true for int i 0 s list size i s i 1 object o1 array i object o2 list get object i if o1 o2 if o1 null o1 equals o2 return false return true | equality of lists |
public int hash code int c 0 for int i 0 i count i 1 c 31 c array i hash code return c | returns the hash code of this list |
public string to string string buffer res new string buffer res append if count 0 for int i 0 i count i 1 res append array i if i count 1 res append res append return res to string | returns a string representation of this list |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.