no message
This commit is contained in:
@@ -1,16 +1,17 @@
|
||||
package _VisualDVM.ProjectData.SapforData.Functions;
|
||||
import com.google.gson.annotations.Expose;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Vector;
|
||||
public class FuncParam {
|
||||
static final int IN_BIT = 16;
|
||||
static final int OUT_BIT = 256;
|
||||
@Expose
|
||||
Vector<Integer> inout_types;
|
||||
List<Integer> inoutTypes;
|
||||
@Expose
|
||||
Vector<String> identificators;
|
||||
List<String> identificators;
|
||||
@Expose
|
||||
Vector<String> parametersT;
|
||||
List<String> parametersT;
|
||||
@Expose
|
||||
int countOfPars;
|
||||
public FuncParam() {
|
||||
@@ -20,11 +21,11 @@ public class FuncParam {
|
||||
countOfPars = numPar;
|
||||
if (numPar != 0) {
|
||||
parametersT = new Vector<>(numPar);
|
||||
inout_types = new Vector<>(numPar);
|
||||
inoutTypes = new Vector<>(numPar);
|
||||
identificators = new Vector<>(numPar);
|
||||
for (int z = 0; z < numPar; ++z) {
|
||||
parametersT.add("NONE_T");
|
||||
inout_types.add(0);
|
||||
inoutTypes.add(0);
|
||||
identificators.add("");
|
||||
}
|
||||
}
|
||||
@@ -33,13 +34,13 @@ public class FuncParam {
|
||||
if (num >= countOfPars)
|
||||
return false;
|
||||
else
|
||||
return (inout_types.get(num) & IN_BIT) != 0;
|
||||
return (inoutTypes.get(num) & IN_BIT) != 0;
|
||||
}
|
||||
boolean IsArgOut(int num) {
|
||||
if (num >= countOfPars)
|
||||
return false;
|
||||
else
|
||||
return (inout_types.get(num) & OUT_BIT) != 0;
|
||||
return (inoutTypes.get(num) & OUT_BIT) != 0;
|
||||
}
|
||||
boolean IsArgInOut(int num) {
|
||||
if (num >= countOfPars)
|
||||
@@ -49,7 +50,7 @@ public class FuncParam {
|
||||
}
|
||||
public void FillParam(int num, String type, String ident, int inout) {
|
||||
parametersT.set(num, type);
|
||||
inout_types.set(num, inout);
|
||||
inoutTypes.set(num, inout);
|
||||
identificators.set(num, ident);
|
||||
}
|
||||
@Override
|
||||
@@ -58,7 +59,7 @@ public class FuncParam {
|
||||
for (int i = 0; i < countOfPars; ++i) {
|
||||
String ps = IsArgInOut(i) ? "inout" :
|
||||
(IsArgOut(i) ? "out" : (IsArgIn(i) ? "in" : "?!"));
|
||||
ps += " " + inout_types.get(i) + " " + identificators.get(i) + " " + parametersT.get(i);
|
||||
ps += " " + inoutTypes.get(i) + " " + identificators.get(i) + " " + parametersT.get(i);
|
||||
res.add(ps);
|
||||
}
|
||||
return String.join(",", res);
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
package _VisualDVM.ProjectData.SapforData.Functions.FunctionsJson;
|
||||
import _VisualDVM.ProjectData.SapforData.Functions.FuncInfo;
|
||||
import com.google.gson.annotations.Expose;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Vector;
|
||||
public class FileFunctionsJson {
|
||||
@Expose
|
||||
public String file;
|
||||
@Expose
|
||||
public List<FuncInfo> functions = new Vector<>();
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package _VisualDVM.ProjectData.SapforData.Functions.FunctionsJson;
|
||||
import com.google.gson.annotations.Expose;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Vector;
|
||||
public class FunctionsJson {
|
||||
@Expose
|
||||
public List<FileFunctionsJson> functions = new Vector<>();
|
||||
}
|
||||
Reference in New Issue
Block a user