input
stringlengths 10
828
| output
stringlengths 5
107
|
---|---|
public void set operator assignment operator assignment operator if assignment operator null throw new illegal argument exception modifying this assignment operator assignment operator | sets the operator of this assignment expression |
public expression get left hand side if left hand side null lazy initialize use setter to ensure parent link set too long count get ast modification count set left hand side new simple name get ast get ast set modification count count return left hand side | returns the left hand side of this assignment expression |
public void set left hand side expression expression if expression null throw new illegal argument exception an assignment may occur inside a expression must check cycles replace child astnode this left hand side astnode expression true this left hand side expression | sets the left hand side of this assignment expression |
public expression get right hand side if right hand side null lazy initialize use setter to ensure parent link set too long count get ast modification count set right hand side new simple name get ast get ast set modification count count return right hand side | returns the right hand side of this assignment expression |
public void set right hand side expression expression if expression null throw new illegal argument exception an assignment may occur inside a expression must check cycles replace child astnode this right hand side astnode expression true this right hand side expression | sets the right hand side of this assignment expression |
public void set type type type if type null throw new illegal argument exception a cast expression cannot occur inside a type cycles not possible replace child this type type false this type type | sets the type in this cast expression to the given type |
public void set expression expression expression if expression null throw new illegal argument exception a cast expression may occur inside an expression must check cycles replace child this expression expression true this expression expression | sets the expression of this cast expression |
public ivariable binding resolve binding return get ast get binding resolver resolve variable this | resolves and returns the binding for the variable declared in this |
public catch clause new catch clause return new catch clause this | creates a new unparented catch clause node owned by this ast |
public void set expression expression expression if expression null throw new illegal argument exception a do statement may occur inside an expression must check cycles replace child this expression expression true this expression expression | sets the expression of this do statement |
public void set body statement statement if statement null throw new illegal argument exception a do statement may occur inside a statement must check cycles replace child this body statement true this body statement | sets the body of this do statement |
public list expressions return expressions | returns the live ordered list of expressions in this array initializer |
public return statement new return statement return new return statement this | creates a new unparented return statement node owned by this ast |
public type 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 type get ast get ast set modification count count return right operand | returns the right operand of this instanceof expression |
public void set right operand type reference type if reference type null throw new illegal argument exception an instanceof expression may occur inside a expression must check cycles replace child this right operand reference type true this right operand reference type | sets the right operand of this instanceof expression |
public throw statement new throw statement return new throw statement this | creates a new unparented throw statement node owned by this ast |
public assert statement new assert statement return new assert statement this | creates a new unparented assert statement node owned by this ast |
public empty statement new empty statement return new empty statement this | creates a new unparented empty statement node owned by this ast |
public labeled statement new labeled statement return new labeled statement this | creates a new unparented labeled statement node owned by this ast |
public switch statement new switch statement return new switch statement this | creates a new unparented switch statement node owned by this ast |
public switch case new switch case return new switch case this | creates a new unparented switch case statement node owned by |
public synchronized statement new synchronized statement return new synchronized statement this | creates a new unparented synchronized statement node owned by this ast |
public for statement new for statement return new for statement this | creates a new unparented for statement node owned by this ast |
public literal new string literal return new literal this | creates and returns a new unparented string literal node for |
public number literal new number literal string literal if literal null throw new illegal argument exception number literal result new number literal this result set token literal return result | creates and returns a new unparented number literal node |
public number literal new number literal number literal result new number literal this return result | creates and returns a new unparented number literal node |
public null literal new null literal return new null literal this | creates and returns a new unparented null literal node |
public boolean literal new boolean literal boolean value boolean literal result new boolean literal this result set boolean value value return result | creates and returns a new unparented boolean literal node |
public assignment new assignment assignment result new assignment this return result | creates and returns a new unparented assignment expression node |
public method invocation new method invocation method invocation result new method invocation this return result | creates an unparented method invocation expression node owned by this |
public super method invocation new super method invocation super method invocation result new super method invocation this return result | creates an unparented super method invocation expression node owned by |
public constructor invocation new constructor invocation constructor invocation result new constructor invocation this return result | creates an unparented alternate constructor this |
public super constructor invocation new super constructor invocation super constructor invocation result new super constructor invocation this return result | creates an unparented alternate super constructor super |
public void set expression expression expression if expression null throw new illegal argument exception a parenthesized expression may occur inside an expression must check cycles replace child this expression expression true this expression expression | sets the expression of this parenthesized expression |
public field declaration new field declaration variable declaration fragment fragment if fragment null throw new illegal argument exception field declaration result new field declaration this result fragments add fragment return result | creates a new unparented field declaration node owned by this ast |
public void set expression expression expression if expression null throw new illegal argument exception a while statement may occur inside an expression must check cycles replace child this expression expression true this expression expression | sets the expression of this while statement |
public void set body statement statement if statement null throw new illegal argument exception a while statement may occur inside a statement must check cycles replace child this body statement true this body statement | sets the body of this while statement |
public array type get type if array type null lazy initialize use setter to ensure parent link set too long count get ast modification count set type get ast new array type get ast new primitive type primitive type int get ast set modification count count return array type | returns the array type in this array creation expression |
public void set type array type type if type null throw new illegal argument exception an array creation cannot occur inside a array type cycles not possible replace child this array type type false this array type type | sets the array type in this array creation expression |
public list dimensions return dimensions | returns the live ordered list of dimension expressions in this array |
public array initializer get initializer return optional initializer | returns the array initializer of this array creation expression or |
public void set initializer array initializer initializer an array creation may occur inside an array initializer must check cycles replace child this optional initializer initializer true this optional initializer initializer | sets or clears the array initializer of this array creation expression |
public harbourdoc get harbourdoc return optional harbourdoc | returns the harbourdoc comment node |
public this expression new this expression this expression result new this expression this return result | creates and returns a new unparented this expression node |
public void set operator postfix expression operator operator if operator null throw new illegal argument exception modifying this operator operator | sets the operator of this postfix expression |
public void set operand expression expression if expression null throw new illegal argument exception a postfix expression may occur inside a expression must check cycles replace child this operand expression true this operand expression | sets the operand of this postfix expression |
public field access new field access field access result new field access this return result | creates and returns a new unparented field access expression node |
public super field access new super field access super field access result new super field access this return result | creates and returns a new unparented super field access expression node |
public type literal new type literal type literal result new type literal this return result | creates and returns a new unparented type literal expression node |
public cast expression new cast expression cast expression result new cast expression this return result | creates and returns a new unparented cast expression node |
public parenthesized expression new parenthesized expression parenthesized expression result new parenthesized expression this return result | creates and returns a new unparented parenthesized expression node |
public infix expression new infix expression infix expression result new infix expression this return result | creates and returns a new unparented infix expression node |
public instanceof expression new instanceof expression instanceof expression result new instanceof expression this return result | creates and returns a new unparented instanceof expression node |
public postfix expression new postfix expression postfix expression result new postfix expression this return result | creates and returns a new unparented postfix expression node |
public prefix expression new prefix expression prefix expression result new prefix expression this return result | creates and returns a new unparented prefix expression node |
public array access new array access array access result new array access this return result | creates and returns a new unparented array access expression node |
public array creation new array creation array creation result new array creation this return result | creates and returns a new unparented array creation expression node |
public class instance creation new class instance creation class instance creation result new class instance creation this return result | creates and returns a new unparented class instance creation |
public anonymous class declaration new anonymous class declaration anonymous class declaration result new anonymous class declaration this return result | creates and returns a new unparented anonymous class declaration |
public array initializer new array initializer array initializer result new array initializer this return result | creates and returns a new unparented array initializer node |
public conditional expression new conditional expression conditional expression result new conditional expression this return result | creates and returns a new unparented conditional expression node |
public void add resource iresource resource manager add resource resource | add a resource to be index |
public void remove resource iresource resource manager remove resource resource | removes a resource from the index |
public void add all manager add all | add all the c files recurively going to all projects |
public void remove resource iresource resource map files map map projects map get resource get project get location if files map null return switch resource get type case iresource root problem break case iresource project projects map remove resource get location break case iresource folder remove folder ifolder resource break case iresource file remove file ifile resource break | about to delete a project |
public void add file ifile file if harbour model factory is compilation unit file request list add item file | trigger addition of a resource to an index |
public void add container icontainer container if container null container exists try iresource resources container members false for int i 0 i resources length i iresource res resources i switch res get type case iresource root break case iresource project if harbour model factory has harbour nature iproject res add container icontainer res break case iresource folder add container icontainer res break case iresource file add file ifile res break catch core exception e e print stack trace | trigger addition of the entire content of a project |
public string get string throws ioexception string buffer buf new string buffer int ch while ch read 1 buf append char ch return buf to string | gets the content as a string |
protected harbour project get project return harbour project get elements to process 0 | returns the harbour project to perform the operation on |
protected void check canceled if f nested super check canceled | only allow cancelling if this operation is not nested |
public void create after iharbour element sibling set relative position sibling insert after | instructs this operation to position the new element after |
public void create before iharbour element sibling set relative position sibling insert before | instructs this operation to position the new element before |
protected icompilation unit get translation unit return isource reference get parent element get translation unit | returns the compilation unit in which the new element is being created |
protected int get main amount of work return 2 | returns the amount of work for the main task of this operation for |
protected void initialize default position | sets the default position in which to create the new type |
protected void insert element throws harbour model exception if f insertion policy insert last isource range range isource reference f anchor element get source range switch f insertion policy case insert after f replacement length 0 f insertion position range get start pos range get length break case insert before f replacement length 0 f insertion position range get start pos default f replacement length range get start pos range get length f insertion position range get start pos break return add as the last element of the parent f replacement length 1 | inserts the given child into the given jdom |
protected void set altered name string new name | sets the name of the code domnode code that will be used to |
protected void set relative position iharbour element sibling int policy throws illegal argument exception if sibling null f anchor element null f insertion policy insert last else f anchor element sibling f insertion policy policy | instructs this operation to position the new element relative |
public iharbour model status verify if get parent element null return new harbour model status iharbour model status constants no elements to process if f anchor element null iharbour element dom present parent f anchor element get parent if dom present parent get element type iharbour element import container dom present parent dom present parent get parent if dom present parent equals get parent element return new harbour model status iharbour model status constants invalid sibling f anchor element return harbour model status verified ok | possible failures ul |
protected binary info get binary info return binary info get element info | returns the element info as code binary info code |
protected label create message composite parent label text new label parent swt null text set text f message text grid data spec new grid data spec grab excess vertical space false spec grab excess horizontal space true spec horizontal alignment grid data fill spec vertical alignment grid data beginning text set layout data spec return text | creates the message text widget and sets layout data |
protected string get filter return f selection list get filter | returns the currently used filter text |
protected list get widget selection if f selection list null f selection list is disposed return new array list 0 return f selection list get selection | returns the widget selection |
protected boolean is empty list if f selection list null return true return f selection list is empty list | checks whether the list of elements is empty or not |
protected void refilter f selection list filter true | refilters the current list according to the filter entered into the |
public void set empty list message string message f empty list message message | if a empty list message is set a error message is shown |
protected void set filter string text boolean refilter f selection list set filter text refilter | sets the filter text to the given value |
public void set message string message f message text message | sets the message to be shown above the match text field |
public void set nothing selected message string message f nothing selected message message | if the selection is empty this message is shown |
protected void set selection int selection f selection list set selection selection | selects the elements in the list determined by the given |
protected void set selection list elements list elements boolean refilter f selection list set elements elements refilter | initializes the selection list widget with the given list of |
public void set validator iselection validator validator f validator validator | a validator can be set to check if the current selection |
protected boolean verify current selection list sel get widget selection int length sel size if length 0 if f validator null f validator is valid sel to array f curr status else f curr status set ok else if is empty list f curr status set error f empty list message else f curr status set error f nothing selected message update status f curr status return f curr status is ok | verifies the current selection and updates the status line |
public void add selection listener selection listener listener f list add selection listener listener | adds a selection change listener to this widget |
public void filter boolean force update int k 0 string text f text get text if force update text equals f remembered match text return f remembered match text text string matcher matcher new string matcher text f ignore case false non nls 1 for int i 0 i f elements length i if matcher match f rendered strings i f filtered elements k i k f filtered elements k 1 update list widget f filtered elements k | filters the list of elements according to the pattern entered |
public string get filter return f text get text | returns the currently used filter text |
public list get selection if f list null f list is disposed f list get selection count 0 return new array list 0 int list selection f list get selection indices list selected new array list list selection length for int i 0 i list selection length i selected add f elements f filtered elements list selection i return selected | returns a list of selected elements |
public boolean is empty list return f elements null f elements length 0 | returns code true code when the list of elements is empty |
public void remove selection listener selection listener listener f list remove selection listener listener | removes a selection change listener to this widget |
public void select filter text f text select all | select the pattern text |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.