input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
public string get package if parent null return parent get package name return name
|
retrieve the package of the body
|
public void set java doc java doc javadoc this javadoc javadoc
|
set or update the code java doc code of the body
|
public void add import import import imports add import
|
adds the supplied code import code to the code import list code
|
public class to class return new class get package
|
converts the body to a code class code declaration
|
public void add needed import import import imports add import import
|
adds an code import code to the variable
|
public void add constructor method constructor throws illegal argument exception assert constructor get return type null class constructor equals constructor get return type added method was not marked as a constructor constructor set name get name constructors add constructor
|
add a constructor to the code class body code
|
public string get initialization return initialization
|
retrieve the initialization string of the code variable code
|
public void add implements class implements if implements requires import add needed imports implements to imports this implements add implements
|
add a code class code to the list of interfaces implementet by body
|
public static area get static area return static area
|
retrieve the code static area code part of the the variable declaration
|
public void set initialization string initialization this initialization initialization
|
set the initialization of the code variable code
|
public void set java doc java doc java doc this java doc java doc
|
set the code java doc code of the code variable code
|
public void set static area static area static area this static area static area
|
set the code static area code of the code variable code
|
public int get order value return get value package name
|
calculates and returns the internal order value of the imports
|
private int get value string package name if package name starts with java return 1 else if package name starts with javax return 2 else if package name starts with org return 3 else if package name starts with com return 4 else if package name starts with net return 5 else return 6
|
find the representative value of the import in the following order
|
public class get extends class if extends classes is empty return null return extends classes get 0
|
retrieve the code class code being extended
|
public void set extends class class extends class this extends classes clear this extends classes add extends class
|
set or update the code super code class of the body
|
public void add static area static area static area this static areas add static area
|
adds a code static area code to the code class body code
|
public declaration set abstract boolean is abstract this is abstract is abstract return this
|
set or update the code abstract code attribute of the code declaration code
|
public declaration set final boolean is final this is final is final return this
|
set or update the code final code attribute of the code declaration code
|
public declaration set scope scope scope this scope scope return this
|
set or update the code scope code of the code declaration code
|
public declaration set static boolean is static this is static is static return this
|
set or update the code static code attribute of the code declaration code
|
public declaration set transient boolean is transient this is transient is transient return this
|
set or update the code transient code attribute of the code declaration code
|
public void add see string reference string description sees put reference description
|
add a code see code attribute to the code java doc code class
|
public void add throws string exception string description throws put exception description
|
add a code throws code attribute to the code java doc code class
|
public object get since return since
|
retrieve the since attribute
|
public boolean is empty if return null return false if throws is empty return false if author null return false if description null return false if sees is empty return false if since null return false if version null return false return true
|
retrieve whether the code java doc code class contains data
|
public void set return string return this return return
|
set the code return code attribute
|
public string get java doc return java doc
|
retrieve the java doc of the code argument code
|
public void set java doc string java doc this java doc java doc
|
assign a java doc description to the argument
|
public void add value string name annotation value imports add all value get needed imports values put name value
|
add a value to the code annotation code
|
public void add string value string name string value values put name value
|
add a value to the code annotation code
|
public void add value string name string value values put name value
|
add a value to the code annotation code
|
public string get name return type get class name
|
retrieve the name of the annotation
|
public void add field sqlassignable field field if current field list null current field list new sqlfield list field basis field list current field list current value list new sqlvalue list field basis value list current value list else sqlfield list tmp field new sqlfield list field current field list set constraint2 tmp field current field list tmp field sqlvalue list tmp value new sqlvalue list field current value list set constraint2 tmp value current value list tmp value
|
add a code sqlassignable field code to the insert statement
|
public void set value string id object value throws unknown id exception if prepared null prepare prepared set value id value
|
set the value of the assignable constraint with the specified id
|
public string to prepared statement if prepared null prepare return prepared to prepared statement
|
convert the code sqlinsert code to a prepared statement code string code
|
public string to sql if prepared null prepare return prepared to sql
|
convert the code sqlinsert code to a sql code string code
|
public void add constraint sqlconstraint constraint set constraint2 new sqland constraint
|
add a code sqlconstraint code to the code sqlor code statement
|
public void add constraint sqlor constraint set constraint2 constraint
|
add another code sqlor code to the code sqlor code statement
|
public object get value if value assigned on construction return value object holder oh thread local value get if oh null return null return oh value
|
retrieve the assigned value of the code sqlassignable field code
|
public boolean is assignable return value assigned on construction
|
retrieve whether the code sqlassignable field code is assignable
|
public boolean is assigned return value assigned on construction get value null
|
retrieve whether the code sqlassignable field code has been assigned a value
|
public void set value object value if value assigned on construction throw new illegal state exception value not assignable if already assigned during construction of the object thread local value set new object holder value
|
set the value of the the code sqlassignable field code
|
public sqltable get table return table
|
retrieve the code sqltable code of the code sqlselec code
|
protected string get operator return
|
retrieve the operator used by the object
|
private void prepare prepared new sqlresult set sqlfield fields collect all fields prepared append select if distinct prepared append distinct for iterator sqlfield field iterator fields iterator field iterator has next field iterator next prepare sql prepared if field iterator has next prepared append prepared append from table prepare sql prepared for iterator sqljoin join iterator joins iterator join iterator has next join iterator next prepare sql prepared if basis andstatement null prepared append new dependecy basis andstatement basis andstatement prepare sql prepared
|
prepares the sql select statement
|
public void add constraint sqlconstraint constraint if current and statement null current and statement new sqland constraint basis and statement current and statement else sqland tmp new sqland constraint current and statement set constraint2 tmp current and statement tmp
|
add a constraint to the code sqlupdate code object
|
public void add constraint sqlor or if current and statement null current and statement new sqland or basis and statement current and statement else sqland tmp new sqland or current and statement set constraint2 tmp current and statement tmp
|
add a code sqlor code to the code sqlselect code statement
|
public void add field sqlassignable field field if current equals list null current equals list new sqlequals list new sqlequals field basis equals list current equals list else sqlequals list tmp field new sqlequals list new sqlequals field current equals list set constraint2 tmp field current equals list tmp field
|
add a code sqlassignable field code to the insert statement
|
private void prepare if this prepared return this prepared true for iterator sqlpart part iterator final parts iterator part iterator has next sqlpart part part iterator next if part instanceof sqlobject handle part sqlobject part
|
causes the code sqlreult code to convert to a prepared result
|
protected void log string original string change messer log instance add change row column original change
|
log the change to the code messer log code
|
public void add entry simple block object label simple block object body entries add new switch entry label body
|
add antry to the switch statement
|
public void add variable variable assignment assignment assignments add assignment
|
add a code variable assignment code to the code local variable code declaration
|
public void add file set file set fs this fs fs
|
add a code file set code containing the files to be modified
|
public void set classpath path classpath if classpath null this classpath classpath else this classpath append classpath
|
set the classpath to be used for this compilation
|
private void empty throws runtime exception null pointer exception no implementation
|
the description of the method br
|
public boolean is male system out println getter return male
|
method used for retrieving the value of the code male code
|
public void set a int a this a a
|
method used for setting the value of the code a code variable
|
public void set male boolean male system out println setter this male male
|
method used for setting the value of the code male code variable
|
public void test comparator factory generated file try generator test test1 xml test cf1 java catch exception e e print stack trace fail exception not expected
|
tests the output of the comparator factory
|
public void add enum value string value if attributes conversions contains key value value attributes conversions get value string upper value value to upper case variable variable new variable new declaration scope public true true false new class enum name upper value variable set initialization new enum name value java doc javadoc new java doc javadoc set description enum value representation of the upper value token variable set java doc javadoc body add variable variable
|
add a token value to the enum class
|
public static class type the class name of the type public final string class b optionally b the restriction to the type public final restriction restriction pp type string class restriction restriction this class class this restriction restriction
|
the type of an attribute
|
public iselection get selection return selection
|
returns the selection
|
public viewer get viewer return viewer get source
|
returns the viewer that is the source of this event
|
public rectangle get bounds check widget return container get bounds
|
returns a rectangle describing the receivers size and location relative
|
public point get maximum size return maximum size
|
returns the maximum shell size allowed
|
public point get minimum size return minimum size
|
returns the minimum shell size allowed
|
public rectangle get image bounds check widget return item detail get image bounds
|
returns a rectangle describing the size and location relative to its
|
public void set maximum size final point maximum size this maximum size maximum size
|
sets the maximum shell size allowed
|
public void set minimum size final point minimum size this minimum size minimum size
|
sets the minimum shell size allowed
|
public rectangle get text bounds check widget return item detail get text bounds
|
returns a rectangle describing the size and location relative to its
|
public breadcrumb viewer get viewer check widget return parent
|
gets the viewer parent
|
public boolean is focus control check widget return item detail is focus control item arrow is focus control
|
returns code true code if the receiver has the user interface focus
|
public void set content provider final itree content provider content provider check widget this content provider content provider
|
sets the content provider
|
public void set label provider final ilabel provider label provider check widget this label provider label provider
|
sets the label provider
|
public void set tool tip text final string tool tip text check widget item detail set tool tip text tool tip text
|
set the tool tip of the item to the given text
|
public void add menu detect listener final menu detect listener listener if listener null swt error swt error null argument menu detect listeners add listener
|
add the given listener to the set of listeners which will be informed
|
public void add menu selection listener final imenu selection listener listener if listener null swt error swt error null argument menu selection listeners add listener
|
add the given listener to the set of listeners which will be informed
|
public iselection provider get drop down selection provider for final breadcrumb item item items if item is menu shown return item get drop down selection provider return null
|
returns the selection provider which provides the selection of the drop
|
public breadcrumb item get item final int index return items get index
|
returns the item at the given zero relative index in the receiver
|
public int index of final breadcrumb item item if item null swt error swt error null argument return items index of item
|
returns the index of the first occurrence of the specified element or 1
|
public boolean is root visible return root visible
|
returns the root visible
|
public void open drop down menu final object element final breadcrumb item item breadcrumb item do find item element if item null item open drop down menu
|
display the drop down menu for the given element
|
public void remove menu detect listener final menu detect listener listener if listener null swt error swt error null argument menu detect listeners remove listener
|
remove the given listener from the set of menu detect listeners
|
public int get current width int result 0 if get image null result 4 margins result image element compute size swt default swt default x if text visible get text length 0 result 4 margins result text element compute size swt default swt default x return result
|
gets the current item width
|
public string get name return messages computer name
|
gets the computer name
|
public image file registry get image file registry return registry
|
gets the image file registry
|
public rectangle get image bounds if get image null return null return image element get bounds
|
returns a rectangle describing the size and location relative to its
|
public string get text return text element get text
|
returns the receivers text which will be an empty string if it has
|
private void initialize images computer image put image by key key computer drive images put image by key key drive default put image by key key drive hidden folder images put image by key key folder default put image by key key folder hidden file images put image by key key file default put image by key key file hidden arrow images put image by key key arrow right put image by key key arrow left put image by key key arrow down
|
load the default images
|
public rectangle get text bounds if text visible return text element get bounds return null
|
returns a rectangle describing the size and location relative to its
|
private void put image by key final string key get image final image descriptor image get resource key if image null put key image
|
adds a image descriptor for the given key
|
public boolean has focus return has focus
|
gets a value indicating if this element has the keyboard focus
|
public boolean is focus control return content composite is focus control image composite is focus control text composite is focus control image element is focus control text element is focus control
|
returns code true code if the receiver has the user interface focus
|
public void set focus container set focus if selected item null selected item set has focus true else final int size items size if size 0 return breadcrumb item item items get size 1 if item element null if size 2 return item items get size 2 item set has focus true
|
causes the receiver to have the em keyboard focus em such that all
|
public void set has focus final boolean has focus if has focus if is text visible text composite set focus else image composite set focus if this has focus has focus this has focus has focus update selection
|
causes the receiver to have the keyboard focus such that all keyboard
|
public void set root visible final boolean root visible if this root visible root visible return this root visible root visible if items size 0 final breadcrumb item item items get 0 item set details visible root visible container layout true true if root visible selected item null return root selected if selected item item selected item equals item if items size 1 select item items get 1
|
sets the root item visibility
|
public void set image final image image image element set image image
|
sets the receivers image to the argument which may be null indicating
|
public void set selected final boolean selected if this selected selected return this selected selected if this selected has focus false update selection
|
sets a value indicating if this element is selected
|
public void set text final string text if text null text element set text text else text element set text non nls 1
|
sets the receivers text
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.