org.owasp.orizon.mirage.php
Class PhpCollector
java.lang.Object
org.owasp.orizon.core.Trackable
org.owasp.orizon.mirage.Collector
org.owasp.orizon.mirage.php.PhpCollector
public class PhpCollector
- extends Collector
This class will ask the auto-generated parser to do his job and it will collect information
to be used from the Modeler to create an application model.
- Since:
- 1.1
- Author:
- thesp0nge, Stephen Craig Evans
Methods inherited from class org.owasp.orizon.mirage.Collector |
canDump, canOutput, canParse, find, getCalls, getCyclomaticComplexityIndex, getError, getName, getStats, getVariables, isError, setAfterInspectStatus, setError |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
includedFiles
protected java.util.Vector<FileInclusion> includedFiles
variables
protected java.util.Vector<Var> variables
root
protected Node root
PhpCollector
public PhpCollector(java.lang.String filename)
PhpCollector
public PhpCollector(java.io.File f)
parse
public boolean parse()
- Specified by:
parse
in class Collector
getRootNode
public Node getRootNode()
inspect
public boolean inspect()
- Specified by:
inspect
in class Collector
getVariablesCount
public int getVariablesCount()
- Specified by:
getVariablesCount
in class Collector
getIdentifiersCount
public int getIdentifiersCount()
- Specified by:
getIdentifiersCount
in class Collector
spider
public boolean spider()
- Specified by:
spider
in class Collector
getFileIncludedCount
public int getFileIncludedCount()
- Specified by:
getFileIncludedCount
in class Collector
getFileIncluded
public java.util.Vector<java.lang.String> getFileIncluded()
- Specified by:
getFileIncluded
in class Collector
crawl
public boolean crawl(java.util.Vector<java.lang.String> s)
- Specified by:
crawl
in class Collector
getLastKeyWordFound
public java.lang.String getLastKeyWordFound()
show
public boolean show(java.lang.String name)
- Specified by:
show
in class Collector
dump
public boolean dump(java.lang.String what)
- Specified by:
dump
in class Collector