input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
public void create field editors add field new file field editor preference constants p log file log file get field editor parent add field new file field editor preference constants p xpath file input xpaths file get field editor parent add field new combo field editor preference constants p log level log level preference constants p level choices get field editor parent
|
creates the field editors
|
public void run iaction action try do run action catch throwable e utils display error window e
|
the action has been activated
|
public void selection changed iaction action iselection selection if selection instanceof itree selection this selection itree selection selection
|
selection in the workbench has been changed
|
public void register translation rule translation rule rule rules add rule
|
all user defined rules should be registered using this method
|
public string visit jml statement expr final jml statement expr node final void p final string token node token interned name if jml tokens assert equals token final translation rule expression rule rules factory get expression rule my context string expr null if node expression null expr node expression accept expression rule p string optional expr null if node optional expression null optional expr node optional expression accept expression rule p string ret bml keywords assert if expr null ret expr if optional expr null ret optional expr return ret return null
|
visiting jml statement expression
|
private r scan and reduce final tree node final p p final r r return reduce scan node p r
|
visits the given node and returns the as a result reduction of given
|
protected p pre visit final tree node final p p return p
|
method invoked before all visit xyz methods
|
public void report error final string msg final string filename get filename if filename null system err print filename system err print system err print msg
|
report an error to the user in the format used by suns javac
|
protected void print type final ast expr final expression ast ex expression ast expr final type type ex retrieve type try out write has type out write type null null type get name out write and catch ioexception io ex fixme what should we do here print exceptions ex
|
print the type of an expression
|
public void run iaction action ieditor part editor window get active page get active editor if editor null return ifile file ifile editor get editor input get adapter ifile class clear util commit canapa annotations file try file refresh local iresource depth infinite null catch core exception e todo auto generated catch block e print stack trace
|
the action has been activated
|
public void start bundle context context throws exception super start context set plugin dir try console new canapa output console catch runtime exception e don t let the console bring down the svn ui log istatus error errors occurred starting the canapa console e
|
this method is called upon plug in activation
|
public void run iaction action ieditor part editor window get active page get active editor if editor null return ifile file ifile editor get editor input get adapter ifile class clear util clear canapa annotations file try file refresh local iresource depth infinite null catch core exception e todo auto generated catch block e print stack trace
|
the action has been activated
|
public void add edges variable v1 variable v2 interval intv double a intv get left double b intv get right diag graph node node v1 get node v1 0 if a is infinite diag graph node node v2a get node v2 a int value node v2a greater add node v1 if b is infinite diag graph node node v2b get node v2 b int value node v1 greater add node v2b
|
adds two edges for inequalities v1 a v2 v1 b
|
public r visit jml binary final jml binary node final p p final p tmp p pre visit node p r r scan node lhs tmp p r scan and reduce node rhs tmp p r return r
|
visiting jml binary node
|
public r visit jml class decl final jml class decl node final p p final p tmp p pre visit node p final r r super visit class node tmp p if node type specs null final r tmp r scan node type specs clauses tmp p return reduce r tmp r return r
|
visiting jml class declaration node
|
public r visit jml compilation unit final jml compilation unit node final p p final p tmp p pre visit node p return super visit compilation unit node tmp p
|
visiting jml compilation unit node
|
public r visit jml do while loop final jml do while loop node final p p final p tmp p pre visit node p final r r scan node loop specs tmp p final r tmp r super visit do while loop node tmp p return reduce r tmp r
|
visiting jml do while loop node
|
public r visit jml enhanced for loop final jml enhanced for loop node final p p final p tmp p pre visit node p final r r scan node loop specs tmp p final r tmp r super visit enhanced for loop node tmp p return reduce r tmp r
|
visiting jml enhanced for loop node
|
public r visit jml for loop final jml for loop node final p p final p tmp p pre visit node p final r r scan node loop specs tmp p final r tmp r super visit for loop node tmp p return reduce r tmp r
|
visiting jml for node
|
public r visit jml group name final jml group name node final p p final p tmp p pre visit node p final r r scan node selection tmp p return r
|
visiting jml group name node
|
public r visit jml import final jml import node final p p final p tmp p pre visit node p final r r super visit import node tmp p return r
|
visiting jml import node
|
public r visit jml lbl expression final jml lbl expression node final p p final p tmp p pre visit node p return scan node expression tmp p
|
visiting jml lbl expression node
|
public r visit jml method clause decl final jml method clause decl node final p p final p tmp p pre visit node p return scan node decls tmp p
|
visiting jml method clause declaration node
|
public r visit jml method clause expr final jml method clause expr node final p p final p tmp p pre visit node p return scan node expression tmp p
|
visiting jml method clause expression node
|
public r visit jml method decl final jml method decl node final p p final p tmp p pre visit node p r r scan node cases tmp p return super visit method node tmp p
|
visiting jml method declaration node
|
public r visit jml method specs final jml method specs node final p p final p tmp p pre visit node p return scan node cases tmp p
|
visiting jml method specification node
|
public r visit jml quantified expr final jml quantified expr node final p p final p tmp p pre visit node p r r scan node decls tmp p r scan and reduce node range tmp p r return scan and reduce node value tmp p r
|
visiting jml quantified expression node
|
public r visit jml refines final jml refines node final p p return null
|
visiting jml refines node
|
public r visit jml set comprehension final jml set comprehension node final p p final p tmp p pre visit node p r r scan node newtype tmp p r scan and reduce node variable tmp p r return scan and reduce node predicate tmp p r
|
visiting jml set comprehension node
|
public r visit jml singleton final jml singleton node final p p return null
|
visiting jml singleton node
|
public r visit jml statement final jml statement node final p p final p tmp p pre visit node p return scan node statement tmp p
|
visiting jml statement node
|
public r visit jml statement decls final jml statement decls node final p p final p tmp p pre visit node p return scan node list tmp p
|
visiting jml statement declarations node
|
public r visit jml statement expr final jml statement expr node final p p final p tmp p pre visit node p r r scan node expression tmp p r scan and reduce node optional expression tmp p r return r
|
visiting jml statement expression node
|
public r visit jml statement loop final jml statement loop node final p p final p tmp p pre visit node p return scan node expression tmp p
|
visiting jml statement loop node
|
public r visit jml statement spec final jml statement spec node final p p final p tmp p pre visit node p return scan node statement specs tmp p
|
visiting jml statement specification node
|
public r visit jml store ref keyword final jml store ref keyword node final p p return null
|
visiting jml store ref keyword node
|
public r visit jml type clause decl final jml type clause decl node final p p final p tmp p pre visit node p final r r scan node modifiers tmp p return scan and reduce node decl tmp p r
|
visiting jml type clause declaration node
|
public r visit jml type clause expr final jml type clause expr node final p p final p tmp p pre visit node p r r scan node modifiers tmp p r scan and reduce node expression tmp p r return r
|
visiting jml type clause expression node
|
public r visit jml type clause in final jml type clause in node final p p final p tmp p pre visit node p r r scan node modifiers tmp p r scan and reduce node list tmp p r return r
|
visiting jml clause in node
|
public r visit jml type clause maps final jml type clause maps node final p p final p tmp p pre visit node p r r scan node modifiers tmp p r scan and reduce node expression tmp p r return scan and reduce node list tmp p r
|
visiting jml type clause maps node
|
public r visit jml variable decl final jml variable decl node final p p final p tmp p pre visit node p return super visit variable node tmp p
|
visiting jml variable declaration node
|
public r visit jml while loop final jml while loop node final p p final p tmp p pre visit node p final r r scan node loop specs tmp p final r tmp r super visit while loop node tmp p return reduce r tmp r
|
visiting jml while loop node
|
public r visit jml method invocation final jml method invocation node final p p final p tmp p pre visit node p r r scan node get type arguments tmp p r scan and reduce node get method select tmp p r r scan and reduce node get arguments tmp p r return r
|
visiting jml method invocation node
|
public string get property2 string key throws jr config exception string val super get property key if val null throw new jr config exception found no property for key key return val
|
lookup for a property
|
protected string build exception message exception catched exception string sql object prep stmt values string buffer mess new string buffer if catched exception null mess append catched exception get message mess append mess append sql if sql null mess append sql else mess append null mess append parameters if prep stmt values null for int i 0 i prep stmt values length i if i 0 mess append mess append prep stmt values i else mess append null return mess to string
|
build a new exception message
|
public boolean record exists after run return record exists after run
|
does the record exist after run
|
public boolean are obj equals object o1 object o2 boolean eq false if o1 null o2 null eq true else if o1 null eq o1 equals o2 return eq
|
compare 2 objects
|
public jr test query a get one with unkown field throws jr config exception jr could not create type map exception jr connect exception jr select exception jr no such field exception string prepared sql select longattr from jrtestclassa where id 0 object prepared sql values null string dto attribute names xxxlong attr return jr test query a super query one prepared sql prepared sql values dto attribute names
|
this method fails with jr no such field exception
|
public void release explicite throws sqlexception set mhold false if m con null m con commit m con close m con null jr connector decrement connection counter if s log is debug enabled s log debug released this thread thread current thread get name
|
because close is overwritten to be ignored if residing in a thread or
|
public jr column type get annotation column type field f jr column type ct null if s log is debug enabled s log debug field f get class f get name annos f get annotations length if f is annotation present jr column type class ct f get annotation jr column type class return ct
|
get the jr column type annotation of a field or
|
public void test create system out println create joueur joueur null joueur facade remote instance new joueur facade remote instance create joueur todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of create method of class entity
|
public void test create system out println create landien landien null landien facade instance new landien facade instance create landien todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of create method of class entity
|
public void test create system out println create banque banque null banque facade instance new banque facade instance create banque todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of create method of class entity
|
public void test edit system out println edit landien landien null landien facade instance new landien facade instance edit landien todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of edit method of class entity
|
public void test edit system out println edit joueur joueur null joueur facade remote instance new joueur facade remote instance edit joueur todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of edit method of class entity
|
public void test edit system out println edit banque banque null banque facade instance new banque facade instance edit banque todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of edit method of class entity
|
public void test destroy system out println destroy landien landien null landien facade instance new landien facade instance destroy landien todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of destroy method of class entity
|
public void test destroy system out println destroy joueur joueur null joueur facade remote instance new joueur facade remote instance destroy joueur todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of destroy method of class entity
|
public void test find system out println find int pk 0 landien facade instance new landien facade landien exp result null landien result instance find pk assert equals exp result result todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of find method of class entity
|
public void test destroy system out println destroy banque banque null banque facade instance new banque facade instance destroy banque todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of destroy method of class entity
|
public void test find system out println find object pk null joueur facade remote instance new joueur facade remote joueur exp result null joueur result instance find pk assert equals exp result result todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of find method of class entity
|
public void test find all system out println find all landien facade instance new landien facade collection landien exp result null collection landien result instance find all assert equals exp result result todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of find all method of class entity
|
public void test find system out println find object pk null banque facade instance new banque facade banque exp result null banque result instance find pk assert equals exp result result todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of find method of class entity
|
public void test find all system out println find all joueur facade remote instance new joueur facade remote collection joueur exp result null collection joueur result instance find all assert equals exp result result todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of find all method of class entity
|
public void test recherche rab system out println recherche rab landien facade instance new landien facade entreprise exp result null entreprise result instance recherche rab assert equals exp result result todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of recherche rab method of class entity
|
public void test find all system out println find all banque facade instance new banque facade list exp result null list result instance find all assert equals exp result result todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of find all method of class entity
|
public void test recup landiens system out println recup landiens landien facade instance new landien facade collection landien exp result null collection landien result instance recup landiens assert equals exp result result todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of recup landiens method of class entity
|
public void test embaucher system out println embaucher int nb landien 0 land l null banque b null banque facade instance new banque facade instance embaucher nb landien l b todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of embaucher method of class entity
|
public void test recherhemoinscher system out println recherhemoinscher collection entreprise ent null landien facade instance new landien facade entreprise exp result null entreprise result instance recherhemoinscher ent assert equals exp result result todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of recherhemoinscher method of class entity
|
public void test licencier system out println licencier int nb landien 0 land l null banque b null banque facade instance new banque facade instance licencier nb landien l b todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of licencier method of class entity
|
public void test create system out println create emprunt emprunt null emprunt facade remote instance new emprunt facade remote instance create emprunt todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of create method of class entity
|
public void test edit system out println edit emprunt emprunt null emprunt facade remote instance new emprunt facade remote instance edit emprunt todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of edit method of class entity
|
public void test destroy system out println destroy emprunt emprunt null emprunt facade remote instance new emprunt facade remote instance destroy emprunt todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of destroy method of class entity
|
public void test acheter system out println acheter string type landien l null float capital 0 0 f landien facade instance new landien facade instance acheter type l capital todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of acheter method of class entity
|
public void test find system out println find object pk null emprunt facade remote instance new emprunt facade remote emprunt exp result null emprunt result instance find pk assert equals exp result result todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of find method of class entity
|
public void test find all system out println find all emprunt facade remote instance new emprunt facade remote list exp result null list result instance find all assert equals exp result result todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of find all method of class entity
|
public void test create system out println create entreprise entreprise null entreprise facade remote instance new entreprise facade remote instance create entreprise todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of create method of class entity
|
public void test edit system out println edit entreprise entreprise null entreprise facade remote instance new entreprise facade remote instance edit entreprise todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of edit method of class entity
|
public void test create system out println create emprunt emprunt null emprunt facade instance new emprunt facade instance create emprunt todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of create method of class entity
|
public void test edit system out println edit emprunt emprunt null emprunt facade instance new emprunt facade instance edit emprunt todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of edit method of class entity
|
public void test get id emprunt system out println get id emprunt emprunt instance new emprunt int exp result 0 int result instance get id emprunt assert equals exp result result todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of get id emprunt method of class entity
|
public void test get id landien system out println get id landien landien instance new landien big decimal exp result null big decimal result instance get id landien assert equals exp result result todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of get id landien method of class entity
|
public void test destroy system out println destroy entreprise entreprise null entreprise facade remote instance new entreprise facade remote instance destroy entreprise todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of destroy method of class entity
|
public void test destroy system out println destroy emprunt emprunt null emprunt facade instance new emprunt facade instance destroy emprunt todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of destroy method of class entity
|
public void test find system out println find object pk null emprunt facade instance new emprunt facade emprunt exp result null emprunt result instance find pk assert equals exp result result todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of find method of class entity
|
public void test set id emprunt system out println set id emprunt int id emprunt 0 emprunt instance new emprunt instance set id emprunt id emprunt todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of set id emprunt method of class entity
|
public void test set id landien system out println set id landien big decimal id landien null landien instance new landien instance set id landien id landien todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of set id landien method of class entity
|
public void test find all system out println find all emprunt facade instance new emprunt facade list exp result null list result instance find all assert equals exp result result todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of find all method of class entity
|
public void test find system out println find object pk null entreprise facade remote instance new entreprise facade remote entreprise exp result null entreprise result instance find pk assert equals exp result result todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of find method of class entity
|
public void test get banque system out println get banque emprunt instance new emprunt banque exp result null banque result instance get banque assert equals exp result result todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of get banque method of class entity
|
public void test get nb tour ss augmentation system out println get nb tour ss augmentation landien instance new landien int exp result 0 int result instance get nb tour ss augmentation assert equals exp result result todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of get nb tour ss augmentation method of class entity
|
public void test set banque system out println set banque banque banque null emprunt instance new emprunt instance set banque banque todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of set banque method of class entity
|
public void test find all system out println find all entreprise facade remote instance new entreprise facade remote list exp result null list result instance find all assert equals exp result result todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of find all method of class entity
|
public void test set nb tour ss augmentation system out println set nb tour ss augmentation int nb tour sans augm 0 landien instance new landien instance set nb tour ss augmentation nb tour sans augm todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of set nb tour ss augmentation method of class entity
|
public void test get taux system out println get taux emprunt instance new emprunt float exp result 0 0 f float result instance get taux assert equals exp result result todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of get taux method of class entity
|
public void test get assez manger system out println get assez manger landien instance new landien boolean exp result null boolean result instance get assez manger assert equals exp result result todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of get assez manger method of class entity
|
public void test get produit system out println get produit entreprise instance new entreprise string exp result string result instance get produit assert equals exp result result todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of get produit method of class entity
|
public void test recup entreprise system out println recup entreprise entreprise facade remote instance new entreprise facade remote collection entreprise exp result null collection entreprise result instance recup entreprise assert equals exp result result todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of recup entreprise method of class entity
|
public void test set taux system out println set taux float taux 0 0 f emprunt instance new emprunt instance set taux taux todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of set taux method of class entity
|
public void test set produit system out println set produit string produit entreprise instance new entreprise instance set produit produit todo review the generated test code and remove the default call to fail fail the test case is a prototype
|
test of set produit method of class entity
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.