|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--at.dms.classfile.Member | +--at.dms.classfile.ClassInfo
Class file representation: VMS 4.1 Class File. This is the place where all information about the class defined by this class file resides.
Constructor Summary | |
ClassInfo(java.io.DataInput in,
boolean interfaceOnly)
Constructs a class info structure from a class file. |
|
ClassInfo(short modifiers,
java.lang.String thisClass,
java.lang.String superClass,
ClassConstant[] interfaces,
FieldInfo[] fields,
MethodInfo[] methods,
InnerClassInfo[] innerClasses,
java.lang.String sourceFile,
boolean deprecated)
Constructs a new class info structure. |
|
ClassInfo(short modifiers,
java.lang.String thisClass,
java.lang.String superClass,
java.util.List interfaces,
java.util.List fields,
java.util.List methods,
InnerClassInfo[] innerClasses,
java.lang.String sourceFile,
boolean deprecated)
Constructs a new class info structure. |
Method Summary | |
FieldInfo[] |
getFields()
Returns the fields info of the class in the file. |
InnerClassInfo[] |
getInnerClasses()
Returns the inner classes table of the class in the file. |
java.lang.String[] |
getInterfaces()
Returns the interfaces of the class in the file. |
int |
getMajorVersion()
Returns the version of the class in the file. |
MethodInfo[] |
getMethods()
Returns the methods info of the class in the file. |
int |
getMinorVersion()
Returns the version of the class in the file. |
java.lang.String |
getName()
Returns the name of the this class (fully qualified). |
java.lang.String |
getSignature()
Returns the type of this class. |
java.lang.String |
getSourceFile()
Returns the source file of the class in the file. |
java.lang.String |
getSuperClass()
Returns the super class of the class in the file. |
boolean |
isDeprecated()
Returns true if the field is deprecated. |
void |
setDeprecated(boolean deprecated)
Sets the deprecated attribute of this field. |
void |
setFields(FieldInfo[] fields)
Sets the fields info of the class in the file. |
void |
setInnerClasses(InnerClassInfo[] inners)
Sets the inner classes table of the class in the file. |
void |
setInterfaces(java.lang.String[] interfaces)
Sets the interfaces of the class in the file. |
void |
setMajorVersion(int majorVersion)
Sets the version of the class in the file. |
void |
setMethods(MethodInfo[] methods)
Sets the methods info of the class in the file. |
void |
setMinorVersion(int minorVersion)
Sets the version of the class in the file. |
void |
setName(java.lang.String name)
Sets the name of the this field (fully qualified). |
void |
setSourceFile(java.lang.String name)
Returns the source file of the class in the file. |
void |
setSuperClass(java.lang.String superClass)
Sets the super class of the class in the file. |
void |
write(java.io.DataOutput out)
Writes the content of the class to the specified output stream. |
void |
write(java.io.File writeDir,
java.lang.String writeFile)
Writes the contents of the class to a file. |
void |
write(java.lang.String destination)
Writes the contents of the class to a file. |
Methods inherited from class at.dms.classfile.Member |
getModifiers, setModifiers |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public ClassInfo(short modifiers, java.lang.String thisClass, java.lang.String superClass, java.util.List interfaces, java.util.List fields, java.util.List methods, InnerClassInfo[] innerClasses, java.lang.String sourceFile, boolean deprecated)
modifiers
- Access permission to and properties of this class.thisClass
- The class or interface defined by this class file.superClass
- The superclass of this class.interfaces
- The interfaces implemented by this class.fields
- The fields which are members of this class.methods
- The methods which are members of this class.innerClasses
- The inner classes which are members of this class.sourceFile
- The name of the source file.deprecated
- Is this class deprecated?public ClassInfo(short modifiers, java.lang.String thisClass, java.lang.String superClass, ClassConstant[] interfaces, FieldInfo[] fields, MethodInfo[] methods, InnerClassInfo[] innerClasses, java.lang.String sourceFile, boolean deprecated)
modifiers
- Access permissions to and properties of this class.thisClass
- The class or interface defined by this class file.superClass
- The superclass of this class.interfaces
- The interfaces implemented by this class.fields
- Tthe fields which are members of this class.methods
- The methods which are members of this class.innerClasses
- The inner classes which are members of this class.sourceFile
- The name of the source file.deprecated
- Is this class deprecated?public ClassInfo(java.io.DataInput in, boolean interfaceOnly) throws java.io.IOException, ClassFileFormatException
in
- The stream to read the class from.interfaceOnly
- Load only the interface, not the source code.java.io.IOException
- An io problem has occured.ClassFileFormatException
- Attempt to read from a bad classfile.Method Detail |
public java.lang.String getName()
getName
in class Member
public void setName(java.lang.String name)
public java.lang.String getSignature()
getSignature
in class Member
public java.lang.String getSuperClass()
public void setSuperClass(java.lang.String superClass)
public int getMajorVersion()
public void setMajorVersion(int majorVersion)
public int getMinorVersion()
public void setMinorVersion(int minorVersion)
public InnerClassInfo[] getInnerClasses()
public void setInnerClasses(InnerClassInfo[] inners)
public java.lang.String getSourceFile()
public void setSourceFile(java.lang.String name)
public boolean isDeprecated()
public void setDeprecated(boolean deprecated)
public java.lang.String[] getInterfaces()
public void setInterfaces(java.lang.String[] interfaces)
public FieldInfo[] getFields()
public void setFields(FieldInfo[] fields)
public MethodInfo[] getMethods()
public void setMethods(MethodInfo[] methods)
public void write(java.io.DataOutput out) throws java.io.IOException, ClassFileFormatException
out
- The stream to write to.java.io.IOException
- An io problem has occured.ClassFileFormatException
- Attempt to write a bad classfile info.public void write(java.lang.String destination) throws java.io.IOException, ClassFileFormatException
destination
- The root directory of the class hierarchy.java.io.IOException
- An io problem occured.ClassFileFormatException
- Attempt to write a bad classfile info.public void write(java.io.File writeDir, java.lang.String writeFile) throws java.io.IOException, ClassFileFormatException
destination
- The root directory of the class hierarchy.java.io.IOException
- An io problem occured.ClassFileFormatException
- Attempt to write a bad classfile info.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |