File tree Expand file tree Collapse file tree 3 files changed +25
-18
lines changed
light-core/src/main/java/org/panda_lang/light/framework
design/architecture/linguistic
language/resource/phrasemes Expand file tree Collapse file tree 3 files changed +25
-18
lines changed Original file line number Diff line number Diff line change 2222
2323public interface Context {
2424
25- void importComponent (ContextComponent <?> component );
26-
2725 @ Nullable LinguisticAct find (String sentence , @ Nullable LinguisticCandidate <LinguisticAct > previousCandidate );
2826
27+ void importComponent (ContextComponent <?> component );
28+
2929 Context fork ();
3030
3131 @ Nullable Type <?> getType (String type );
Original file line number Diff line number Diff line change 1616
1717package org .panda_lang .light .framework .language .resource .phrasemes ;
1818
19- import org .panda_lang .light .LightConstants ;
2019import org .panda_lang .light .framework .language .architecture .linguistic .phraseme .registry .Id ;
2120import org .panda_lang .light .framework .language .architecture .linguistic .phraseme .registry .PhrasemeRepresentation ;
2221
@@ -32,19 +31,4 @@ public void sendMessageToConsole(@Id("message") boolean message) {
3231 System .out .println ("boolean::" + message );
3332 }
3433
35- @ PhrasemeRepresentation ("light version" )
36- public String lightVersion () {
37- return LightConstants .VERSION ;
38- }
39-
40- @ PhrasemeRepresentation ("string of <object>" )
41- public String stringOf (Object obj ) {
42- return obj .toString ();
43- }
44-
45- @ PhrasemeRepresentation ("joined <string> and <string>" )
46- public String join (String a , String b ) {
47- return a + b ;
48- }
49-
5034}
Original file line number Diff line number Diff line change 1+ package org .panda_lang .light .framework .language .resource .phrasemes ;
2+
3+ import org .panda_lang .light .LightConstants ;
4+ import org .panda_lang .light .framework .language .architecture .linguistic .phraseme .registry .PhrasemeRepresentation ;
5+
6+ public class TestPhrasemes {
7+
8+ @ PhrasemeRepresentation ("light version" )
9+ public String lightVersion () {
10+ return LightConstants .VERSION ;
11+ }
12+
13+ @ PhrasemeRepresentation ("string of <object>" )
14+ public String stringOf (Object obj ) {
15+ return obj .toString ();
16+ }
17+
18+ @ PhrasemeRepresentation ("joined <string> and <string>" )
19+ public String join (String a , String b ) {
20+ return a + b ;
21+ }
22+
23+ }
You can’t perform that action at this time.
0 commit comments