Package org.eclipse.steady.java
Class ClassFileAnalyzer
- java.lang.Object
-
- org.eclipse.steady.java.ClassFileAnalyzer
-
- All Implemented Interfaces:
FileAnalyzer
public class ClassFileAnalyzer extends Object implements FileAnalyzer
Analyzes class files.
-
-
Constructor Summary
Constructors Constructor Description ClassFileAnalyzer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidanalyze(File _file)booleancanAnalyze(File _file)booleancontainsConstruct(ConstructId _id)Set<FileAnalyzer>getChilds(boolean _recursive)ConstructgetConstruct(ConstructId _id)Map<ConstructId,Construct>getConstructs()String[]getSupportedFileExtensions()booleanhasChilds()voidsetFile(File _file)Setter for the fieldfile.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.steady.FileAnalyzer
equals, hashCode
-
-
-
-
Method Detail
-
getSupportedFileExtensions
public String[] getSupportedFileExtensions()
- Specified by:
getSupportedFileExtensionsin interfaceFileAnalyzer
-
canAnalyze
public boolean canAnalyze(File _file)
- Specified by:
canAnalyzein interfaceFileAnalyzer
-
analyze
public void analyze(File _file) throws FileAnalysisException
- Specified by:
analyzein interfaceFileAnalyzer- Throws:
FileAnalysisException
-
setFile
public void setFile(File _file) throws IllegalArgumentException
Setter for the field
file.- Parameters:
_file- aFileobject.- Throws:
IllegalArgumentException- if any.
-
getConstructs
public Map<ConstructId,Construct> getConstructs() throws FileAnalysisException
- Specified by:
getConstructsin interfaceFileAnalyzer- Throws:
FileAnalysisException
-
containsConstruct
public boolean containsConstruct(ConstructId _id) throws FileAnalysisException
- Specified by:
containsConstructin interfaceFileAnalyzer- Throws:
FileAnalysisException
-
getConstruct
public Construct getConstruct(ConstructId _id) throws FileAnalysisException
- Specified by:
getConstructin interfaceFileAnalyzer- Throws:
FileAnalysisException
-
hasChilds
public boolean hasChilds()
- Specified by:
hasChildsin interfaceFileAnalyzer
-
getChilds
public Set<FileAnalyzer> getChilds(boolean _recursive)
- Specified by:
getChildsin interfaceFileAnalyzer
-
-