|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ch.elca.dependency.core.classinfo.Reader
This class is used to read the dependency informations out of the .class files. That means all the classes and packages that are needed for compiling a java source file. All the informations in a java class file are read in the diverse helper clases and they are stored in the attributes of this class. In this manner all the stuff contained in a class file is accessible by the getter methods of this class.
AttributeInfo
,
ConstantPoolInfo
,
MethodInfo
,
FieldInfo
,
ClassInfo
,
InvalidClassFileException
Field Summary | |
static int |
ACC_ABSTRACT
|
static int |
ACC_FINAL
|
static int |
ACC_INTERFACE
|
static int |
ACC_NATIVE
|
static int |
ACC_PRIVATE
|
static int |
ACC_PROTECTED
|
static int |
ACC_PUBLIC
|
static int |
ACC_STATIC
|
static int |
ACC_SYNCHRONIZED
|
static int |
ACC_THREADSAFE
|
static int |
ACC_TRANSIENT
|
boolean |
dumpConstants
|
Constructor Summary | |
Reader()
|
Method Summary | |
static java.lang.String |
accessString(short flags)
Returns a string that represents what the access flags are set for. |
ClassInfo |
getClassInfo()
Creates a ClassInfo object, fills in the required information and returns it. |
java.lang.String |
getClassName()
Get the name of the class. |
java.util.HashSet |
getImplementedInterfaces()
Get the implemented interfaces by this class. |
java.lang.String |
getSuperClass()
Get super class. |
static java.lang.String |
nextSig(java.lang.String sig)
Returns the next signature from a string of concatenated signatures. |
boolean |
read(java.io.InputStream in)
Read a class from InputStream in. |
java.lang.String |
toString()
The boring version of display(). |
static java.lang.String |
typeString(java.lang.String typeString,
java.lang.String varName)
Takes a type signature and a string representing a variable name and returns a declaration for that variable name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public boolean dumpConstants
public static final int ACC_PUBLIC
public static final int ACC_PRIVATE
public static final int ACC_PROTECTED
public static final int ACC_STATIC
public static final int ACC_FINAL
public static final int ACC_SYNCHRONIZED
public static final int ACC_THREADSAFE
public static final int ACC_TRANSIENT
public static final int ACC_NATIVE
public static final int ACC_INTERFACE
public static final int ACC_ABSTRACT
Constructor Detail |
public Reader()
Method Detail |
public boolean read(java.io.InputStream in) throws java.io.IOException
in
- InputStream for reading the content of the specified .class
file.
boolean
value indicating, whether the
input were valid bytecodes.
java.io.IOException
- if an error occurspublic ClassInfo getClassInfo() throws java.lang.IllegalArgumentException, InvalidClassFileException
ClassInfo
object with the dependency informations.
java.lang.IllegalArgumentException
- If the constructor of the
ClassInfo
object has wrong
arguments.
InvalidClassFileException
- If the there is something wrong with
the .class file.public static java.lang.String typeString(java.lang.String typeString, java.lang.String varName)
typeString
- String representing the type.varName
- String representing the variable name.public static java.lang.String accessString(short flags)
public static java.lang.String nextSig(java.lang.String sig)
public java.lang.String getClassName()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getSuperClass()
public java.util.HashSet getImplementedInterfaces()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |