input
stringlengths 10
828
| output
stringlengths 5
107
|
---|---|
public void set expression expression expression if expression null throw new illegal argument exception a conditional expression may occur inside an expression must check cycles replace child this condition expression expression true this condition expression expression | sets the condition of this conditional expression |
public expression get then expression if then expression null lazy initialize use setter to ensure parent link set too long count get ast modification count set then expression new simple name get ast get ast set modification count count return then expression | returns the then part of this conditional expression |
public void set qualifier name name a super method invocation cannot occur inside a name replace child this optional qualifier name false this optional qualifier name | sets or clears the qualifier of this super method invocation expression |
public void set then expression expression expression if expression null throw new illegal argument exception a conditional expression may occur inside an expression must check cycles replace child this then expression expression true this then expression expression | sets the then part of this conditional expression |
public void set name simple name name if name null throw new illegal argument exception replace child this method name name false this method name name | sets the name of the method invoked in this expression to the |
public expression get else expression if else expression null lazy initialize use setter to ensure parent link set too long count get ast modification count set else expression new simple name get ast get ast set modification count count return else expression | returns the else part of this conditional expression |
public void set else expression expression expression if expression null throw new illegal argument exception a conditional expression may occur inside an expression must check cycles replace child this else expression expression true this else expression expression | sets the else part of this conditional expression |
public imethod binding resolve method binding return get ast get binding resolver resolve method this | resolves and returns the binding for the method invoked by this |
public string to string return token | returns the character sequence for the operator |
public void set expression expression expression if expression null throw new illegal argument exception an if statement may occur inside an expression must check cycles replace child this expression expression true this expression expression | sets the condition of this if statement |
public statement get then statement if then statement null lazy initialize use setter to ensure parent link set too long count get ast modification count set then statement new block get ast get ast set modification count count return then statement | returns the then part of this if statement |
public void set operator infix expression operator operator if operator null throw new illegal argument exception modifying this operator operator | sets the operator of this infix expression |
public void set then statement statement statement if statement null throw new illegal argument exception an if statement may occur inside a statement must check cycles replace child this then statement statement true this then statement statement | sets the then part of this if statement |
public statement get else statement return optional else statement | returns the else part of this if statement or code null code if |
public expression get left operand if left operand null lazy initialize use setter to ensure parent link set too long count get ast modification count set left operand new simple name get ast get ast set modification count count return left operand | returns the left operand of this infix expression |
public void set else statement statement statement an if statement may occur inside a statement must check cycles replace child this optional else statement statement true this optional else statement statement | sets or clears the else part of this if statement |
public void set left operand expression expression if expression null throw new illegal argument exception an infix expression may occur inside a expression must check cycles replace child this left operand expression true this left operand expression | sets the left operand of this infix expression |
public expression get right operand if right operand null lazy initialize use setter to ensure parent link set too long count get ast modification count set right operand new simple name get ast get ast set modification count count return right operand | returns the right operand of this infix expression |
public void set expression expression expression if expression null throw new illegal argument exception a field access may occur inside an expression must check cycles replace child astnode this expression astnode expression true this expression expression | sets the expression of this field access expression |
public void set right operand expression expression if expression null throw new illegal argument exception an infix expression may occur inside a expression must check cycles replace child this right operand expression true this right operand expression | sets the right operand of this infix expression |
public simple name get name if field name null lazy initialize use setter to ensure parent link set too long count get ast modification count set name new simple name get ast get ast set modification count count return field name | returns the name of the field accessed in this field access expression |
public void set name simple name field name if field name null throw new illegal argument exception a field access cannot occur inside a simple name replace child this field name field name false this field name field name | sets the name of the field accessed in this field access expression |
public boolean has extended operands return extended operands null extended operands size 0 | returns where there are any extended operands |
public list extended operands if extended operands null lazily initialize extended operands new astnode node list true expression class return extended operands | returns the live list of extended operands |
public void set label simple name label a break statement cannot occur inside a simple name no cycles replace child this optional label label false this optional label label | sets or clears the label of this break statement |
public expression get array if array expression null lazy initialize use setter to ensure parent link set too long count get ast modification count set array new simple name get ast get ast set modification count count return array expression | returns the array expression of this array access expression |
public void set array expression expression if expression null throw new illegal argument exception an array access may occur inside an expression must check cycles replace child this array expression expression true this array expression expression | sets the array expression of this array access expression |
public expression get index if index expression null lazy initialize use setter to ensure parent link set too long count get ast modification count set index new simple name get ast get ast set modification count count return index expression | returns the index expression of this array access expression |
public void set index expression expression if expression null throw new illegal argument exception an array access may occur inside an expression must check cycles replace child this index expression expression true this index expression expression | sets the index expression of this array access expression |
public package declaration get package return optional package declaration | returns the node for the package declaration of this compilation |
public void set expression expression expression a return statement may occur inside an expression must check cycles replace child this optional expression expression true this optional expression expression | sets or clears the expression of this return statement |
public simple name get label if label name null lazy initialize use setter to ensure parent link set too long count get ast modification count set label new simple name get ast get ast set modification count count return label name | returns the label of this labeled statement |
public void set package package declaration pkg decl replace child this optional package declaration pkg decl false this optional package declaration pkg decl | sets or clears the package declaration of this compilation unit |
public void set label simple name label if label null throw new illegal argument exception replace child this label name label false this label name label | sets the label of this labeled statement |
public statement get body if body null lazy initialize use setter to ensure parent link set too long count get ast modification count set body new empty statement get ast get ast set modification count count return body | returns the body of this labeled statement |
public void set body statement statement if statement null throw new illegal argument exception a labeled statement may occur inside a statement must check cycles replace child this body statement true this body statement | sets the body of this labeled statement |
public list imports return imports | returns the live list of nodes for the import declaration of this |
public list variables return variables | returns the live list of nodes for the variable declaration of this |
public void set operator prefix expression operator operator if operator null throw new illegal argument exception modifying this operator operator | sets the operator of this prefix expression |
public expression get operand if operand null lazy initialize use setter to ensure parent link set too long count get ast modification count set operand new simple name get ast get ast set modification count count return operand | returns the operand of this prefix expression |
public void set operand expression expression if expression null throw new illegal argument exception a prefix expression may occur inside a expression must check cycles replace child this operand expression true this operand expression | sets the operand of this prefix expression |
public astnode find declaring node ibinding binding return get ast get binding resolver find declaring node binding | finds the corresponding ast node in the given compilation unit from |
public string get result convert to a string but lose any extra space in the string buffer by copying return new string buffer to string | returns the string accumulated in the visit |
public astnode find declaring node string key return get ast get binding resolver find declaring node key | finds the corresponding ast node in the given compilation unit from |
public void reset buffer set length 0 | resets this printer so that it can be used again |
public void set expression expression expression if expression null throw new illegal argument exception a synchronized statement may occur inside an expression must check cycles replace child this expression expression true this expression expression | sets the expression of this synchronized statement |
public void set body block block if block null throw new illegal argument exception a while statement may occur inside a statement must check cycles replace child this body block true this body block | sets the body of this synchronized statement |
public type declaration get type declaration if type decl null lazy initialize use setter to ensure parent link set too long count get ast modification count set type declaration new type declaration get ast get ast set modification count count return type decl | returns the type declaration of this local type declaration |
public void set type declaration type declaration decl if decl null throw new illegal argument exception a type declaration statement may occur inside an type declaration must check cycles replace child this type decl decl true this type decl decl | sets the type declaration of this local type declaration |
public itype binding resolve binding forward request to the wrapped type declaration type declaration d get type declaration return d resolve binding | resolves and returns the binding for the class or interface declared in |
public expression get expression if expression initialized lazy initialize use setter to ensure parent link set too long count get ast modification count set expression new simple name get ast get ast set modification count count return optional expression | returns the expression of this switch case or |
public void set expression expression expression a return statement may occur inside an expression must check cycles replace child this optional expression expression true this optional expression expression expression initialized true | sets the expression of this switch case or clears it turns it into |
public boolean is default return get expression null | returns whether this switch case represents the default case |
public itype binding resolve type binding return get ast get binding resolver resolve expression type this | resolves and returns the binding for the type of this expression |
public void set expression expression expression a method invocation may occur inside an expression must check cycles replace child this optional expression expression true this optional expression expression | sets or clears the expression of this method invocation expression |
public void set expression expression expression if expression null throw new illegal argument exception an assert statement may occur inside an expression must check cycles replace child this expression expression true this expression expression | sets the first expression of this assert statement |
public expression get message return optional message expression | returns the message expression of this assert statement or |
public void set message expression expression an asert statement may occur inside an expression must check cycles replace child this optional message expression expression true this optional message expression expression | sets or clears the message expression of this assert statement |
public void set type type type if type null throw new illegal argument exception replace child astnode this type astnode type false this type type | sets the type in this type literal expression to the given type |
public expression get expression if expression null lazy initialize use setter to ensure parent link set too long count get ast modification count set expression new method invocation get ast get ast set modification count count return expression | returns the expression of this expression statement |
public void set expression expression expression if expression null throw new illegal argument exception an expression statement may occur inside an expression must check cycles replace child this expression expression true this expression expression | sets the expression of this expression statement |
public void set qualifier name name a super field access cannot occur inside a name no cycle check replace child this optional qualifier name false this optional qualifier name | sets or clears the qualifier of this super field access expression |
public long modification count return mod count | returns the modification count for this ast |
public itype binding resolve well known type string name if name null throw new illegal argument exception return get binding resolver resolve well known type name | returns the type binding for a well known type |
public simple name new simple name string identifier if identifier null throw new illegal argument exception simple name result new simple name this result set identifier identifier return result | creates and returns a new unparented simple name node for the given |
public name new name string identifiers int count identifiers length if count 0 throw new illegal argument exception name result new simple name identifiers 0 for int i 1 i count i simple name name new simple name identifiers i result new qualified name result name return result | creates and returns a new unparented name node for the given name |
public simple type new simple type name type name simple type result new simple type this result set name type name return result | creates and returns a new unparented simple type node with the given |
public array type new array type type component type array type result new array type this result set component type component type return result | creates and returns a new unparented array type node with the given |
public array type new array type type element type int dimensions if element type null element type is array type throw new illegal argument exception if dimensions 1 dimensions 1000 we would blow our stacks anyway with a 1000 d array throw new illegal argument exception array type result new array type this result set component type element type for int i 2 i dimensions i result new array type result return result | creates and returns a new unparented array type node with the given |
public primitive type new primitive type primitive type code type code primitive type result new primitive type this result set primitive type code type code return result | creates and returns a new unparented primitive type node with the given |
public compilation unit new compilation unit return new compilation unit this | creates an unparented compilation unit node owned by this ast |
public package declaration new package declaration package declaration result new package declaration this return result | creates an unparented package declaration node owned by this ast |
public import declaration new import declaration import declaration result new import declaration this return result | creates an unparented import declaration node owned by this ast |
public type declaration new type declaration type declaration result new type declaration this result set interface false return result | creates an unparented class declaration node owned by this ast |
public method declaration new method declaration method declaration result new method declaration this result set constructor false return result | creates an unparented method declaration node owned by this ast |
public single variable declaration new single variable declaration single variable declaration result new single variable declaration this return result | creates an unparented single variable declaration node owned by this ast |
public variable declaration fragment new variable declaration fragment variable declaration fragment result new variable declaration fragment this return result | creates an unparented variable declaration fragment node owned by this |
public initializer new initializer initializer result new initializer this return result | creates an unparented initializer node owned by this ast with an |
public harbourdoc new harbourdoc harbourdoc result new harbourdoc this return result | creates and returns a new harbourdoc comment node |
protected void store modification count long modification count this modification count modification count | store the number of modifications done using the ast |
public block new block return new block this | creates an unparented block node owned by this ast for an empty list |
public continue statement new continue statement return new continue statement this | creates an unparented continue statement node owned by this ast |
public break statement new break statement return new break statement this | creates an unparented break statement node owned by this ast |
public expression statement new expression statement expression expression expression statement result new expression statement this result set expression expression return result | creates a new unparented expression statement node owned by this ast |
public if statement new if statement return new if statement this | creates a new unparented if statement node owned by this ast |
public void set interface boolean is interface modifying this is interface is interface | sets whether this type declaration declares a class or an |
public while statement new while statement return new while statement this | creates a new unparented while statement node owned by this ast |
public simple name get name if type name null lazy initialize use setter to ensure parent link set too long count get ast modification count set name new simple name get ast get ast set modification count count return type name | returns the name of the type declared in this type declaration |
public void set name simple name type name if type name null throw new illegal argument exception replace child this type name type name false this type name type name | sets the name of the type declared in this type declaration to the |
public name get superclass return optional superclass name | returns the name of the superclass declared in this type |
public void set superclass name superclass name replace child astnode this optional superclass name astnode superclass name false this optional superclass name superclass name | sets or clears the name of the superclass declared in this type |
public list super interfaces return super interface names | returns the live ordered list of names of superinterfaces of this type |
public list body declarations return body declarations | returns the live ordered list of body declarations of this type |
public do statement new do statement return new do statement this | creates a new unparented do statement node owned by this ast |
public boolean is package member type declaration astnode parent get parent return parent instanceof compilation unit | returns whether this type declaration is a package member that is |
public boolean is member type declaration astnode parent get parent return parent instanceof type declaration parent instanceof anonymous class declaration | returns whether this type declaration is a type member |
public boolean is local type declaration astnode parent get parent return parent instanceof type declaration statement | returns whether this type declaration is a local type |
public itype binding resolve binding return get ast get binding resolver resolve type this | resolves and returns the binding for the class or interface declared in |
public string to string return op | returns the character sequence for the operator |
public try statement new try statement return new try statement this | creates a new unparented try statement node owned by this ast |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.