-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplates.java
More file actions
166 lines (133 loc) · 4.13 KB
/
Copy pathtemplates.java
File metadata and controls
166 lines (133 loc) · 4.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package soloditysmartcontractgenerator.Component;
/**
*
* @author wfabe
*/
public class templates {
//basic elements
public static String Start = "{";
public static String end = "}";
public static String BeginAcolade="(";
public static String FinAcolade=")";
public static String comma=",";
public static String Fin=";";
//main apptern
public static String entete="SPDX-License-Identifier: MIT";
public static String first="pragma solidity ^";
public static String importtKeyWord="import";
public static String contract="contract";
public static String interfaceHeritage="is";
public static String constructor="constructor";
public static String constructorparam=BeginAcolade+""+FinAcolade;
//function
public static String FNkeyword="function";
public static String FNparam=BeginAcolade+""+FinAcolade;
public static String FNScope="";
public static String FnReturns="returns";
public static String returnParams=BeginAcolade+""+FinAcolade;
public static String returnkeyword="return";
//view function
public static String viewKeyword="view";
//pure function
public static String purekeyword="pure";
//fallbackFunction
public static String externalKeyword="external";
//event
public static String eventkeyword="event";
public static String eventParm="";
//modifier
public static String modifierkeyword="modifier";
public static String modifierParam=BeginAcolade+""+FinAcolade;
public static String require="require";
public static String modifierFin="_;";
//String ="";String ="";String ="";String ="";String ="";
public static String getStart() {
return Start;
}
public static String getEnd() {
return end;
}
public static String getBeginAcolade() {
return BeginAcolade;
}
public static String getFinAcolade() {
return FinAcolade;
}
public static String getComma() {
return comma;
}
public static String getFin() {
return Fin;
}
public static String getEntete() {
return entete;
}
public static String getFirst() {
return first;
}
public static String getImporttKeyWord() {
return importtKeyWord;
}
public static String getContract() {
return contract;
}
public static String getInterfaceHeritage() {
return interfaceHeritage;
}
public static String getConstructor() {
return constructor;
}
public static String getConstructorparam() {
return constructorparam;
}
public static String getFNkeyword() {
return FNkeyword;
}
public static String getFNparam() {
return FNparam;
}
public static String getFNScope() {
return FNScope;
}
public static String getFnReturns() {
return FnReturns;
}
public static String getReturnParams() {
return returnParams;
}
public static String getReturnkeyword() {
return returnkeyword;
}
public static String getViewKeyword() {
return viewKeyword;
}
public static String getPurekeyword() {
return purekeyword;
}
public static String getExternalKeyword() {
return externalKeyword;
}
public static String getEventkeyword() {
return eventkeyword;
}
public static String getEventParm() {
return eventParm;
}
public static String getModifierkeyword() {
return modifierkeyword;
}
public static String getModifierParam() {
return modifierParam;
}
public static String getRequire() {
return require;
}
public static String getModifierFin() {
return modifierFin;
}
}