an error msg for spl case

This commit is contained in:
Manindra Moharana
2013-06-30 02:05:39 +05:30
parent dabba4d46a
commit 67d67db602
2 changed files with 14 additions and 0 deletions

View File

@@ -185,6 +185,7 @@ public class ErrorCheckerService implements Runnable{
defaultImportsOffset = pdePrepoc.getCoreImports().length +
pdePrepoc.getDefaultImports().length + 1;
astGenerator = new ASTGenerator(this);
syntaxErrors = true;
}
/**
@@ -321,6 +322,12 @@ public class ErrorCheckerService implements Runnable{
}
return false;
}
private boolean syntaxErrors;
public boolean hasSyntaxErrors(){
return syntaxErrors;
}
private void syntaxCheck() {
parser.setSource(sourceCode.toCharArray());
@@ -346,6 +353,8 @@ public class ErrorCheckerService implements Runnable{
problemsList.add(p);
// System.out.println(p.toString());
}
syntaxErrors = problems.length == 0 ? false : true;
}
protected URLClassLoader classLoader;
private void compileCheck() {