public abstract class LocalCreation extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Collection<Local> |
localChain |
protected String |
prefix |
| Constructor and Description |
|---|
LocalCreation(Collection<Local> locals,
String prefix) |
| Modifier and Type | Method and Description |
|---|---|
abstract Local |
newLocal(String prefix,
Type type)
returns a new local with the given prefix and the given type.
the returned local will automatically added to the locals-chain. |
abstract Local |
newLocal(Type type)
returns a new local with the prefix given to the constructor (or the default-prefix if none has been given) and the
given type.
The returned local will automatically added to the locals-chain. The local will be of the form: prefixX (where the last X is a number, so the local name is unique). |
protected final Collection<Local> localChain
protected final String prefix
public LocalCreation(Collection<Local> locals, String prefix)
public abstract Local newLocal(Type type)
type - the Type of the new local.public abstract Local newLocal(String prefix, Type type)
prefix - the prefix for the now local.type - the Type of the now local.Copyright © 2024 Soot OSS. All rights reserved.