public class Binding extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Binding.SharedBindingInfo
Data structure to hold information that can be shared between many bindings.
|
Constructor and Description |
---|
Binding()
Construct an empty Binding.
|
Binding(IASNode node,
Binding other)
Construct a Binding with the given node, but that otherwise has the same
properties as the other binding passed in.
|
Binding(IASNode node,
Name name,
IDefinition def)
Construct a Binding.
|
Modifier and Type | Method and Description |
---|---|
Instruction |
declocal_i()
Fetch this Binding's declocal_i instruction;
the Binding manages a single instruction
so that its register number can be assigned
at function wrap-up time.
|
Instruction |
declocal()
Fetch this Binding's declocal instruction;
the Binding manages a single instruction
so that its register number can be assigned
at function wrap-up time.
|
IDefinition |
getDefinition() |
Instruction |
getlocal()
Fetch this Binding's getlocal instruction;
the Binding manages a single instruction
so that its register number can be assigned
at function wrap-up time.
|
int |
getLocalRegister() |
Name |
getName()
Get the multiname for this binding - used to generate access by name
|
IASNode |
getNode()
Get the AST node that generated this binding, used for error reporting.
|
int |
getSlotId()
Get the Binding's slot id.
|
Instruction |
inclocal_i()
Fetch this Binding's inclocal_i instruction;
the Binding manages a single instruction
so that its register number can be assigned
at function wrap-up time.
|
Instruction |
inclocal()
Fetch this Binding's inclocal instruction;
the Binding manages a single instruction
so that its register number can be assigned
at function wrap-up time.
|
boolean |
isLocal() |
boolean |
isSuperQualified()
Was this Binding explicitly qualified with "super"?
|
Instruction |
kill()
Fetch this Binding's kill instruction;
the Binding manages a single instruction
so that its register number can be assigned
at function wrap-up time.
|
boolean |
localNumberIsSet() |
void |
setIsLocal(boolean is_local)
Flag this Binding as resident in a
local register (or unset the flag).
|
Instruction |
setlocal()
Fetch this Binding's setlocal instruction;
the Binding manages a single instruction
so that its register number can be assigned
at function wrap-up time.
|
void |
setSlotId(int slotId)
Set the Binding's slot id.
|
void |
setSuperQualified(boolean super_qualified)
Indicate that this Binding had a "super" qualifier.
|
boolean |
slotIdIsSet() |
String |
toString() |
public Binding()
public Binding(IASNode node, Name name, IDefinition def)
name
- - the Binding's name.def
- - the Binding's definition, if known.public Name getName()
public IASNode getNode()
public IDefinition getDefinition()
public boolean isLocal()
public void setIsLocal(boolean is_local)
is_local
- - the new value of the
"binding lives in a register" flag.public boolean localNumberIsSet()
public int getLocalRegister()
public Instruction getlocal()
public Instruction setlocal()
public Instruction inclocal()
public Instruction inclocal_i()
public Instruction declocal()
public Instruction declocal_i()
public int getSlotId()
public boolean slotIdIsSet()
public void setSlotId(int slotId)
public Instruction kill()
public void setSuperQualified(boolean super_qualified)
super_qualified
- - set true if the name that generated
this Binding had an explicit "super" qualifier.public boolean isSuperQualified()
Copyright © 2016 The Apache Software Foundation. All rights reserved.