public final class ObjectLabel extends Object implements Comparable<ObjectLabel>
| Modifier and Type | Class and Description |
|---|---|
static class |
ObjectLabel.Kind
Object kinds.
|
| Modifier and Type | Field and Description |
|---|---|
static SourceLocation |
initial_source
Source location used for host functions.
|
| Constructor and Description |
|---|
ObjectLabel(AbstractNode n,
ObjectLabel.Kind kind)
Constructs a new object label for a user defined non-function object.
|
ObjectLabel(Function f)
Constructs a new object label for a user defined function object.
|
ObjectLabel(HostObject hostobject,
ObjectLabel.Kind kind)
Constructs a new object label for a host object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ObjectLabel objlabel)
Compares this and the given object label.
|
String |
describe()
Produces a human readable description of this object label.
|
boolean |
equals(Object obj)
Checks whether the given object label is equal to this one.
|
Function |
getFunction()
Returns the function of this function object label.
|
HostObject |
getHostObject()
Returns the descriptor for this object label.
|
ObjectLabel.Kind |
getKind()
Returns the object label kind.
|
AbstractNode |
getNode()
Returns the node of this non-function object label.
|
SourceLocation |
getSourceLocation()
Returns the source location.
|
int |
hashCode()
Returns the hash code for this object label.
|
boolean |
isHostObject()
Returns true if this object label represents a host object.
|
boolean |
isSingleton()
Returns true if this object label definitely represents a single concrete object.
|
ObjectLabel |
makeSingleton()
Returns the singleton object label associated with this object label, or this object if that is singleton.
|
ObjectLabel |
makeSummary()
Returns the summary object label associated with this singleton object label.
|
String |
toString()
Produces a string representation of this object label.
|
public static final SourceLocation initial_source
public ObjectLabel(AbstractNode n, ObjectLabel.Kind kind)
Options.isRecencyDisabled() is disabled, the object label
represents a single concrete object (otherwise, it may represent any
number of concrete objects).public ObjectLabel(Function f)
Options.isRecencyDisabled() is disabled, the object label
represents a single concrete object (otherwise, it may represent any
number of concrete objects).public ObjectLabel(HostObject hostobject, ObjectLabel.Kind kind)
Options.isRecencyDisabled() is disabled, the object label
represents a single concrete object (otherwise, it may represent any
number of concrete objects).public int compareTo(ObjectLabel objlabel)
compareTo in interface Comparable<ObjectLabel>public String describe()
public boolean equals(Object obj)
public Function getFunction()
public HostObject getHostObject()
public ObjectLabel.Kind getKind()
public AbstractNode getNode()
public SourceLocation getSourceLocation()
public int hashCode()
public boolean isHostObject()
public boolean isSingleton()
public ObjectLabel makeSingleton()
public ObjectLabel makeSummary()
Copyright © 2012 Aarhus University