NBinding collects information about a fully qualified name (qname) in the code graph.
Each qname has an associated NType. When a particular qname is assigned values of
different types at different locations, its type is represented as a NUnionType.
Each qname has a set of one or more definitions, and a set of zero or more references. Definitions and references correspond to code locations.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | NBinding.
In addition to its type, each binding has a |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| private List | |
| private static final int | |
| pack-priv NBinding. | |
| pack-priv int | |
| private String | |
| private static final int | |
| private String | |
| private static final int | |
| private static final int | |
| private Set | |
| private static final int | |
| private static final int | |
| private NType |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public int | compareTo(Object
the object to be compared. o)Implements java. Bindings can be sorted by their location for outlining purposes. |
| public NType | |
| public List | |
| public String | Returns: the filename associated with the type (if present) or the first definition (if present), otherwise a string describing what is known about the binding's source.Returns a filename associated with this binding, for debug messages. |
| public NBinding. | |
| public String | |
| public int | |
| public int | |
| public String | |
| public Set | |
| public Def | getSignatureNode()
Returns the first definition, which by convention is treated as the one that introduced the binding. |
| public NType | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public String |
| BUILTIN | back to summary |
|---|---|
| private static final int BUILTIN | |
| DEF_SET_INITIAL_CAPACITY | back to summary |
|---|---|
| private static final int DEF_SET_INITIAL_CAPACITY | |
| defs | back to summary |
|---|---|
| private List<Def> defs | |
| DEPRECATED | back to summary |
|---|---|
| private static final int DEPRECATED | |
| kind | back to summary |
|---|---|
| pack-priv NBinding. | |
| modifiers | back to summary |
|---|---|
| pack-priv int modifiers | |
| name | back to summary |
|---|---|
| private String name | |
| PROVISIONAL | back to summary |
|---|---|
| private static final int PROVISIONAL | |
| qname | back to summary |
|---|---|
| private String qname | |
| READONLY | back to summary |
|---|---|
| private static final int READONLY | |
| REF_SET_INITIAL_CAPACITY | back to summary |
|---|---|
| private static final int REF_SET_INITIAL_CAPACITY | |
| refs | back to summary |
|---|---|
| private Set<Ref> refs | |
| STATIC | back to summary |
|---|---|
| private static final int STATIC | |
| SYNTHETIC | back to summary |
|---|---|
| private static final int SYNTHETIC | |
| type | back to summary |
|---|---|
| private NType type | |
| NBinding | back to summary |
|---|---|
| public NBinding(String id, NNode node, NType type, NBinding. | |
| NBinding | back to summary |
|---|---|
| public NBinding(String id, Def def, NType type, NBinding. | |
| addDef | back to summary |
|---|---|
| public void addDef(NNode node) Adds | |
| addDef | back to summary |
|---|---|
| public void addDef(Def def) Adds | |
| addDefs | back to summary |
|---|---|
| public void addDefs(Collection<NNode> nodes) | |
| addRef | back to summary |
|---|---|
| public void addRef(NNode node) | |
| addRef | back to summary |
|---|---|
| public void addRef(Ref ref) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(Object o) Implements java. Bindings can be sorted by their location for outlining purposes.
| |
| followType | back to summary |
|---|---|
| public NType followType() Returns the type, first calling | |
| getDefs | back to summary |
|---|---|
| public List Return the (possibly empty) set of definitions for this binding. | |
| getFirstFile | back to summary |
|---|---|
| public String getFirstFile() Returns a filename associated with this binding, for debug messages.
| |
| getKind | back to summary |
|---|---|
| public NBinding. | |
| getName | back to summary |
|---|---|
| public String getName() Returns the unqualified name. | |
| getNumDefs | back to summary |
|---|---|
| public int getNumDefs() Returns the number of definitions found for this binding. | |
| getNumRefs | back to summary |
|---|---|
| public int getNumRefs() | |
| getQname | back to summary |
|---|---|
| public String getQname() Returns the qualified name. | |
| getRefs | back to summary |
|---|---|
| public Set Returns the set of references to this binding. | |
| getSignatureNode | back to summary |
|---|---|
| public Def getSignatureNode() Returns the first definition, which by convention is treated as the one that introduced the binding. | |
| getType | back to summary |
|---|---|
| public NType getType() | |
| hasRefs | back to summary |
|---|---|
| public boolean hasRefs() | |
| isBuiltin | back to summary |
|---|---|
| public boolean isBuiltin() | |
| isDeprecated | back to summary |
|---|---|
| public boolean isDeprecated() | |
| isProvisional | back to summary |
|---|---|
| public boolean isProvisional() | |
| isReadOnly | back to summary |
|---|---|
| public boolean isReadOnly() | |
| isStatic | back to summary |
|---|---|
| public boolean isStatic() | |
| isSynthetic | back to summary |
|---|---|
| public boolean isSynthetic() | |
| markBuiltin | back to summary |
|---|---|
| public void markBuiltin() | |
| markDeprecated | back to summary |
|---|---|
| public void markDeprecated() | |
| markReadOnly | back to summary |
|---|---|
| public void markReadOnly() | |
| markStatic | back to summary |
|---|---|
| public void markStatic() | |
| markSynthetic | back to summary |
|---|---|
| public void markSynthetic() | |
| removeRef | back to summary |
|---|---|
| public void removeRef(Ref node) | |
| setKind | back to summary |
|---|---|
| public void setKind(NBinding. | |
| setName | back to summary |
|---|---|
| public void setName(String name) Sets the binding's simple (unqualified) name. | |
| setProvisional | back to summary |
|---|---|
| public void setProvisional(boolean isProvisional) | |
| setQname | back to summary |
|---|---|
| public void setQname(String qname) Sets the binding's qualified name. This should in general be the
same as | |
| setType | back to summary |
|---|---|
| public void setType(NType type) | |
| 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- | |
Kind enumeration that
attempts to represent the structural role the name plays in the code.
This is a rough categorization that takes into account type information,
structural (AST) information, and possibly other semantics. It can help
IDEs with presentation decisions, and can be useful to expose to users as
a parameter for filtering queries on the graph.
| Modifier and Type | Field and Description |
|---|---|
| public static final NBinding. | |
| public static final NBinding. | |
| public static final NBinding. | |
| public static final NBinding. | |
| public static final NBinding. | |
| public static final NBinding. | |
| public static final NBinding. | |
| public static final NBinding. | |
| public static final NBinding. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static NBinding. | |
| public static NBinding. |
| ATTRIBUTE | back to summary |
|---|---|
| public static final NBinding. | |
| CLASS | back to summary |
|---|---|
| public static final NBinding. | |
| CONSTRUCTOR | back to summary |
|---|---|
| public static final NBinding. | |
| FUNCTION | back to summary |
|---|---|
| public static final NBinding. | |
| METHOD | back to summary |
|---|---|
| public static final NBinding. | |
| MODULE | back to summary |
|---|---|
| public static final NBinding. | |
| PARAMETER | back to summary |
|---|---|
| public static final NBinding. | |
| SCOPE | back to summary |
|---|---|
| public static final NBinding. | |
| VARIABLE | back to summary |
|---|---|
| public static final NBinding. | |
| Kind | back to summary |
|---|---|
| private Kind() | |
| valueOf | back to summary |
|---|---|
| public static NBinding. | |
| values | back to summary |
|---|---|
| public static NBinding. | |