Method Summary |
|
public void | addConstructor(ConstructorInfo value) Adds a constructor to the list of constructors that need to be updated.
Parameters: value - The ConstructorInfo to be updated. |
public void | addGeneralization(IClassifier clazz) Issue a command to Describe to add a generalization associated with a
class symbol. |
public void | addImport(String stmt) Get the collection of imports that this class uses. |
public void | addImport(IClassifier classToImport) |
public void | addInnerClass(ClassInfo info) Add an inner class that needs to be updated. |
public void | addInterface(String pName, String name) Add an implemented interface to the class definition. |
public void | addInterface(String fullname) |
public void | addLiteral(LiteralInfo info) Adds a enum literal that needs to be updated. |
public void | addMember(MemberInfo info) Adds a data member that needs to be updated. |
public void | addMethod(MethodInfo info) Adds a method that needs to be updated. |
public void | addSuperInterface(IClassifier val) |
boolean | checkAddAttributeName(String aName) |
public Object | clone() |
public static void | eraseRefClass(IClassifier c) Removes any cached ClassInfo created from the given
IClassifier . |
public static void | eraseRefClasses() Clears all cached ClassInfo s created by getRefClassInfo(). |
public String | getBasePath() |
public IClassifier | getClassElement() Returns the IClassifier from which this ClassInfo was constructed, or
null if the ClassInfo was not constructed from an IClassifier. |
public String | getCode() |
public String | getCodeGenType(boolean fullyQualified, ClassInfo container) |
public Vector | getConstructors() Gets the class's constructors that need to be updated. |
public Vector | getConstructorsCodeGenSorted() |
public FileObject | getExportPackageFileObject() |
public FileObject | getExportPackageFileObject(String subfolder) |
public FileObject | getExportSourceFolderFileObject() |
public String | getExportSourceFolderName() |
public String | getExportSourcePackage() |
public String | getExtendedClass() Retrieve the name of the super class's. |
public String | getExtendedPackage() The package that contains the super class. |
public Vector | getFieldsCodeGenSorted() |
public String | getFilename() Gets the file that that contains the class. |
public String | getFullClassName() forms a full class name including the package name. |
public String[] | getFullyQualifiedCodeGenType() |
public String | getId() |
public ArrayList<String> | getImportedTypes() |
public Vector | getImports() Get the collection of imports that this class uses. |
public Vector | getInnerClasses() Gets the class's inner classes that need to be updated. |
protected Vector | getInterfaceChanges() Retrieves all the changes to the list of implemented interfaces. |
public InterfaceChangeInfo[] | getInterfaces() |
public Boolean | getIsInnerClass() Retrieves if the ClassInfo represents an inner class or a outer class. |
public Vector | getLiterals() Gets the enumeration's literals that need to be updated. |
public ArrayList<ClassInfo> | getMemberTypes() |
public Vector | getMembers() Gets the class's members that need to be updated. |
public Vector | getMethods() Gets the class's methods that need to be updated. |
public Vector | getMethodsCodeGenSorted() |
public String | getModifierText(Integer mods) |
public String | getNewPackage() Gets the package name that contains the class. |
public String | getNewSuperclass() |
public String | getOldSuperclass() |
public ClassInfo | getOuterClass() Retrieves this class's outer class. |
public ClassInfo | getOuterMostOwner() |
public IProject | getOwningProject() |
protected IProject | getOwningProject(IElement el) |
public String | getPackage() Gets the package name that contains the class. |
public IProject | getProject() |
public static ClassInfo | getRefClassInfo(IClassifier c, boolean reuse) Returns a reference ClassInfo, viz. |
public static ClassInfo | getRefClassInfo(IClassifier c, boolean reuse, boolean fullInit) |
public ArrayList<String[]> | getReferredCodeGenTypes() |
public String | getRemovedExtendedClass() Retrieve the name of the super class's that is being removed. |
public String | getRemovedExtendedPackage() Retrieve the name of the super class's that is being removed. |
public String | getRootSourceDirectory() Retrieves the source directory root that Describe expects the package
containing this class to live in. |
public String | getShortClassName() |
public String | getSourceDirectory() Returns the source directory in which Describe thinks this class should
live. |
public IClassifier | getSuperClass() |
public ClassInfo | getSuperClassInfo() |
public ArrayList<ClassInfo> | getSuperInterfaceInfos() |
public ArrayList<IClassifier> | getSuperInterfaces() |
protected String | getSuperclass(IClassifier clazz) |
public static String | getSymbolFilename(IClassifier clazz) Gets the file which which the given class is associated. |
public boolean | isEnumeration() Retrieves if the ClassInfo represents an enumeration or a regular class. |
public static boolean | isExecutingAddin() |
public boolean | isInterface() Retrieves if the ClassInfo represents an interface or a class. |
public boolean | isReferenceClass() |
public boolean | matches(ElementInfo el) Determines if the given ElementInfo matches this ClassInfo.
See Also: ElementInfo.matches(ElementInfo) Parameters: el - ElementInfo The ElementInfo to match against. |
protected String | old2new(String oldS, String newS) |
public void | removeGeneralization(IClassifier clazz) Issue a command to Describe to remove a generalization associated with a
class symbol. |
public void | removeInterface(String pName, String name) Remove an implemented interface to the class definition. |
public void | removeInterface(String fullname) |
public IClassifier | retrieveClassifier() Looks for the IClassifier corresponding to this ClassInfo in the
Describe model. |
public void | setBasePath(String basePath) |
public void | setConstructors(Vector value) Sets the class's constructors that need to be updated. |
public static void | setExecutingAddin(boolean state) |
public void | setExportSourceFolderName(String sourceFolderName) |
public void | setExtendedClass(String pName, String name) Set the class information that is the super class. |
public void | setFilename(String value) Sets the file that that contains the class. |
public void | setFromClassifier(IClassifier classifier) Initializes this ClassInfo using the given Describe IClassifier. |
public void | setId(String id) |
public void | setImports(Vector value) Set the collection of imports that this class uses. |
public void | setInnerClasses(Vector value) Sets the class's inner classes that need to be updated. |
public void | setIsEnumeration(boolean value) Specifies if the ClassInfo represents an enumeration or a class. |
public void | setIsInnerClass(Boolean value) Specifies if the ClassInfo represents an inner class or a outer class. |
public void | setIsInterface(boolean value) Specifies if the ClassInfo represents an interface or a class. |
public void | setLiterals(IEnumeration en) |
public void | setLiterals(Vector value) Sets the enumeration's literals that need to be updated. |
public void | setMembers(Vector value) Sets the class's members that need to be updated. |
public void | setMethods(Vector value) Sets the class's methods that need to be updated. |
public void | setMethodsAndMembers(IClassifier clazz) |
public void | setNewPackage(String value) Sets the package name that contains the class. |
public void | setOuterClass(ClassInfo outC) Set this class's outer class. |
public void | setPackage(String value) Sets the package name that contains the class. |
protected void | setRefInfo(IClassifier clazz) |
public void | setRemovedExtendedClass(String pName, String name) Set the class information that is no longer the super class. |
public void | setSuperClass(IClassifier val) |
protected void | setSuperInterfaces(IClassifier clazz) |
public void | setSuperInterfaces(ArrayList<IClassifier> val) |
protected void | setSuperclass(IClassifier clazz) |
public static void | setSymbolFilename(IClassifier clazz, String filename) Sets the file with which the given class should be associated. |
public String | toString() |
public void | update() Updates the Describe symbol that represents the class. |
public void | update(SymbolTransaction trans) Update Describe using the specified Symbol transaction. |
protected void | updateConstructors(SymbolTransaction trans) Updates all the constructors for this symbol. |
protected void | updateEnumLiterals(SymbolTransaction trans, int changeType) Updates all the data members for this symbol. |
public String | updateFilename(String filename) |
protected void | updateImports(EventManager manager, SymbolTransaction trans) Updates all the imports statements for this symbol. |
protected void | updateInnerClasses(EventManager manager, SymbolTransaction trans) Updates all the inner classes for this symbol. |
protected void | updateInterfaces(EventManager manager, SymbolTransaction trans) Updates the interfacres that this class implements. |
protected void | updateMembers(SymbolTransaction trans, int changeType) Updates all the data members for this symbol. |
protected void | updateMethods(SymbolTransaction trans, int changeType) Updates all the methods for this symbol. |