qtil
advanced-security/qtil-ruby 0.0.2
Search

Class API::Def

A node corresponding to a value escaping into an API component.

Import path

import codeql.ruby.ApiGraphs

Direct supertypes

Indirect supertypes

Predicates

toString

Gets a textual representation of this element.

Inherited predicates

asSink

Gets a data-flow node where this value leaves the current codebase and flows into an external library (or in general, any external codebase).

from Node
asSource

Gets a data-flow node where this value enters the current codebase.

from Node
getAMember

Gets a node representing a member of this API component where the name of the member may or may not be known statically.

from Node
getAMethodCall

Gets a call to a method on the receiver represented by this API component.

from Node
getAPredecessor

Gets a node such that there is an edge in the API graph between this node and the other one.

from Node
getAPredecessor

Gets a node such that there is an edge in the API graph between that other node and this one, and that edge is labeled with lbl

from Node
getARhs

DEPRECATED. This predicate has been renamed to asSink().

from Node
getASubclass

Gets a node representing a (direct or indirect) subclass of the class represented by this node. rb class A; end class B < A; end class C < B; end In the example above, getMember("A").getASubclass() will return uses of A, B and C.

from Node
getASuccessor

Gets a node such that there is an edge in the API graph between that other node and this one.

from Node
getASuccessor

Gets a node such that there is an edge in the API graph between this node and the other one, and that edge is labeled with lbl.

from Node
getAUse

DEPRECATED. This predicate has been renamed to getAValueReachableFromSource().

from Node
getAValueReachableFromSource

Gets a data-flow node where this value may flow after entering the current codebase.

from Node
getAValueReachingRhs

DEPRECATED. This predicate has been renamed to getAValueReachingSink().

from Node
getAValueReachingSink

Get a data-flow node that transitively flows to an external library (or in general, any external codebase).

from Node
getAnElement

Gets a node representing an element of this collection (known or unknown).

from Node
getAnImmediateSubclass

Gets a node representing a direct subclass of the class represented by this node. rb class A; end class B < A; end class C < B; end In the example above, getMember("A").getAnImmediateSubclass() will return uses of B only.

from Node
getAnImmediateUse

DEPRECATED. This predicate has been renamed to asSource().

from Node
getAnInstantiation

Gets a new call to the function represented by this API component.

from Node
getBlock

Gets an API node representing the block parameter.

from Node
getContent

Gets a node representing the content stored on the base object.

from Node
getContents

Gets a node representing the contents stored on the base object.

from Node
getDepth

Gets the shortest distance from the root to this node in the API graph.

from Node
getField

Gets a node representing the instance field of the given name, which must include the @ character.

from Node
getInducingNode

Gets the data-flow node that gives rise to this node, if any.

from Node
getInstance

Gets a node representing an instance of this API component, that is, an object whose constructor is the function represented by this node.

from Node
getKeywordParameter

Gets an API node representing the given keyword parameter.

from Node
getLocation

Gets the location of this node.

from Node
getMember

Gets a node representing member m of this API component.

from Node
getMethod

Gets a node representing a call to method on the receiver represented by this node.

from Node
getParameter

Gets an API node representing the nth positional parameter.

from Node
getPath

Gets a string representation of the lexicographically least among all shortest access paths from the root to this node.

from Node
getReturn

Gets a node representing the result of this call.

from Node
getReturn

Gets a node representing the result of calling a method on the receiver represented by this node.

from Node