|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectclassycle.graph.NameAttributes
classycle.NameAndSourceAttributes
classycle.ClassAttributes
public class ClassAttributes
Immutable class holding the attributes of a class vertex. They are
Field Summary | |
---|---|
static java.lang.String |
ABSTRACT_CLASS
Type constant. |
static java.lang.String |
CLASS
Type constant. |
static java.lang.String |
INTERFACE
Type constant. |
static java.lang.String |
UNKNOWN
Type constant. |
Constructor Summary | |
---|---|
ClassAttributes(java.lang.String name,
java.lang.String source,
java.lang.String type,
int size)
Creates an instance based on the specified name, type, and size. |
Method Summary | |
---|---|
static ClassAttributes |
createAbstractClass(java.lang.String name,
java.lang.String source,
int size)
Creates an instance of the type ABSTRACT_CLASS . |
static ClassAttributes |
createClass(java.lang.String name,
java.lang.String source,
int size)
Creates an instance of the type CLASS . |
static ClassAttributes |
createInterface(java.lang.String name,
java.lang.String source,
int size)
Creates an instance of the type INTERFACE . |
static ClassAttributes |
createUnknownClass(java.lang.String name,
int size)
Creates an instance of the type UNKNOWN . |
int |
getSize()
Returns the size of the class file in bytes. |
java.lang.String |
getType()
Returns the class type. |
boolean |
isInnerClass()
Returns true in the case of an inner class. |
java.lang.String |
toString()
Returns the attributes as a string for pretty printing. |
Methods inherited from class classycle.NameAndSourceAttributes |
---|
addSource, addSourcesOf, getSources |
Methods inherited from class classycle.graph.NameAttributes |
---|
compareTo, getName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String INTERFACE
public static final java.lang.String ABSTRACT_CLASS
public static final java.lang.String CLASS
public static final java.lang.String UNKNOWN
Constructor Detail |
---|
public ClassAttributes(java.lang.String name, java.lang.String source, java.lang.String type, int size)
name
- Fully-qualified class name.source
- Optional source of the class file. Can be null
.type
- Type.size
- Size.Method Detail |
---|
public static ClassAttributes createInterface(java.lang.String name, java.lang.String source, int size)
INTERFACE
.
name
- Fully-qualified class name.source
- Optional source of the class file. Can be null
.size
- Size of the class file.
public static ClassAttributes createAbstractClass(java.lang.String name, java.lang.String source, int size)
ABSTRACT_CLASS
.
name
- Fully-qualified class name.source
- Optional source of the class file. Can be null
.size
- Size of the class file.
public static ClassAttributes createClass(java.lang.String name, java.lang.String source, int size)
CLASS
.
name
- Fully-qualified class name.source
- Optional source of the class file. Can be null
.size
- Size of the class file.
public static ClassAttributes createUnknownClass(java.lang.String name, int size)
UNKNOWN
.
name
- Fully-qualified class name.size
- Size of the class file.
public java.lang.String getType()
INTERFACE
, ABSTRACT_CLASS
,
CLASS
, or UNKNOWN
.public boolean isInnerClass()
public int getSize()
getSize
in class NameAttributes
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |