|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.uni_paderborn.tools.util.ClassDeclaration
The class ClassDeclaration provides information about a String that declares a class. It tries to parse the provided parameter, that has to be a fujaba-like declaration (see below).
Field Summary | |
static java.lang.String |
CLASS_IS_KEYWORD
No comment provided by developer, please add a comment to improve documentation. |
static java.lang.String |
EMPTY_DECLARATION
No comment provided by developer, please add a comment to improve documentation. |
static java.lang.String |
ILLEGAL_CONSTRUCTORS_DECLARATION
No comment provided by developer, please add a comment to improve documentation. |
static java.lang.String |
INVALID_CLASS_DECLARATION
No comment provided by developer, please add a comment to improve documentation. |
static java.lang.String |
NO_CONSTRUCTORS_ALLOWED
No comment provided by developer, please add a comment to improve documentation. |
static java.lang.String |
UNPRECISE_CONSTRUCTORS_DECLARATION
No comment provided by developer, please add a comment to improve documentation. |
static java.lang.String |
VALID_DECLARATION
No comment provided by developer, please add a comment to improve documentation. |
Constructor Summary | |
ClassDeclaration(java.lang.String declaration)
Creates a new object of ClassDeclareation and parses the provided String. |
Method Summary | |
void |
clear()
No comment provided by developer, please add a comment to improve documentation. |
java.lang.String |
getClassError()
Returns the method error, that is an error occured while parsing. |
java.util.HashSet |
getConstructors()
Returns all defined constructors in a HashSet. |
java.lang.String |
getName()
Returns the name of this Declaration. |
java.lang.String |
getPackage()
Get the package attribute of the ClassDeclaration object |
java.lang.String |
getStatus()
Returns information about this declaration. |
boolean |
isAbstract()
Returns true if this Declaration is abstract, false otherwise. |
boolean |
isEmpty()
Returns true if this ClassDeclaration is empty. |
boolean |
isInterface()
Get the interface attribute of the ClassDeclaration object |
boolean |
isPersistent()
Get the persistent attribute of the ClassDeclaration object |
boolean |
isReference()
Get the reference attribute of the ClassDeclaration object |
boolean |
isStatic()
Returns true if this Declaration is static, false otherwise. |
boolean |
isValid()
Returns true, if this declaration is valid, NOT considerung parameters or return type. |
void |
showStatus()
Shows the status provided by getStatus() in a JOptionPane. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String VALID_DECLARATION
public static final java.lang.String EMPTY_DECLARATION
public static final java.lang.String INVALID_CLASS_DECLARATION
public static final java.lang.String CLASS_IS_KEYWORD
public static final java.lang.String ILLEGAL_CONSTRUCTORS_DECLARATION
public static final java.lang.String NO_CONSTRUCTORS_ALLOWED
public static final java.lang.String UNPRECISE_CONSTRUCTORS_DECLARATION
Constructor Detail |
public ClassDeclaration(java.lang.String declaration)
declaration
- The String to be a class declaration.
NullPointerException,
- if declaration
is null.Method Detail |
public java.util.HashSet getConstructors()
String
or
Integer
, each even cell represents the variable-bname to its predecessor
public java.lang.String getName()
public java.lang.String getStatus()
public void showStatus()
public java.lang.String getClassError()
public boolean isAbstract()
public boolean isStatic()
public boolean isInterface()
public boolean isPersistent()
public boolean isReference()
public boolean isEmpty()
public boolean isValid()
public java.lang.String getPackage()
public void clear()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |