MCPcopy Create free account
hub / github.com/Aghajari/MathParser / isExp

Method isExp

MathParser/src/com/aghajari/Main.java:47–57  ·  view source on GitHub ↗
(String line)

Source from the content-addressed store, hash-verified

45 }
46
47 public static boolean isExp(String line) {
48 if (line.contains("=")) {
49 if (line.contains("if")) {
50 return isExp(line.substring(0, line.indexOf("if")));
51 } else {
52 String l2 = line.substring(0, line.indexOf('='));
53 return Utils.isIdentifier(Utils.realTrim(l2)) || l2.contains("(");
54 }
55 } else
56 return false;
57 }
58}

Callers 1

mainMethod · 0.95

Calls 2

isIdentifierMethod · 0.95
realTrimMethod · 0.95

Tested by

no test coverage detected