|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.classfile.Member
at.dms.classfile.ClassInfo
public class ClassInfo
VMS 4.1 : Class File. This is the place where all information about the class defined by this class file resides.
Field Summary |
---|
Constructor Summary | |
---|---|
ClassInfo(DataInput in,
boolean interfaceOnly)
Constructs a class info structure from a class file stream. |
|
ClassInfo(short modifiers,
String thisClass,
String superClass,
ClassConstant[] interfaces,
FieldInfo[] fields,
MethodInfo[] methods,
InnerClassInfo[] innerClasses,
String sourceFile,
boolean deprecated)
Constructs a class info structure. |
|
ClassInfo(short modifiers,
String thisClass,
String superClass,
Vector interfaces,
Vector fields,
Vector methods,
InnerClassInfo[] innerClasses,
String sourceFile,
boolean deprecated)
Constructs a 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 |
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 |
String |
getName()
Returns the name of the this class (fully qualified) |
String |
getSignature()
Returns the type of the this field |
String |
getSourceFile()
Returns the source file of the class in the file |
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(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 |
setMinor(int minorVersion)
Sets the version of the class in the file |
void |
setName(String name)
Sets the name of the this field (fully qualified) |
void |
setSourceFile(String name)
Returns the source file of the class in the file |
void |
setSuperClass(String superClass)
Sets the super class of the class in the file |
void |
write(DataOutput out)
Writes the content of the class to the specified output stream |
void |
write(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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassInfo(short modifiers, String thisClass, String superClass, ClassConstant[] interfaces, FieldInfo[] fields, MethodInfo[] methods, InnerClassInfo[] innerClasses, String sourceFile, boolean deprecated)
modifiers
- access permission to and properties of this classthisClass
- the class or interface defined by this class filesuperClass
- the superclass of this classinterfaces
- the interfaces implemented by this classfields
- the fields which are members of this classmethods
- the methods which are members of this classinnerClasses
- the inner classes which are members of this classsourceFile
- the name of the source filedeprecated
- is this class deprecated ?public ClassInfo(short modifiers, String thisClass, String superClass, Vector interfaces, Vector fields, Vector methods, InnerClassInfo[] innerClasses, String sourceFile, boolean deprecated)
modifiers
- access permission to and properties of this classthisClass
- the class or interface defined by this class filesuperClass
- the superclass of this classinterfaces
- the interfaces implemented by this classfields
- the fields which are members of this classmethods
- the methods which are members of this classinnerClasses
- the inner classes which are members of this classsourceFile
- the name of the source filedeprecated
- is this class deprecated ?public ClassInfo(DataInput in, boolean interfaceOnly) throws IOException, ClassFileFormatException
in
- the stream to read the class frominterfaceOnly
- load only the interface, not the source code
IOException
- an io problem has occured
ClassFileFormatException
- attempt to read a bad classfileMethod Detail |
---|
public String getName()
getName
in class Member
public void setName(String name)
public String getSignature()
getSignature
in class Member
public String getSuperClass()
public void setSuperClass(String superClass)
public int getMajorVersion()
public void setMajorVersion(int majorVersion)
public int getMinorVersion()
public void setMinor(int minorVersion)
public InnerClassInfo[] getInnerClasses()
public void setInnerClasses(InnerClassInfo[] inners)
public String getSourceFile()
public void setSourceFile(String name)
public boolean isDeprecated()
public void setDeprecated(boolean deprecated)
public String[] getInterfaces()
public void setInterfaces(String[] interfaces)
public FieldInfo[] getFields()
public void setFields(FieldInfo[] fields)
public MethodInfo[] getMethods()
public void setMethods(MethodInfo[] methods)
public void write(DataOutput out) throws IOException, ClassFileFormatException
out
- the stream to write to
IOException
- an io problem has occured
ClassFileFormatException
- attempt to write a bad classfile infopublic void write(String destination) throws IOException, ClassFileFormatException
destination
- the root directory of the class hierarchy
IOException
- an io problem occured
ClassFileFormatException
- attempt to write a bad classfile info
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |