|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.colby.cs.JeSS.scanner.SecurityScanner
This class recieves a java Project, Package or Compilation Unit and generates an AST. This AST is then relayed to the VisitorManager class where it is evaluated for security bugs. This process passes the integer warningsCount to track the number of bugs found.
Field Summary | |
private VisitorManager |
vManager
|
Constructor Summary | |
SecurityScanner(org.eclipse.jface.preference.IPreferenceStore store)
|
Method Summary | |
private int |
scanCompilationUnit(org.eclipse.jdt.core.dom.CompilationUnit result,
org.eclipse.core.resources.IFile file)
Processes a org.eclipse.jdt.core.dom.CompilationUnit which is the root of an AST and passes it to the VisitorManager for security analysis |
int |
scanCompilationUnit(org.eclipse.jdt.core.ICompilationUnit compUnit)
WARNING: do not confuse with the private method of the same name! This method accepts type org.eclipse.jdt.core.ICompilationUnit and then extracts the local resource and generates an AST before it is passed along for security analysis |
int |
scanPackage(org.eclipse.jdt.core.IPackageFragment fragment)
Receive a package fragment and extract the compilation units to be processed indiviually. |
int |
scanProject(org.eclipse.jdt.core.IJavaProject project)
This method receives a Java project and the projects immediate Resource. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private VisitorManager vManager
Constructor Detail |
public SecurityScanner(org.eclipse.jface.preference.IPreferenceStore store)
Method Detail |
public int scanProject(org.eclipse.jdt.core.IJavaProject project) throws org.eclipse.jdt.core.JavaModelException
project
- - the project to be scanned
org.eclipse.jdt.core.JavaModelException
public int scanPackage(org.eclipse.jdt.core.IPackageFragment fragment) throws org.eclipse.jdt.core.JavaModelException
fragment
- - the fragment to be processed
org.eclipse.jdt.core.JavaModelException
public int scanCompilationUnit(org.eclipse.jdt.core.ICompilationUnit compUnit)
compUnit
- - the ICompilationUnit to be analyzed
private int scanCompilationUnit(org.eclipse.jdt.core.dom.CompilationUnit result, org.eclipse.core.resources.IFile file)
result
- the root of the AST to be analyzedfile
- the local resource of the CompilationUnit
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |