public class RefTermManager extends Object
Modifier and Type | Field and Description |
---|---|
static String |
JREF_TERM_FUNCTOR_NAME |
Constructor and Description |
---|
RefTermManager() |
RefTermManager(ReferenceQueue<?> referenceQueue) |
Modifier and Type | Method and Description |
---|---|
void |
forgetRef(Object ref)
The given reference will not be associated anymore to a term.
|
void |
forgetRefTerm(Compound term)
The given term will not be associated anymore to a reference.
|
MutableIndexManager |
getIndexManager() |
Compound |
newRefTerm(Object ref)
Maps an object to a generated and unique term representation.
|
Compound |
newRefTerm(Object ref,
Compound compound)
Maps an object to a given term representation.
|
Compound |
newSoftRefTerm(Object ref)
Maps an object to a generated and unique term representation.
|
Compound |
newSoftRefTerm(Object ref,
Compound compound)
Maps an object to a given term representation.
|
Compound |
newWeakRefTerm(Object ref)
Maps an object to a generated and unique term representation.
|
Compound |
newWeakRefTerm(Object ref,
Compound compound)
Maps an object to a given term representation.
|
Compound |
refTerm(Object ref) |
Compound |
refTermOrThrow(Object ref) |
<T> T |
resolve(Compound compound) |
<T> T |
resolveOrThrow(Compound compound) |
static Compound |
softJRefTerm(Object ref) |
static Compound |
weakJRefTerm(Object ref) |
public static final String JREF_TERM_FUNCTOR_NAME
public RefTermManager()
public RefTermManager(ReferenceQueue<?> referenceQueue)
public static Compound weakJRefTerm(Object ref)
ref
- an object to map to a term.public static Compound softJRefTerm(Object ref)
ref
- an object to map to a term.public MutableIndexManager getIndexManager()
public Compound newSoftRefTerm(Object ref, Compound compound)
ref
- the object to identify as the term sent as second argument.compound
- the term representation of the object sent as first argument.public Compound newSoftRefTerm(Object ref)
ref
- the object to identify as a term reference.public Compound newWeakRefTerm(Object ref, Compound compound)
ref
- the object to identify as the term sent as second argument.compound
- the term representation of the object sent as first argument.public Compound newWeakRefTerm(Object ref)
ref
- the object to identify as a term reference.public Compound newRefTerm(Object ref, Compound compound)
ref
- the object to identify as the term sent as second argument.compound
- the term representation of the object sent as first argument.public Compound newRefTerm(Object ref)
ref
- the object to identify as a term reference.public void forgetRefTerm(Compound term)
term
- the term representation of a reference to forget.public void forgetRef(Object ref)
ref
- the reference to forget.public Compound refTerm(Object ref)
ref
- an object reference.public Compound refTermOrThrow(Object ref)
ref
- an object reference.JpcException
- if the reference is not associated with a term representation.public <T> T resolve(Compound compound)
compound
- a (compound) term.public <T> T resolveOrThrow(Compound compound)
compound
- a (compound) term.JpcException
- if no reference is associated with such a term.Copyright © 2014. All rights reserved.