Skip to content

Commit e2fb2c7

Browse files
committed
oops
1 parent c73cb52 commit e2fb2c7

26 files changed

Lines changed: 62 additions & 181 deletions

src/test/java/unquietcode/tools/flapi/examples/GenerateExamples.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ private static void generate(DescriptorMaker provider, String[] args) {
3131
Regenerates all of the examples.
3232
*/
3333
public static void main(String[] args) {
34-
args = new String[]{"/Users/bfagin/Documents/IdeaProjects/Flapi/src/test/java"};
3534
generate(new CalculatorBuilderExample(), args);
3635
generate(new EmailBuilderExample(), args);
3736
generate(new HouseBuilderExample(), args);
Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11

22
package unquietcode.tools.flapi.examples.calculator.builder.Calculation;
33

4-
import unquietcode.tools.flapi.examples.calculator.CalculatorBuilderExample.Result;
5-
import unquietcode.tools.flapi.runtime.MethodInfo;
6-
import unquietcode.tools.flapi.runtime.TransitionType;
7-
84
import javax.annotation.Generated;
95

106

@@ -16,35 +12,13 @@
1612
* Visit https://github.com/UnquietCode/Flapi for more information.
1713
*
1814
*
19-
* Generated on August 12, 2014 13:17:30 PDT using version 0.0-DEVELOPMENT
15+
* Generated on August 13, 2014 16:08:20 PDT using version 0.0-DEVELOPMENT
2016
*/
21-
@Generated(value = "unquietcode.tools.flapi", date = "2014-08-12T13:17:30-07:00", comments = "generated using Flapi, the fluent API generator for Java")
17+
@Generated(value = "unquietcode.tools.flapi", date = "2014-08-13T16:08:20-07:00", comments = "generated using Flapi, the fluent API generator for Java")
2218
public interface CalculationBuilder {
2319
public interface Start<_ReturnType>
24-
extends CalculationBuilder_2abs_4f_2divide_4f_2minus_4f_2mod_4f_2plus_4f_2power_4f_2times_4f<_ReturnType>
20+
extends CalculationBuilder_2abs_2divide_2minus_2mod_2plus_2power_2times<_ReturnType>
2521
{
26-
@MethodInfo(type = TransitionType.Recursive)
27-
CalculationBuilder.Start<_ReturnType> abs();
28-
29-
@MethodInfo(type = TransitionType.Recursive)
30-
CalculationBuilder.Start<_ReturnType> divide(int p0);
31-
32-
@MethodInfo(type = TransitionType.Terminal)
33-
Result equals();
34-
35-
@MethodInfo(type = TransitionType.Recursive)
36-
CalculationBuilder.Start<_ReturnType> minus(int p0);
37-
38-
@MethodInfo(type = TransitionType.Recursive)
39-
CalculationBuilder.Start<_ReturnType> mod(int p0);
40-
41-
@MethodInfo(type = TransitionType.Recursive)
42-
CalculationBuilder.Start<_ReturnType> plus(int p0);
43-
44-
@MethodInfo(type = TransitionType.Recursive)
45-
CalculationBuilder.Start<_ReturnType> power(int p0);
4622

47-
@MethodInfo(type = TransitionType.Recursive)
48-
CalculationBuilder.Start<_ReturnType> times(int p0);
4923
}
5024
}

src/test/java/unquietcode/tools/flapi/examples/calculator/builder/Calculator/CalculatorBuilder.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,18 @@
1515
* Visit https://github.com/UnquietCode/Flapi for more information.
1616
*
1717
*
18-
* Generated on August 12, 2014 13:17:30 PDT using version 0.0-DEVELOPMENT
18+
* Generated on August 13, 2014 16:08:20 PDT using version 0.0-DEVELOPMENT
1919
*/
20-
@Generated(value = "unquietcode.tools.flapi", date = "2014-08-12T13:17:30-07:00", comments = "generated using Flapi, the fluent API generator for Java")
20+
@Generated(value = "unquietcode.tools.flapi", date = "2014-08-13T16:08:20-07:00", comments = "generated using Flapi, the fluent API generator for Java")
2121
public interface CalculatorBuilder<_ReturnType> {
22+
@MethodInfo(type = TransitionType.Ascending, chain = {
23+
unquietcode.tools.flapi.examples.calculator.builder.Calculation.CalculationBuilder.Start.class
24+
})
25+
unquietcode.tools.flapi.examples.calculator.builder.Calculation.CalculationBuilder.Start<_ReturnType> $(int p0);
26+
2227
public interface Start<_ReturnType>
2328
extends CalculatorBuilder<_ReturnType>
2429
{
25-
@MethodInfo(type = TransitionType.Ascending, chain = {
26-
unquietcode.tools.flapi.examples.calculator.builder.Calculation.CalculationBuilder.Start.class
27-
})
28-
unquietcode.tools.flapi.examples.calculator.builder.Calculation.CalculationBuilder.Start<_ReturnType> $(int p0);
30+
2931
}
3032
}

src/test/java/unquietcode/tools/flapi/examples/calculator/builder/Calculator/CalculatorGenerator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
* Visit https://github.com/UnquietCode/Flapi for more information.
1818
*
1919
*
20-
* Generated on August 12, 2014 13:17:30 PDT using version 0.0-DEVELOPMENT
20+
* Generated on August 13, 2014 16:08:20 PDT using version 0.0-DEVELOPMENT
2121
*/
22-
@Generated(value = "unquietcode.tools.flapi", date = "2014-08-12T13:17:30-07:00", comments = "generated using Flapi, the fluent API generator for Java")
22+
@Generated(value = "unquietcode.tools.flapi", date = "2014-08-13T16:08:20-07:00", comments = "generated using Flapi, the fluent API generator for Java")
2323
public class CalculatorGenerator {
2424
public static Start<Void> begin(Calculator helper, ExecutionListener... listeners) {
2525
if (helper == null) {
Lines changed: 3 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11

22
package unquietcode.tools.flapi.examples.email.builder.Email;
33

4-
import unquietcode.tools.flapi.examples.email.EmailMessage;
5-
import unquietcode.tools.flapi.runtime.MethodInfo;
6-
import unquietcode.tools.flapi.runtime.Tracked;
7-
import unquietcode.tools.flapi.runtime.TransitionType;
8-
94
import javax.annotation.Generated;
10-
import java.io.File;
115

126

137
/**
@@ -18,37 +12,13 @@
1812
* Visit https://github.com/UnquietCode/Flapi for more information.
1913
*
2014
*
21-
* Generated on August 12, 2014 13:17:30 PDT using version 0.0-DEVELOPMENT
15+
* Generated on August 13, 2014 16:08:21 PDT using version 0.0-DEVELOPMENT
2216
*/
23-
@Generated(value = "unquietcode.tools.flapi", date = "2014-08-12T13:17:30-07:00", comments = "generated using Flapi, the fluent API generator for Java")
17+
@Generated(value = "unquietcode.tools.flapi", date = "2014-08-13T16:08:21-07:00", comments = "generated using Flapi, the fluent API generator for Java")
2418
public interface EmailBuilder {
2519
public interface Start<_ReturnType>
26-
extends EmailBuilder_2addAttachment_4f_2addBCC_4f_2addCC_4f_2addRecipient_4f_2body_4f_2sender_4f_2subject_4f<_ReturnType>
20+
extends EmailBuilder_2addAttachment_2addBCC_2addCC_2addRecipient_2body_2sender_2subject<_ReturnType>
2721
{
28-
@MethodInfo(type = TransitionType.Recursive)
29-
EmailBuilder.Start<_ReturnType> addAttachment(File file);
30-
31-
@MethodInfo(type = TransitionType.Recursive)
32-
EmailBuilder.Start<_ReturnType> addBCC(String emailAddress);
33-
34-
@MethodInfo(type = TransitionType.Recursive)
35-
EmailBuilder.Start<_ReturnType> addCC(String emailAddress);
36-
37-
@MethodInfo(type = TransitionType.Recursive)
38-
@Tracked(atLeast = 1, key = "addRecipient$String_emailAddress")
39-
EmailBuilder.Start<_ReturnType> addRecipient(String emailAddress);
40-
41-
@MethodInfo(type = TransitionType.Lateral)
42-
EmailBuilder_2addAttachment_4f_2addBCC_4f_2addCC_4f_2addRecipient_4f_2sender_4f_2subject_4f<_ReturnType> body(String text);
43-
44-
@MethodInfo(type = TransitionType.Terminal)
45-
EmailMessage send();
46-
47-
@MethodInfo(type = TransitionType.Lateral)
48-
@Tracked(atLeast = 1, key = "sender$String_emailAddress")
49-
EmailBuilder_2addAttachment_4f_2addBCC_4f_2addCC_4f_2addRecipient_4f_2body_4f_2subject_4f<_ReturnType> sender(String emailAddress);
5022

51-
@MethodInfo(type = TransitionType.Lateral)
52-
EmailBuilder_2addAttachment_4f_2addBCC_4f_2addCC_4f_2addRecipient_4f_2body_4f_2sender_4f<_ReturnType> subject(String subject);
5323
}
5424
}

src/test/java/unquietcode/tools/flapi/examples/email/builder/Email/EmailGenerator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
* Visit https://github.com/UnquietCode/Flapi for more information.
1717
*
1818
*
19-
* Generated on August 12, 2014 13:17:30 PDT using version 0.0-DEVELOPMENT
19+
* Generated on August 13, 2014 16:08:21 PDT using version 0.0-DEVELOPMENT
2020
*/
21-
@Generated(value = "unquietcode.tools.flapi", date = "2014-08-12T13:17:30-07:00", comments = "generated using Flapi, the fluent API generator for Java")
21+
@Generated(value = "unquietcode.tools.flapi", date = "2014-08-13T16:08:21-07:00", comments = "generated using Flapi, the fluent API generator for Java")
2222
public class EmailGenerator {
2323
public static Start<Void> compose(EmailHelper helper, ExecutionListener... listeners) {
2424
if (helper == null) {

src/test/java/unquietcode/tools/flapi/examples/email/builder/Email/EmailHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
* Visit https://github.com/UnquietCode/Flapi for more information.
1616
*
1717
*
18-
* Generated on August 12, 2014 13:17:30 PDT using version 0.0-DEVELOPMENT
18+
* Generated on August 13, 2014 16:08:21 PDT using version 0.0-DEVELOPMENT
1919
*/
20-
@Generated(value = "unquietcode.tools.flapi", date = "2014-08-12T13:17:30-07:00", comments = "generated using Flapi, the fluent API generator for Java")
20+
@Generated(value = "unquietcode.tools.flapi", date = "2014-08-13T16:08:21-07:00", comments = "generated using Flapi, the fluent API generator for Java")
2121
public interface EmailHelper {
2222
void addAttachment(File file);
2323

src/test/java/unquietcode/tools/flapi/examples/house/builder/House/HouseBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
* Visit https://github.com/UnquietCode/Flapi for more information.
1919
*
2020
*
21-
* Generated on August 13, 2014 12:17:17 PDT using version 0.0-DEVELOPMENT
21+
* Generated on August 13, 2014 16:08:21 PDT using version 0.0-DEVELOPMENT
2222
*/
23-
@Generated(value = "unquietcode.tools.flapi", date = "2014-08-13T12:17:17-07:00", comments = "generated using Flapi, the fluent API generator for Java")
23+
@Generated(value = "unquietcode.tools.flapi", date = "2014-08-13T16:08:21-07:00", comments = "generated using Flapi, the fluent API generator for Java")
2424
public interface HouseBuilder<_ReturnType> {
2525
@MethodInfo(type = TransitionType.Terminal, chain = {
2626
unquietcode.tools.flapi.examples.house.builder.Wall.WallBuilder.Start.class

src/test/java/unquietcode/tools/flapi/examples/house/builder/House/HouseGenerator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
* Visit https://github.com/UnquietCode/Flapi for more information.
1717
*
1818
*
19-
* Generated on August 13, 2014 12:17:17 PDT using version 0.0-DEVELOPMENT
19+
* Generated on August 13, 2014 16:08:21 PDT using version 0.0-DEVELOPMENT
2020
*/
21-
@Generated(value = "unquietcode.tools.flapi", date = "2014-08-13T12:17:17-07:00", comments = "generated using Flapi, the fluent API generator for Java")
21+
@Generated(value = "unquietcode.tools.flapi", date = "2014-08-13T16:08:21-07:00", comments = "generated using Flapi, the fluent API generator for Java")
2222
public class HouseGenerator {
2323
public static Start<Void> create(HouseHelper helper, ExecutionListener... listeners) {
2424
if (helper == null) {

src/test/java/unquietcode/tools/flapi/examples/house/builder/House/HouseHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
* Visit https://github.com/UnquietCode/Flapi for more information.
1919
*
2020
*
21-
* Generated on August 13, 2014 12:17:17 PDT using version 0.0-DEVELOPMENT
21+
* Generated on August 13, 2014 16:08:21 PDT using version 0.0-DEVELOPMENT
2222
*/
23-
@Generated(value = "unquietcode.tools.flapi", date = "2014-08-13T12:17:17-07:00", comments = "generated using Flapi, the fluent API generator for Java")
23+
@Generated(value = "unquietcode.tools.flapi", date = "2014-08-13T16:08:21-07:00", comments = "generated using Flapi, the fluent API generator for Java")
2424
public interface HouseHelper {
2525
Wall addWall(AtomicReference<WallHelper> _helper1);
2626

0 commit comments

Comments
 (0)