input
stringlengths 10
828
| output
stringlengths 5
107
|
---|---|
public less than create less than return new less than | creates a new |
public less than create less than expression lhs expression rhs return new less than lhs rhs | creates a new |
public logical and create logical and return new logical and | creates a new |
public logical and create logical and expression lhs expression rhs return new logical and lhs rhs | creates a new |
public logical not create logical not return new logical not | creates a new |
public logical not create logical not expression child return new logical not child | creates a new |
public logical or create logical or return new logical or | creates a new |
public logical or create logical or expression lhs expression rhs return new logical or lhs rhs | creates a new |
public minus create minus return new minus | creates a new |
public minus create minus expression lhs expression rhs return new minus lhs rhs | creates a new |
public minus assignment create minus assignment return new minus assignment | creates a new |
public minus assignment create minus assignment expression lhs expression rhs return new minus assignment lhs rhs | creates a new |
public modulo create modulo return new modulo | creates a new |
public modulo create modulo expression lhs expression rhs return new modulo lhs rhs | creates a new |
public modulo assignment create modulo assignment return new modulo assignment | creates a new |
public modulo assignment create modulo assignment expression lhs expression rhs return new modulo assignment lhs rhs | creates a new |
private void visit target string string attribute target target print header target print element indentation target print string print indentation 0 1 print print footer target | method visit target |
public negative create negative return new negative | creates a new |
public void model changed change history event changes tree change list changed changes get changes int s changed size listeners fire progress event 0 s int c 0 detached first for int i 0 i s i 1 tree change tc changed get tree change i if tc is minor tc instanceof detach change process change tc listeners fire progress event c for int i 0 i s i 1 tree change tc changed get tree change i if tc is minor tc instanceof attach change process change tc listeners fire progress event c | change notification callback method |
public negative create negative expression child return new negative child | creates a new |
private boolean determines global entity name program element pe if pe instanceof identifier program element parent pe get astparent global names belong to members however we must assure that members with a member name rather than just an identifier are also evaluated return parent instanceof member declaration parent instanceof member name parent get astparent instanceof member declaration names may also change if the type reference of a member name changes if pe instanceof type reference is part of pe member name class return true return false | determines whether or not the given progran element is the name of a |
public new create new return new new | creates a new |
private boolean determines global entity type program element pe todo rethink of this part once again with the new declarations in mind too if is part of pe type reference class is part of pe field declaration class is part of pe inheritance specification class return true return false | determines whether or not the given progran element specifies the type of |
private class type get class type from namespace string name string namespace this may not function since one cu may have multiple namespaces string xname namespace if xname length 0 xname naming dot xname name if debug debug log checking unit package type xname return get name info get class type xname | try to load a class with the given name in the specified namespace |
public new array create new array return new new array | creates a new |
private declared type get member type string short name declared type dt if dt instanceof class type class type ct class type dt if debug debug log checking for type short name within ct get full name declared type list inner types ct get declared types for int i inner types size 1 i 0 i 1 declared type candid inner types get declared type i if short name equals candid get name return candid return null | searches the given short name as a member type of the given class |
public new modifier create new modifier return new new modifier | creates a new |
public not equals create not equals return new not equals | creates a new |
public not equals create not equals expression lhs expression rhs return new not equals lhs rhs | creates a new |
public plus create plus return new plus | creates a new |
public plus create plus expression lhs expression rhs return new plus lhs rhs | creates a new |
public type get type program element pe update model type result null if pe instanceof expression result get type expression pe else if pe instanceof uncollated reference qualifier result get type uncollated reference qualifier pe else if pe instanceof type reference result get type type reference pe else if pe instanceof variable specification result get type variable specification pe else if pe instanceof method declaration if pe instanceof constructor declaration result get return type method declaration pe else if pe instanceof type declaration result get type type declaration pe return result | returns the type of the given program element |
public plus assignment create plus assignment return new plus assignment | creates a new |
public plus assignment create plus assignment expression lhs expression rhs return new plus assignment lhs rhs | creates a new |
public positive create positive return new positive | creates a new |
public positive create positive expression child return new positive child | creates a new |
public post decrement create post decrement return new post decrement | creates a new |
public post decrement create post decrement expression child return new post decrement child | creates a new |
public post increment create post increment return new post increment | creates a new |
public post increment create post increment expression child return new post increment child | creates a new |
public variable get variable delegate call reference dr variable v variable reference2element get dr if v null v get variable dr get name dr if v null reference2element put dr v return v | method get delegate |
public pre decrement create pre decrement return new pre decrement | creates a new |
public pre decrement create pre decrement expression child return new pre decrement child | creates a new |
public pre increment create pre increment return new pre increment | creates a new |
public pre increment create pre increment expression child return new pre increment child | creates a new |
public shift left create shift left return new shift left | creates a new |
public shift left create shift left expression lhs expression rhs return new shift left lhs rhs | creates a new |
public shift left assignment create shift left assignment return new shift left assignment | creates a new |
public shift right create shift right return new shift right | creates a new |
public shift right create shift right expression lhs expression rhs return new shift right lhs rhs | creates a new |
public shift right assignment create shift right assignment return new shift right assignment | creates a new |
public times create times return new times | creates a new |
public times create times expression lhs expression rhs return new times lhs rhs | creates a new |
public times assignment create times assignment return new times assignment | creates a new |
public program element get unresolved reference return program element | returns the program element that could not be resolved |
public expression get untypable expression return expression | returns the expression that could not be typed |
public times assignment create times assignment expression lhs expression rhs return new times assignment lhs rhs | creates a new |
public type cast create type cast return new type cast | creates a new |
public type cast create type cast expression child type reference typeref return new type cast child typeref | creates a new |
public named model element get reason return reason | returns the element that produced the name conflict |
public as create as return new as | creates a new |
public void set service configuration cross reference service configuration sc if sc null throw new illegal argument exception a transformation needs a service configuration to work service configuration sc | sets the service configuration to use for this transformation |
public as create as expression child type reference typeref return new as child typeref | creates a new |
protected program factory get program factory return service configuration get program factory | returns the program factory service contained in the |
public abstract create abstract return new abstract | creates a new |
protected change history get change history return service configuration get change history | returns the change history service contained in the |
protected source info get source info return service configuration get source info | returns the source info service contained in the |
public internal create internal return new internal | creates a new |
protected cross reference source info get cross reference source info return service configuration get cross reference source info | returns the cross reference source info service contained in the |
protected name info get name info return service configuration get name info | returns the name info service contained in the |
public sealed create sealed return new sealed | creates a new |
protected source file repository get source file repository return service configuration get source file repository | returns the source file repository service contained in the |
public private create private return new private | creates a new |
public problem report execute return set problem report identity | performs the transformation |
public problem report get problem report return report | returns the problem report |
public protected create protected return new protected | creates a new |
protected problem report set problem report problem report report return this report report | sets the problem report |
public public create public return new public | creates a new |
public void rollback throws no such transformation exception if is visible get change history rollback this | reverts all changes of this transformation including all changes |
public string to string string result get class get name int ldp result last index of if ldp 0 result result substring ldp 1 return result | returns a short description of this transformation |
public static create static return new static | creates a new |
public readonly create readonly return new readonly | creates a new |
public void register program element pe debug asserta pe if pe instanceof compilation unit if compilation unit pe is defined scope analyze program element pe else debug asserta pe get astparent analyze program element pe | analyzes the given program subtree |
public statement list get succeeding statements return successors | returns the successors of the current statement |
public boolean is reachable statement s return reached contains s | returns code true code if the specified statement has |
public problem report analyze set problem report no problem return no problem | prepares all necessary information for the syntactic transformation |
public void transform if get problem report null throw new illegal state exception no analyze if is visible get change history begin this | performs the syntactic transformation |
public problem report execute problem report report analyze if report instanceof no problem report instanceof identity transform return report | convenience template method that calls |
private void analyze program element program element pe debug asserta pe analyze program element0 pe | analyzes the given tree element within the specified scope |
public out create out return new out | creates a new |
public virtual create virtual return new virtual | creates a new |
public override create override return new override | creates a new |
public type get base type enum e debug asserta e update model type result null enum declaration ed get enum declaration e if ed null result e get program model info get base type e else type reference tr ed get base type reference if tr null void equals tr get name result get type tr return result | returns the basetype of an enum |
public extern create extern return new extern | creates a new |
public volatile create volatile return new volatile | creates a new |
public break create break return new break | creates a new |
public case create case return new case | creates a new |
private enum member get enum member string name enum e enum member f null enum member list flds e get fields for int i flds size 1 i 0 i enum member em flds get enum member i if em get name equals name f em return f | returns the named enum member in an enum |
public case create case expression e return new case e | creates a new |
private void parse string file name throws ioexception parser exception cu sc get program factory parse compilation unit new file reader file name | this method parses the file that is currently beeing tested |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.