An access to a constant, such as C, C::D, or a class or module declaration.
See DataFlow::getConstant for usage example.
Import path
import rubyDirect supertypes
Predicates
| asConstantAccess | Gets the underlying constant access AST node. |
| asModule | Gets the module defined or re-opened by this constant access, if any. |
| asNamespaceDeclaration | Gets the underlying module declaration, if any. |
| getADescendentModule | Gets a module that transitively subclasses, includes, or prepends the module referred to by this constant. |
| getConstant | Gets a constant reference that may resolve to a member of this node. |
| getName | Gets the simple name of the constant being referenced, such as the |
| isPossiblyGlobal | Holds if this might refer to a top-level constant. |
Inherited predicates
| asCallable | Gets the callable corresponding to this block, lambda expression, or call to | from Node |
| asExpr | Gets the expression corresponding to this node, if any. | from Node |
| asParameter | Gets the parameter corresponding to this node, if any. | from Node |
| backtrack | Gets a node that may flow into this one using one heap and/or interprocedural step. | from LocalSourceNode |
| backtrack | Starts backtracking from this node using API graphs. | from Node |
| flowsTo | Holds if this | from LocalSourceNode |
| getALocalSource | Gets a local source node from which data may flow to this node in zero or more local data-flow steps. | from Node |
| getALocalUse | Gets a node to which data may flow from this node in zero or more local data-flow steps. | from LocalSourceNode |
| getAMethodCall | Gets a method call where this node flows to the receiver. | from LocalSourceNode |
| getAMethodCall | Gets a call to a method named | from LocalSourceNode |
| getAPredecessor | Gets a data flow node from which data may flow to this node in one local step. | from Node |
| getASuccessor | Gets a data flow node to which data may flow from this node in one local step. | from Node |
| getAnAttributeRead | Gets a call | from LocalSourceNode |
| getAnAttributeWriteValue | Gets a value assigned to | from LocalSourceNode |
| getAnElementRead | Gets an access to an element on this node, such as | from LocalSourceNode |
| getAnElementRead | Gets an access to the element | from LocalSourceNode |
| getAnElementWriteValue | Gets a value stored as an element on this node, such as the | from LocalSourceNode |
| getAnElementWriteValue | Gets the | from LocalSourceNode |
| getConstantValue | Gets the constant value of this expression, if any. | from Node |
| getEnclosingMethod | Gets the enclosing method, if any. | from Node |
| getLocation | Gets the location of this node. | from Node |
| hasLocationInfo | Holds if this element is at the specified location. The location spans column | from Node |
| toString | Gets a textual representation of this node. | from Node |
| track | Starts tracking this node forward using API graphs. | from LocalSourceNode |
| track | Gets a node that this node may flow to using one heap and/or interprocedural step. | from LocalSourceNode |