| Modifier and Type | Field and Description |
|---|---|
| public NBody | |
| private String | |
| private String | |
| public String | |
| pack-priv static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public List | Returns: any exported name nodes found, or an empty list if none foundIf the module defines an |
| public List | Returns: the list of exported names. Returnsnull if __all__ is
missing, or if its initializer is not a simple list of strings.
We don't generate a warning, since complex expressions such as
__all__ = [name for name in dir() if name[0] == "e"]
are valid provided the expr result is a string list.Attempt to determine the actual value of the "__all__" variable in the target module. |
| public String | |
| public String | |
| public NType | resolve(Scope s)
Overrides org. Node should set the resolved type in its |
| private void | resolveExportedNames()
If the module defines an |
| public void | |
| public void | |
| public void | setFileAndMD5(String
file path path, String md5 message digest for source contents md5)Used when module is parsed from an in-memory string. |
| public String | |
| 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. |
| body | back to summary |
|---|---|
| public NBody body | |
| file | back to summary |
|---|---|
| private String file | |
| md5 | back to summary |
|---|---|
| private String md5 | |
| name | back to summary |
|---|---|
| public String name | |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID | |
| NModule | back to summary |
|---|---|
| public NModule() | |
| NModule | back to summary |
|---|---|
| public NModule(String name) | |
| NModule | back to summary |
|---|---|
| public NModule(NBlock body, int start, int end) | |
| getExportedNameNodes | back to summary |
|---|---|
| public List If the module defines an | |
| getExportedNames | back to summary |
|---|---|
| public List Attempt to determine the actual value of the "__all__" variable in the target module. If we can parse it, return the list of exported names.
| |
| getFile | back to summary |
|---|---|
| public String getFile() Overrides org.
| |
| getMD5 | back to summary |
|---|---|
| public String getMD5() | |
| resolve | back to summary |
|---|---|
| public NType resolve(Scope s) throws Exception Overrides org. Doc from org. Node should set the resolved type in its
| |
| resolveExportedNames | back to summary |
|---|---|
| private void resolveExportedNames() throws Exception If the module defines an | |
| setFile | back to summary |
|---|---|
| public void setFile(String file) throws Exception | |
| setFile | back to summary |
|---|---|
| public void setFile(File path) throws Exception | |
| setFileAndMD5 | back to summary |
|---|---|
| public void setFileAndMD5(String path, String md5) throws Exception Used when module is parsed from an in-memory string. | |
| toLongString | back to summary |
|---|---|
| public String toLongString() | |
| 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.
| |