Skip to content

Commit bd136d0

Browse files
author
venkato
committed
create var from return value
1 parent afedeca commit bd136d0

File tree

691 files changed

+29639
-3325
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

691 files changed

+29639
-3325
lines changed

InvokationFramework.iml

Lines changed: 0 additions & 44 deletions
This file was deleted.

groovycustom/src/net/sf/jremoterun/utilities/nonjdk/langi/JrrGroovyStaticCompilationVisitorFactory.groovy

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,23 @@ class JrrGroovyStaticCompilationVisitorFactory {
1414

1515
private static final Logger log = Logger.getLogger(JrrGroovyStaticCompilationVisitorFactory.name);
1616

17-
public static boolean useImprovedStaticCompiler
18-
public static String useImprovedCompilerProp ="groovy.useImprovedCompiler"
17+
public static boolean useImprovedStaticCompiler = true;
18+
public static String useImprovedCompilerProp = "groovy.useImprovedCompiler"
1919

2020
public static boolean loadJrrClassUtilsTryied = false
2121
public static ClassLoader cl = JrrGroovyStaticCompilationVisitorFactory.getClassLoader()
2222

23-
static {
23+
24+
static boolean getPropValueSetting() {
2425
String propsValue = System.getProperty(useImprovedCompilerProp);
25-
boolean value4;
2626
if (propsValue == null) {
27-
value4 = true
28-
} else {
29-
value4 = "true".equalsIgnoreCase(propsValue)
27+
return true
3028
}
31-
useImprovedStaticCompiler = value4
29+
return "true".equalsIgnoreCase(propsValue)
30+
}
31+
32+
static {
33+
useImprovedStaticCompiler = getPropValueSetting()
3234
}
3335

3436

groovycustom/src/net/sf/jremoterun/utilities/nonjdk/langi/JrrStaticCompilationVisitor.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@
2020
import org.codehaus.groovy.transform.sc.StaticCompilationVisitor;
2121
import org.codehaus.groovy.transform.stc.Receiver;
2222

23-
import java.util.Collection;
24-
import java.util.IdentityHashMap;
25-
import java.util.LinkedList;
26-
import java.util.List;
27-
import java.util.Map;
23+
import java.util.*;
2824
import java.util.logging.Logger;
2925

3026
@CompileStatic
@@ -82,11 +78,14 @@ public void visitBlockStatement(BlockStatement block) {
8278
}
8379
super.visitBlockStatement(block);
8480
if (block != null) {
85-
visitClosingBlock(block);
81+
visitClosingBlockJrr(block);
8682
}
8783
}
8884

89-
public void visitClosingBlock(BlockStatement block) {
85+
public void visitClosingBlockJrr(BlockStatement block) {
86+
if(enclosingBlocks.size()==0){
87+
throw new NoSuchElementException("collection is empty");
88+
}
9089
BlockStatement first = enclosingBlocks.removeFirst();
9190
boolean found = blockStatements2Types.containsKey(first);
9291
if (found) {

resources/icon/idea/reload_class.png

519 Bytes
Loading
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
import net.sf.jremoterun.utilities.nonjdk.quickfixsender.JrrQfDataHolder;
2+
import net.sf.jremoterun.utilities.nonjdk.quickfixsender.JrrQfHelper;
3+
import net.sf.jremoterun.utilities.nonjdk.quickfixsender.QfRstaRunnerWithStackTrace;
4+
5+
import java.util.*;
6+
import net.sf.jremoterun.utilities.nonjdk.rstarunner.RstaRunner;
7+
import net.sf.jremoterun.utilities.nonjdk.rstarunner.RstaScriptHelper;
8+
import groovy.transform.CompileStatic;
9+
import quickfix.Message;
10+
11+
@CompileStatic
12+
class Quickfixj_sample extends JrrQfHelper {
13+
QfRstaRunnerWithStackTrace qf;
14+
JrrQfDataHolder d;
15+
JrrQfHelper h = this;
16+
17+
void r() {
18+
}
19+
20+
void custom(){
21+
sendMsg();
22+
}
23+
24+
void sendMsg(){
25+
// 2.groovy
26+
String s = '|9=1|35=1';
27+
s= h.prepareMsg(s);
28+
log.info (s.replace(d.fixMsgNativeSep,d.humanSep));
29+
Message message = new Message(s, h.getAppDd());
30+
d.qfSession.send(message)
31+
//qf.sendMsg2();
32+
}
33+
34+
void Connect(){
35+
//qf.setAutoDisconnectTimeInSecNew(10) ;
36+
String s = """
37+
ConnectionType=initiator
38+
#ConnectionType=acceptor
39+
ReconnectInterval=60
40+
SenderCompID=ARCA
41+
TargetCompID=TW
42+
#SocketAcceptPort=6716
43+
SocketConnectPort=6712
44+
SocketConnectHost=127.0.0.1
45+
HeartBtInt=20
46+
StartTime=23:30:00
47+
EndTime=23:30:00
48+
BeginString=FIX.4.4
49+
DataDictionary=FIX44.xml
50+
RefreshOnLogon=Y
51+
ResetOnLogon=Y
52+
53+
"""
54+
//qf.stopCurrent();
55+
Properties props = h.parsePropsFromString(s);
56+
h.initSession(props);
57+
}
58+
59+
@Override
60+
void init() {
61+
qf = (QfRstaRunnerWithStackTrace) runner;
62+
d = qf.d;
63+
h.init2();
64+
65+
}
66+
67+
}

resources/tcpmon/Sam.groovy

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ class Sam extends RstaScriptHelper {
2424
SyntaxConstants.SYNTAX_STYLE_NONE,
2525
SyntaxConstants.SYNTAX_STYLE_NONE, true);
2626
//configProxy(l);
27-
2827
}
2928

3029
void configProxy(Listener l) {
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package tcpmon
2+
3+
import groovy.transform.CompileStatic;
4+
import net.sf.jremoterun.utilities.JrrClassUtils
5+
import net.sf.jremoterun.utilities.classpath.ClRef;
6+
7+
import java.util.logging.Logger;
8+
9+
@CompileStatic
10+
class extMethodTester implements Runnable {
11+
private static final Logger log = JrrClassUtils.getJdkLogForCurrentClass();
12+
13+
@Override
14+
void run() {
15+
// used in
16+
new ClRef('net.sf.jremoterun.utilities.nonjdk.groovy.ExtentionMethodChecker2')
17+
18+
log.debug("test msg");
19+
File f1 = new File('.');
20+
File f2 = new File('.');
21+
f1.isChildFile(f2);
22+
}
23+
}

resources/tcpmon/rstatester.groovy

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import net.sf.jremoterun.utilities.classpath.ClRef
2+
13
import java.util.*;
24
import net.sf.jremoterun.utilities.nonjdk.rstarunner.RstaRunner;
35
import net.sf.jremoterun.utilities.nonjdk.rstarunner.RstaScriptHelper;
@@ -13,5 +15,7 @@ class RstaRunner2 extends RstaScriptHelper {
1315
Thread.sleep(10_000);
1416
runner2.status = "${runner2.stopFlag}";
1517
Thread t;
18+
// used in :
19+
new ClRef('net.sf.jremoterun.utilities.nonjdk.rstarunner.RstaTester')
1620
}
1721
}

richNpe/antimodule64.dll

399 KB
Binary file not shown.

richNpe/richNPE64.dll

411 KB
Binary file not shown.

0 commit comments

Comments
 (0)