public class LifetimeRelation extends Object
| Modifier and Type | Field and Description |
|---|---|
static LifetimeRelation |
EMPTY |
| Constructor and Description |
|---|
LifetimeRelation()
Create a new and empty lifetime relation.
|
LifetimeRelation(LifetimeRelation lifetimeRelation)
Create an independent copy of the given lifetime relation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addParameters(Collection<String> lifetimeParameters)
Add a method's lifetime parameters to this relation.
|
void |
endNamedBlock(String lifetime)
Remove the named block with the given name from this relation.
|
boolean |
outlives(String outerLifetime,
String innerLifetime)
Check whether the first (outer) lifetime outlives the second (inner)
lifetime.
|
void |
replaceWithMerge(LifetimeRelation first,
LifetimeRelation second)
Replace this lifetime relation with the merge result of the given two
relations.
|
void |
startNamedBlock(String lifetime)
Enter a named block to this relation.
|
String |
toString() |
public static final LifetimeRelation EMPTY
public LifetimeRelation()
public LifetimeRelation(LifetimeRelation lifetimeRelation)
lifetimeRelation - public boolean outlives(String outerLifetime, String innerLifetime)
outerLifetime - innerLifetime - public void addParameters(Collection<String> lifetimeParameters)
lifetimeParameters - public void startNamedBlock(String lifetime)
lifetime - public void endNamedBlock(String lifetime)
lifetime - public void replaceWithMerge(LifetimeRelation first, LifetimeRelation second)
first - second - Copyright © 2017. All rights reserved.