| java.lang.Object de.gulden.util.javasource.SourceObject
All known Subclasses: de.gulden.util.javasource.Package, de.gulden.util.javasource.Import, de.gulden.util.javasource.SourceObjectDeclared, de.gulden.util.javasource.Implementation,
SourceObject | abstract public class SourceObject implements Named,Serializable,ParserTreeConstants(Code) | | This is the common super-class of all classes in this package which represent Java source code element declarations.
author: Jens Gulden version: 1.0 |
equals | public boolean equals(Object o)(Code) | | Tests if two source objects represent the same source code element.
The test is performed based on the fully referenced signature strings.
Executing this is quite expensive, so consider testing for reference identity (a==b) where possible.
true if equal. |
getPackage | public Package getPackage()(Code) | | Returns the package of which this is a member.
|
getSignature | public String getSignature()(Code) | | Returns the full signature of this SourceObject. This is the fully
qualified name and, depending on the type of the SourceObject,
the (return-)type, and the parameters' signatures
|
getUnqualifiedName | public String getUnqualifiedName()(Code) | | Gets the unqualified name of this, that means the name without any leading package information.
|
getXMLName | protected String getXMLName()(Code) | | Returns the name of the XML tag representing this SourceObject.
|
initFromAST | void initFromAST(Node rootnode)(Code) | | Initialize this object with values from parsed Java code.
Parameters: rootnode - The corresponding node in the abstract syntax tree (AST). |
initFromXML | public void initFromXML(Element element) throws IOException(Code) | | Initialize this object from XML.
Parameters: element - The corresponding XML tag. throws: IOException - if an i/o error occurs |
stringsIntoVector | static void stringsIntoVector(Object[] s, Vector v)(Code) | | Tool method for converting an array to a Vector.
|
unqualify | static String unqualify(String n)(Code) | | Returns the unqualified name part of the string.
Parameters: n - The qualified name. The name's part after the last occurrence of '.', or the unchanged name if no '.' is contained. |
unqualify | static String unqualify(String n, int withParents)(Code) | | Returns a less qualified name part of the string, including withParents parents, too.
Parameters: n - The qualified name. The name's part after the withParent's-last occurrence of '.', or the unchanged name if no '.' is contained. |
|
|