input
stringlengths 10
828
| output
stringlengths 5
107
|
---|---|
public int get child count int result 0 if reference null result return result | returns the number of children of this node |
public program element get child at int index if reference null if index 0 return reference throw new array index out of bounds exception | returns the child at the specified index in this nodes virtual |
public int get child position code program element child role 0 namespaces if attr sections null int index attr sections index of child if index 0 return index 4 15 if namespaces null int index namespaces index of child if index 0 return index 4 0 if usings null int index usings index of child if index 0 return index 4 1 if type declarations null int index type declarations index of child if index 0 return index 4 2 return 0 | returns childs position codes |
public int get type reference count return reference instanceof type reference 1 0 | get the number of type references in this container |
public type reference get type reference return reference instanceof type reference type reference reference null | returns the type reference of this import if there is one |
public namespace reference get namespace reference return reference instanceof namespace reference namespace reference reference null | returns the package reference of this import if there is one |
public type reference infix get reference return reference | returns the reference of this import either a |
public struct declaration create struct declaration member declaration mutable list members return new struct declaration members | creates a new |
public boolean replace child program element p program element q if p null throw new null pointer exception if reference p type reference infix r type reference infix q reference r if r instanceof type reference type reference r set parent this else if r instanceof namespace reference namespace reference r set parent this is multi import true return true return false | replace a single child in the current node |
public namespace specification mutable list get namespaces return namespaces | returns the namespaces |
public void set namespaces namespace specification mutable list namespaces this namespaces namespaces | sets the namespaces |
public constructor declaration create constructor declaration return new constructor declaration | creates a new |
public using mutable list get usings return usings | returns the usings |
public void set usings using mutable list usings this usings usings | sets the usings |
public static constructor declaration create static constructor declaration return new static constructor declaration | creates a new |
public namespace specification list get namespace specifications return namespaces | method get namespace specifications |
public string get name return reference get full name | returns the not fully qualified name of the namespace |
public destructor declaration create destructor declaration return new destructor declaration | creates a new |
public void set reference prefix reference prefix x prefix x | sets the reference prefix |
public throws create throws return new throws | creates a new |
public throws create throws type reference exception return new throws exception | creates a new |
public throws create throws type reference mutable list list return new throws list | creates a new |
public field declaration create field declaration return new field declaration | creates a new |
public constant field declaration create constant field declaration return new constant field declaration | creates a new |
public non terminal program element get astparent if access parent null return access parent else return parent | get ast parent |
public int get child count return name null 1 0 | returns the number of children of this node |
public program element get child at int index if name null if index 0 return name throw new array index out of bounds exception | returns the child at the specified index in this nodes virtual |
public reference suffix get reference suffix return access parent | get reference suffix |
public void set reference suffix reference suffix path this access parent path | set reference suffix |
public boolean replace child program element p program element q if p null throw new null pointer exception if name p identifier r identifier q name r if r null r set parent this return true return false | replace a single child in the current node |
public expression container get expression container return parent | get expression container |
public enum declaration create enum declaration return new enum declaration | creates a new |
public int get type reference count return type reference null 1 0 | get the number of type references in this container |
public enum member declaration create enum member declaration identifier id return new enum member declaration id | creates a new |
public statement container get statement container return statement parent | get statement container |
public property declaration create property declaration return new property declaration | creates a new |
public extends create extends return new extends | creates a new |
public extends create extends type reference supertype return new extends supertype | creates a new |
public non terminal program element get astparent if expression parent null return expression parent else if access parent null return access parent else return statement parent | get ast parent |
public program element get child at int index if children null return children get program element index throw new array index out of bounds exception | returns the child at the specified index in this nodes virtual |
public extends create extends type reference mutable list list return new extends list | creates a new |
public implements create implements return new implements | creates a new |
public type reference get interface type return interface type | returns the interface type |
public implements create implements type reference supertype return new implements supertype | creates a new |
public implements create implements type reference mutable list list return new implements list | creates a new |
public interface declaration create interface declaration return new interface declaration | creates a new |
public void set writer writer out if out null throw new illegal argument exception impossible to write to null this out out column 1 line 1 single line comment work list clear is printing single line comments false | set a new stream to write to |
public writer get writer return out | gets the currently used writer |
public local variable declaration create local variable declaration return new local variable declaration | creates a new |
public int get indentation level return level | get indentation level |
public int get child count int result 0 if identifier null result if reference null result return result | returns the number of children of this node |
public program element get child at int index if identifier null if index 0 return identifier index if reference null if index 0 return reference index throw new array index out of bounds exception | returns the child at the specified index in this nodes virtual |
public boolean replace child program element p program element q if p null throw new null pointer exception if reference p type reference infix r type reference infix q reference r if r instanceof type reference type reference r set parent this else if r instanceof namespace reference namespace reference r set parent this is multi import true return true if identifier p identifier r identifier p identifier r if r null r set parent this return false | replace a single child in the current node |
public int get total indentation return indentation level | get total indentation |
public local constant declaration create local constant declaration return new local constant declaration | creates a new |
public void visit compilation unit compilation unit x | visits the specified compilation unit |
public void visit identifier identifier x | visits the specified identifier |
protected void print indentation int lf int blanks if lf 0 do int n math min lf feeds length print feeds 0 n lf n while lf 0 while blanks 0 int n math min blanks blanks length print blanks 0 n blanks n | convenience method to write indentation chars |
public void visit using using x | visits the specified import |
public void visit namespace specification namespace specification x | visits the specified package specification |
public void visit statement block statement block x | visits the specified statement block |
public void visit class declaration class declaration x | visits the specified class declaration |
public void visit constructor declaration constructor declaration x visit method declaration x | visits the specified constructor declaration |
public void visit extends extends x | visits the specified extends |
public void visit field declaration field declaration x visit variable declaration x | visits the specified field declaration |
public void visit implements implements x | visits the specified implements clause |
public void visit interface declaration interface declaration x | visits the specified interface declaration |
public operator declaration create operator declaration return new operator declaration | creates a new |
public void visit local variable declaration local variable declaration x visit variable declaration x | visits the specified local variable declaration |
public void visit method declaration method declaration x | visits the specified method declaration |
public delegate declaration create delegate declaration return new delegate declaration | creates a new |
public void visit parameter declaration parameter declaration x visit variable declaration x | visits the specified parameter declaration |
public void visit throws throws x | visits the specified throws clause |
public void visit variable specification variable specification x | visits the specified variable specification |
public method declaration create method declaration return new method declaration | creates a new |
public void visit field specification field specification x visit variable specification x | visits the specified field specification |
public void visit abstract abstract x visit modifier x | visits the specified abstract modifier |
public void visit sealed sealed x visit modifier x | visits the specified final modifier |
public void visit private private x visit modifier x | visits the specified private modifier |
public void visit protected protected x visit modifier x | visits the specified protected modifier |
public void visit public public x visit modifier x | visits the specified public modifier |
public void visit static static x visit modifier x | visits the specified static modifier |
protected void print keyword list program element list list print program element list 0 0 0 0 1 list | write a complete program element list using keyword style |
public void visit ref ref x visit modifier x | visits the specified strictfp modifier |
public void visit volatile volatile x visit modifier x | visits the specified volatile modifier |
public parameter declaration create parameter declaration return new parameter declaration | creates a new |
public void visit array initializer array initializer x | visits the specified array initializer |
public void visit parenthesized expression parenthesized expression x | visits the specified parenthesized expression |
public void visit boolean literal boolean literal x visit literal x | visits the specified boolean literal |
public void visit char literal char literal x visit literal x | visits the specified char literal |
public void visit double literal double literal x visit literal x | visits the specified double literal |
public void visit float literal float literal x visit literal x | visits the specified float literal |
public void visit int literal int literal x visit literal x | visits the specified int literal |
public void visit long literal long literal x visit literal x | visits the specified long literal |
public variable specification create variable specification return new variable specification | creates a new |
public void visit null literal null literal x visit literal x | visits the specified null literal |
public void visit string literal string literal x visit literal x | visits the specified string literal |
public variable specification create variable specification identifier name return new variable specification name | creates a new |
public void visit binary and binary and x visit operator x | visits the specified binary and operator |
public void visit binary and assignment binary and assignment x visit operator x | visits the specified binary and assignment operator |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.