| Modifier and Type | Field and Description |
|---|---|
| public NName | |
| pack-priv static final long | |
| public NNode |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public NName | |
| public String | |
| public NNode | |
| private NBinding | makeProvisionalBinding(NType targetType)
If we can't find the attribute in the target type, create a temp binding for the attribute. |
| public NType | resolve(Scope s)
Overrides org. Node should set the resolved type in its |
| private void | |
| public void | |
| public void | |
| public void | |
| public String | |
| public void | visit(NNodeVisitor
the object to call with this node.
If the visitor returns v)true, the node also
passes its children to the visitor.Implements abstract org. Visits this node and optionally its children. |
| attr | back to summary |
|---|---|
| public NName attr | |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID | |
| target | back to summary |
|---|---|
| public NNode target | |
| NAttribute | back to summary |
|---|---|
| public NAttribute(NNode target, NName attr) | |
| NAttribute | back to summary |
|---|---|
| public NAttribute(NNode target, NName attr, int start, int end) | |
| getAttr | back to summary |
|---|---|
| public NName getAttr() | |
| getAttributeName | back to summary |
|---|---|
| public String getAttributeName() | |
| getTarget | back to summary |
|---|---|
| public NNode getTarget() | |
| makeProvisionalBinding | back to summary |
|---|---|
| private NBinding makeProvisionalBinding(NType targetType) If we can't find the attribute in the target type, create a temp binding for the attribute. If later on the target type defines the attribute, that definition replaces the temp binding, and any references to the temp binding are updated to refer to the new definition. We never create temp bindings for attributes of native types, as the attributes of native types are expected to be fully resolved. This strategy is a temporary solution for inferring the types of attributes on targets that are not yet resolved. This whole approach needs to be replaced by dataflow analysis. | |
| resolve | back to summary |
|---|---|
| public NType resolve(Scope s) throws Exception Overrides org. Doc from org. Node should set the resolved type in its
| |
| resolveAttributeOnType | back to summary |
|---|---|
| private void resolveAttributeOnType(NType targetType) | |
| setAttr | back to summary |
|---|---|
| public void setAttr(NName attr) Sets the attribute node. Used when constructing the AST.
| |
| setAttr | back to summary |
|---|---|
| public void setAttr(Scope s, NType v) throws Exception Assign some definite value to the attribute. Used during the name
resolution pass. This method is called when this node is in the lvalue of
an assignment, in which case it is called in lieu of
| |
| setTarget | back to summary |
|---|---|
| public void setTarget(NNode target) Sets the target node. Used when constructing the AST.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| visit | back to summary |
|---|---|
| public void visit(NNodeVisitor v) Implements abstract org. Doc from org. Visits this node and optionally its children.
| |