|
Jode 1.90-CVS Build Aug 6, 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jode.decompiler.ClassAnalyzer
Field Summary |
Fields inherited from interface net.sf.jode.decompiler.Scope |
AMBIGUOUSNAME, CLASSNAME, CLASSSCOPE, FIELDNAME, LOCALNAME, METHODNAME, METHODSCOPE, NOSUPERFIELDNAME, NOSUPERMETHODNAME, PACKAGENAME |
Constructor Summary | |
ClassAnalyzer(ClassDeclarer parent,
ClassInfo clazz,
ImportHandler imports)
|
|
ClassAnalyzer(ClassDeclarer parent,
ClassInfo clazz,
ImportHandler imports,
Expression[] outerValues)
|
|
ClassAnalyzer(ClassInfo clazz,
ImportHandler imports)
|
Method Summary | |
void |
addBlockInitializer(int index,
StructuredBlock initializer)
|
void |
addClassAnalyzer(ClassAnalyzer clazzAna)
|
void |
analyze(ProgressListener pl,
double done,
double scale)
|
void |
analyzeInnerClasses(ProgressListener pl,
double done,
double scale)
|
boolean |
conflicts(java.lang.String name,
int usageType)
|
void |
dumpBlock(TabbedPrintWriter writer)
|
void |
dumpBlock(TabbedPrintWriter writer,
ProgressListener pl,
double done,
double scale)
|
void |
dumpDeclaration(TabbedPrintWriter writer)
|
void |
dumpDeclaration(TabbedPrintWriter writer,
ProgressListener pl,
double done,
double scale)
|
void |
dumpJavaFile(TabbedPrintWriter writer)
|
void |
dumpJavaFile(TabbedPrintWriter writer,
ProgressListener pl)
|
void |
dumpSource(TabbedPrintWriter writer)
|
void |
dumpSource(TabbedPrintWriter writer,
ProgressListener pl,
double done,
double scale)
|
void |
fillDeclarables(java.util.Collection used)
We add the named method scoped classes to the declarables. |
ClassAnalyzer |
getClassAnalyzer(ClassInfo cinfo)
Get the class analyzer for the given class info. |
ClassPath |
getClassPath()
|
ClassInfo |
getClazz()
|
double |
getComplexity()
Gets the complexity of this class. |
FieldAnalyzer |
getField(int index)
|
int |
getFieldIndex(java.lang.String fieldName,
Type fieldType)
|
ClassAnalyzer |
getInnerClassAnalyzer(java.lang.String name)
Get the class analyzer for the given inner class. |
MethodAnalyzer |
getMethod(java.lang.String methodName,
MethodType methodType)
|
int |
getModifiers()
|
java.lang.String |
getName()
Get the name of this declarable. |
Expression |
getOuterInstance()
|
OuterValues |
getOuterValues()
|
ClassDeclarer |
getParent()
Get the parent of this ClassDeclarer. |
void |
initialize()
|
boolean |
isScopeOf(java.lang.Object obj,
int scopeType)
Tells if this is the scope of the given object, which is of scopeType. |
boolean |
isStatic()
|
boolean |
isStrictFP()
|
void |
makeDeclaration(java.util.Set done)
|
void |
makeNameUnique()
Set the name of this local. |
void |
setName(java.lang.String name)
|
void |
setParent(ClassDeclarer newParent)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ClassAnalyzer(ClassDeclarer parent, ClassInfo clazz, ImportHandler imports, Expression[] outerValues) throws ClassFormatException, java.io.IOException
public ClassAnalyzer(ClassDeclarer parent, ClassInfo clazz, ImportHandler imports) throws ClassFormatException, java.io.IOException
public ClassAnalyzer(ClassInfo clazz, ImportHandler imports) throws ClassFormatException, java.io.IOException
Method Detail |
public ClassPath getClassPath()
public final boolean isStatic()
public final boolean isStrictFP()
public FieldAnalyzer getField(int index)
public int getFieldIndex(java.lang.String fieldName, Type fieldType)
public MethodAnalyzer getMethod(java.lang.String methodName, MethodType methodType)
public int getModifiers()
public ClassDeclarer getParent()
ClassDeclarer
getParent
in interface ClassDeclarer
public void setParent(ClassDeclarer newParent)
public ClassInfo getClazz()
public java.lang.String getName()
Declarable
getName
in interface Declarable
public void setName(java.lang.String name)
public OuterValues getOuterValues()
public Expression getOuterInstance()
public void addBlockInitializer(int index, StructuredBlock initializer)
public void initialize()
public double getComplexity()
public void analyze(ProgressListener pl, double done, double scale)
public void analyzeInnerClasses(ProgressListener pl, double done, double scale)
public void makeDeclaration(java.util.Set done)
public void dumpDeclaration(TabbedPrintWriter writer) throws java.io.IOException
dumpDeclaration
in interface Declarable
java.io.IOException
public void dumpDeclaration(TabbedPrintWriter writer, ProgressListener pl, double done, double scale) throws java.io.IOException
java.io.IOException
public void dumpBlock(TabbedPrintWriter writer) throws java.io.IOException
java.io.IOException
public void dumpBlock(TabbedPrintWriter writer, ProgressListener pl, double done, double scale) throws java.io.IOException
java.io.IOException
public void dumpSource(TabbedPrintWriter writer) throws java.io.IOException
java.io.IOException
public void dumpSource(TabbedPrintWriter writer, ProgressListener pl, double done, double scale) throws java.io.IOException
java.io.IOException
public void dumpJavaFile(TabbedPrintWriter writer) throws java.io.IOException
java.io.IOException
public void dumpJavaFile(TabbedPrintWriter writer, ProgressListener pl) throws java.io.IOException
java.io.IOException
public boolean isScopeOf(java.lang.Object obj, int scopeType)
Scope
isScopeOf
in interface Scope
obj
- the object for which the scope
public void makeNameUnique()
Declarable
makeNameUnique
in interface Declarable
public boolean conflicts(java.lang.String name, int usageType)
conflicts
in interface Scope
public ClassAnalyzer getClassAnalyzer(ClassInfo cinfo)
getClassAnalyzer
in interface ClassDeclarer
cinfo
- the classinfo for which the analyzer is searched.
public ClassAnalyzer getInnerClassAnalyzer(java.lang.String name)
name
- the short name of the inner class
public void fillDeclarables(java.util.Collection used)
public void addClassAnalyzer(ClassAnalyzer clazzAna)
addClassAnalyzer
in interface ClassDeclarer
public java.lang.String toString()
|
Jode 1.90-CVS Build Aug 6, 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |