Class DataFlow::ModuleNode
A representation of a run-time module or class.
This is equivalent to the type Ast::Module but provides data-flow specific methods.
Import path
import rubyKnown direct subtypes
Predicates
| getADeclaration | Gets a declaration of this module, if any. |
| getADescendent | Gets a module that transitively subclasses, includes, or prepends this module. |
| getAModuleLevelCall | Gets a call to method |
| getAPrependedModule | Gets a |
| getASubClass | Gets an immediate sub class of this module, if any. |
| getAnAncestor | Gets a module that is transitively subclassed, included, or prepended by this module. |
| getAnAncestorExpr | Gets the expression node denoting the super class or an included or prepended module. |
| getAnImmediateAncestor | Gets the super class or an included or prepended module. |
| getAnImmediateDescendent | Gets a direct subclass or module including or prepending this one. |
| getAnImmediateReference | Gets a constant or |
| getAnIncludedModule | Gets an |
| getAnInstanceMethod | Gets an instance method available in this module, including methods inherited from ancestors. |
| getAnInstanceSelf | Gets the |
| getAnOwnInstanceMethod | Gets an instance method declared in this module. |
| getAnOwnInstanceSelf | Gets the |
| getAnOwnInstanceVariableRead | Gets an access to the instance variable |
| getAnOwnInstanceVariableWriteValue | Gets the right-hand side of an assignment to the instance variable |
| getAnOwnModuleSelf | Gets |
| getAnOwnSingletonMethod | Gets a singleton method declared in this module (or in a singleton class augmenting this module). |
| getInstanceMethod | Gets the instance method named |
| getLocation | Gets the location of this module. |
| getModuleLevelSelf | Gets |
| getNestedModule | Gets a module named |
| getOwnInstanceMethod | Gets an instance method named |
| getOwnSingletonMethod | Gets the singleton method named |
| getParentModule | Gets the enclosing module, as it appears in the qualified name of this module. |
| getQualifiedName | Gets the qualified name of this module, if any. |
| getSuperClass | Gets the super class of this module, if any. |
| isBuiltin | Holds if this is a built-in module, e.g. |
| isClass | Holds if this module is a class. |
| toString | Gets a textual representation of this module. |
| trackInstance | Starts tracking instances of this module forward using API graphs. |
| trackModule | Starts tracking the module object using API graphs. |