public class ProxySortUnit extends SortUnit
GraphBuilder
to properly construct a graph which can accurately
represent cycles. A ProxySortUnit must be closed by calling setDelegate(SortUnit)
before
being put into use, otherwise calls to any methods will result in NullPointerException
.Modifier and Type | Method and Description |
---|---|
int |
compareTo(SortUnit o) |
Set<SortUnit> |
getDependencies()
Returns a list of SortUnits which are depended on by this SortUnit.
|
int |
getDepth()
Returns the outward graph depth of this SortUnit to the outermost leaf or cycle.
|
List<Object> |
getItems()
Returns the list of arbitrary items associated with this sort unit.
|
MetaClass |
getType()
Returns the type which this sort unit represents.
|
static ProxySortUnit |
proxyOf(MetaClass type)
Creates a new proxied SortUnit on the specified type.
|
void |
setDelegate(SortUnit unit)
Sets the instance of
SortUnit which should be proxied on. |
String |
toString() |
create, equals, hasDependency, hashCode, isCyclicGraph
public static ProxySortUnit proxyOf(MetaClass type)
type
- the sort unitpublic Set<SortUnit> getDependencies()
SortUnit
getDependencies
in class SortUnit
public List<Object> getItems()
SortUnit
Typically items are units of work used by the container to orchestrate the generation of code in the correct order.
public MetaClass getType()
SortUnit
public int getDepth()
SortUnit
public int compareTo(SortUnit o)
compareTo
in interface Comparable<SortUnit>
compareTo
in class SortUnit
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.