This module provides a class to build the Jirk++ representation of a Java class.
This section allows you to access the Java source file of the module.
Here are listed the classes provided by the module. To use one of them, you have to specify the namespace of the module.
Represents a Java class and its Jirk++ representation.
public JirkClass(String agName) throws Exception
Builds an object representing a Java class from its name.
public JirkClass(Class agClass)
Builds an object representing a Java class from its reference.
public JirkClass(JirkClass agClass)
Builds and copies an object.
public int compareTo(Object agObject)
Compares the class to another one according to the lexicographical order of their name.
public void build(TreeSet agDependencyS,TreeSet agIncludeS,TreeSet agToGenerateS,TreeSet agAlreadyGeneratedS)
Builds the whole structure of the class.
public Vector attributes()
Returns the public attributes of the class.
public Vector classes()
Returns the public inner classes of the class.
public Vector constructors()
Returns the public constructors of the class.
public TreeSet dependencies()
Returns the classes the class depends on.
public TreeSet includes()
Returns the classes to include in the Jirk++ definition of the class.
public boolean isArray()
Indicates if the class represents an array.
public boolean isInner()
Indicates if the class is an inner class.
public boolean isPrimitive()
Indicates if the class represents a primitive type.
public boolean isPublic()
Indicates if the class is public.
public String javaName()
Returns the Java name of the class.
public Vector methods()
Returns the public methods of the class.
public Vector supers()
Returns the superclasses of the class.
public int dimension()
If the class represents an array, returns the number of dimensions of the array.
public JirkClass baseType()
If the class represents an array, returns the base type of the array, else it returns the class itself.
public String signature()
Returns the JNI signature of the class.
public String name()
Returns a descriptive name of the type the class represents. Used to call methods in Jirk++.
public String shortName()
Returns the Jirk++ short name of the class.
public String fullName()
Returns the Jirk++ full name of the class.
public String folder()
Returns the folder where the files containing the Jirk++ representation of the class are located.
public String shortFile()
Returns the short name (without the extension) of the files in which the Jirk++ representation of the class is stored.
public String file()
Returns the full name (without the extension) of the files in which the Jirk++ representation of the class is stored.
public void writeDeclaration(OutputTextStream agStream,String agSpace)
Writes the Jirk++ declaration of the class into a stream.
public void writeDefinition(OutputTextStream agStream,String agSpace)
Writes the Jirk++ definition of the class into a stream.
public static void generateHierarchy(String agPath,TreeSet agToGenerateS,OutputTextStream agStream,boolean agDisplayed) throws Exception
Generates the Jirk++ hierarchy representing a given list of Java classes and the classes they depend on. If the Jirk++ representation of a Java class already exists, nothing is done. Only the missing classes are added to the Jirk++ hierarchy.