Como usar java, en ingles
GDPro 5.0
Java Reverse Engineering Overview
Overview Java Reverse Engineering supports Java 1.2 as described in The Java Language Specification by James Gosling, Bill Joy and Guy Steele and continues the reverse engineering model used for C++. Java classes and interfaces generate class symbols in the class diagram. Java class membersand methods are added as attributes and operations within class symbols. The GDPro system which is created during reverse engineering contains 100% of the structural information present in the Java source code, except comments and white space. The implementation diagram contains a source file symbol for each Java source file. File dependencies are derived from Java "import" statements (similar toC++ #includes). Java Reverse Engineering builds systems for UML.
Overview - Packages
Java uses a code packaging system which has no equivalent in C++. C++: New name spaces can be created explicitly at any time using the "namespace" construct, and implicit namespace exist for: Method definitions Class definitions The "global" scope of a file and all of the files it #includes Java: Java has noequivalent to C++'s "namespace" construct, but implicit namespaces exist for: Method definitions (equivalent to C++) Class definitions (including interfaces) (equivalent to C++) Files (bound by the start and end of file) Packages (collections of files in a directory) Java Reverse Engineering fully supports Java's implicit namespaces.
Overview - Interfaces
Interfaces in Java provide some of thefeatures of multiple inheritance without the headaches of full MI. A class "extends" only a single superclass, but it can "implement" one or more interfaces. Interfaces themselves can "extend" other interfaces. An interface is not a definition of a class - it's a definition of a set of methods that one or more classes will implement. An important issue of interfaces is that they declare onlymethods and constants. Variables can not be defined in interfaces.
-1©2000 Advanced Software Technologies, Inc.
UML Java Reverse Engineering Tutorial - Windows Platform
GDPro 5.0
The syntax of an interface is a subset of the syntax for a class. During reverse engineering: Each interface declaration generates a class symbol. Interfaces which inherit from other interfaces will be linked totheir super-interface's symbol using a generalization link. A class's implementation of an interface results in a generalization link between the class's symbol and the interface's symbol.
Overview - Exceptions/Access Control Modifier
Exceptions Java exceptions work much like C++ exceptions. A method can declare a list of exceptions it may throw, e.g: public static int c(int i) throwsMyException, MyOtherException {... }; Access Control Java supports the following levels of access control: "package visibility" - the default, with no equivalent in C++. Members are accessible to all objects within the same package. public - equivalent to C++'s public private - equivalent to C++'s private protected - equivalent to C++'s protected Java Reverse Engineering fully supports all levels of Javaaccess control for classes, attributes, and operations. Modifiers These Java modifiers can be used, variously, on class, method, and variable declarations. final The final keyword is a modifier that can be applied to classes, methods, and variables. It has a similar, but not identical meaning in each case. A final class can never be subclassed. A final method can never be overridden. A finalvariable can never have its value set. Modifiers: operation: constant set to true attribute: constant set to true
-2©2000 Advanced Software Technologies, Inc.
UML Java Reverse Engineering Tutorial - Windows Platform
GDPro 5.0
Access Permission is "read-only"
Example: public final void writeDouble(double v) throws IOException {}; native The native keyword is a modifier that can be applied...
Regístrate para leer el documento completo.