xjavadoc
public interface XClass extends XType
UNKNOWN: 7. mars 2003
Method Summary | |
---|---|
List | getAllSubclasses()
Returns the (known) subclasses, regardless of how deep in the class
hierarchy. |
XConstructor | getConstructor(String constructorNameWithSignature)
Gets the constructor with the given signature.
|
List | getConstructors() |
XClass | getContainingClass()
Returns the containing class, if this is an inner class.
|
XPackage | getContainingPackage()
Returns the package this class lives in.
|
List | getDirectSubclasses()
Returns the (known) direct subclasses. |
List | getExtendingInterfaces()
Return the (known) interfaces that extend this interface. |
XField | getField(String name) |
List | getFields() |
List | getFields(boolean superclasses) |
List | getImplementingClasses()
Return the (known) classes that implement this interface. |
List | getImportedClasses()
Returns the imported classes.
|
List | getImportedPackages() |
List | getInnerClasses()
Returns the inner classes.
|
List | getInterfaces()
Returns all the interfaces implemented by this class. |
XMethod | getMethod(String methodNameWithSignature, boolean superclasses)
Returns an XMethod with the given name and parameters. |
XMethod | getMethod(String methodNameWithSignature) |
List | getMethods(boolean superclasses)
Returns all the methods.
|
List | getMethods(Predicate predicate, boolean superclasses)
Returns all the methods that are accepted by the filter.
|
List | getMethods()
Returns all the methods, not including superclasses
|
List | getMethodTags(String tagName, boolean superclasses)
Returns a collection of tags from the methods in this class (or
superclasses).
|
String | getQualifiedName()
Gets the qualified class name.
|
XClass | getSuperclass()
Return superclass of this class. |
String | getTransformedName()
Gets the transformed class name, for example: Character$Subset
|
String | getTransformedQualifiedName()
Gets the transformed qualified class name, for example: java.lang.Character$Subset
|
String | getType()
Gets the type, e.g. |
boolean | isA(String full_qualified_type_name)
Returns true if we are subclass or implement the class/interface with the
name classOrInterfaceName
|
boolean | isA(String full_qualified_type_name, boolean superclases)
Returns true if we are subclass or implement the class/interface with the
name classOrInterfaceName
|
boolean | isAbstract() |
boolean | isAnonymous()
Returns true if this class is anonymous.
|
boolean | isImplementingInterface(String full_qualified_type_name)
Returns true if it implements full_qualified_type_name (or recursively
superclasses implement).
|
boolean | isImplementingInterface(String full_qualified_type_name, boolean superclasses)
Returns true if it implements full_qualified_type_name (or recursively
superclasses implement, if superclasses==true).
|
boolean | isInner()
Returns true if this is an inner class.
|
boolean | isInterface() |
boolean | isPrimitive()
Returns true if this class is a primitive. |
boolean | isSubclassOf(String full_qualified_type_name)
Returns true if the superclass (or recursively superclass of superclass) is
full_qualified_type_name.
|
boolean | isSubclassOf(String full_qualified_type_name, boolean superclasses)
Returns true if the superclass (or recursively superclass of superclass, if
superclasses==true) is full_qualified_type_name.
|
boolean | isWriteable()
Returns true if this instance can be saved.
|
long | lastModified() |
XClass | qualify(String unqualifiedClassName) |
String | save(File rootDir) |
boolean | saveNeeded()
whether class needs saving
|
void | setDirty()
mark this class dirty for saving |
Returns: the (known) subclasses
Parameters: constructorNameWithSignature the signature of the constructor, e.g.
Foo(int,java.lang.String)>/code>.
Returns: the constructor.
Returns: the containing class.
Returns: the package this class lives in.
Returns: the (known) subclasses
Returns: the (known) extending interfaces
Returns: the (known) subinterfaces
Returns: a Collection of XClass.
Returns: a Collection of XClass.
Returns: a Collection of XClass.
Parameters: methodNameWithSignature Describe what the parameter does superclasses Looks in superclasses too if true
Returns: The XMethod if found, otherwise null
Parameters: methodNameWithSignature
Returns: The XMethod if found, otherwise null
Parameters: superclasses if true, include methods from superclasses and interfaces too.
Returns: A collection of XMethod objects
Parameters: superclasses if true, include methods from superclasses too. predicate
Returns: A collection of XMethod objects
Returns: A collection of XMethod objects
Parameters: superclasses tagName
Returns: a List of XTag. If no tags are found, an empty List is returned.
Returns: the qualified class name.
Returns: superclass of this class
Character$Subset
Returns: the transformed class name.
java.lang.Character$Subset
Returns: the transformed qualified class name.
java.lang.String.class
or java.lang.Integer.TYPE
.
Returns: the qualified class name.
Parameters: full_qualified_type_name The full qualified type name
Returns: true if of the specified type; false otherwise
Parameters: full_qualified_type_name The full qualified type name superclases whether the isA search should search the whole hierarchy
Returns: true if of the specified type; false otherwise
Returns: true if this class is anonymous.
Parameters: full_qualified_type_name Describe what the parameter does
Returns: Describe the return value
Parameters: full_qualified_type_name Describe what the parameter does superclasses Looks in superclasses too if true
Returns: Describe the return value
Returns: true if this is an inner class.
Returns: true if a primitive
Parameters: full_qualified_type_name Describe what the parameter does
Returns: Describe the return value
Parameters: full_qualified_type_name Describe what the parameter does superclasses Looks in superclasses too if true
Returns: Describe the return value
Returns: The Writeable value
Returns: the time that this class was last modified
Returns: true if save needed