CodeQL library for Ruby
codeql/ruby-all 0.8.15-dev (changelog, source)
Search

Class API::MethodAccessNode

A node corresponding to the method being invoked at a method call.

Import path

import codeql.ruby.ApiGraphs

Direct supertypes

Indirect supertypes

Known direct subtypes

    Predicates

    toString

    Gets a textual representation of this element.

    Inherited predicates

    asCall

    Gets the call referred to by this API node.

    from Node
    asCallable

    Gets a callable that can reach this sink.

    from Node
    asModule

    Gets a module or class referred to by this API node.

    from Node
    asSink

    Gets a data-flow node where this value potentially flows into an external library.

    from Node
    asSource

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

    from Node
    getADescendentModule

    Gets a module or class that descends from the module or class referenced by this API node.

    from Node
    getAMember

    Gets an access to a constant with this value as the base of the access.

    from Node
    getAMethodCall

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

    from Node
    getAPredecessor

    DEPRECATED. API graphs no longer support backward traversal of edges. If possible use .backtrack() to get a node intended for backtracking.

    from Node
    getAPredecessor

    DEPRECATED. API graphs no longer support backward traversal of edges. If possible use .backtrack() to get a node intended for backtracking.

    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

    DEPRECATED. Use label-specific predicates in this class, such as getMember, instead of using getASuccessor.

    from Node
    getAUse

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

    from Node
    getAValueReachableFromSource

    Gets a data-flow node where this value may flow interprocedurally.

    from Node
    getAValueReachingRhs

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

    from Node
    getAValueReachingSink

    Get a data-flow node that transitively flows to this value, provided that this value corresponds to a sink.

    from Node
    getAnElement

    Gets a representative for an arbitrary element of this collection.

    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 with this value as the receiver.

    from Node
    getArgument

    Gets the nth positional argument to this call.

    from Node
    getArgumentAtPosition

    Gets the argument passed in argument position pos at this call.

    from Node
    getBlock

    Gets the block argument to this call, or the block parameter of this callable.

    from Node
    getBlockParameter

    Gets the block parameter of a callable that can reach this sink.

    from Node
    getCallNode

    DEPRECATED. Use asCall() instead.

    from Node
    getContent

    Gets a representative for the content of this value.

    from Node
    getContents

    Gets a representative for the contents of this value.

    from Node
    getDepth

    DEPRECATED. API graphs are no longer associated with a depth.

    from Node
    getField

    Gets a representative for 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 that may refer to an instance of the module or class represented by this API node.

    from Node
    getKeywordArgument

    Gets the given keyword argument to this call.

    from Node
    getKeywordParameter

    Gets the given keyword parameter of this callable, or keyword argument to this call.

    from Node
    getLocation

    Gets the location of this node.

    from Node
    getMember

    Gets an access to the constant m with this value as the base of the access.

    from Node
    getMethod

    Gets a call to method with this value as the receiver, or the definition of method on an object that can reach this sink.

    from Node
    getParameter

    Gets the nth positional parameter of this callable, or the nth positional argument to this call.

    from Node
    getParameterAtPosition

    Gets the parameter at position pos of this callable.

    from Node
    getPath

    DEPRECATED. API graph nodes are no longer associated with specific paths.

    from Node
    getReturn

    Gets the result of this call, or the return value of this callable.

    from Node
    getReturn

    Gets the result of a call to method with this value as the receiver, or the return value of method defined on an object that can reach this sink.

    from Node