io.shiftleft.codepropertygraph.generated.neighboraccessors.MethodParameterOut.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codepropertygraph-domain-classes_3 Show documentation
Show all versions of codepropertygraph-domain-classes_3 Show documentation
codepropertygraph-domain-classes
package io.shiftleft.codepropertygraph.generated.neighboraccessors
import io.shiftleft.codepropertygraph.generated.nodes
import io.shiftleft.codepropertygraph.generated.language.*
final class AccessNeighborsForMethodParameterOut(val node: nodes.MethodParameterOut) extends AnyVal {
/** Traverse to BLOCK via REACHING_DEF IN edge.
*/
def _blockViaReachingDefIn: Iterator[nodes.Block] = reachingDefIn.collectAll[nodes.Block]
/** Traverse to CALL via REACHING_DEF IN edge.
*/
def _callViaReachingDefIn: Iterator[nodes.Call] = reachingDefIn.collectAll[nodes.Call]
/** Traverse to CALL via REACHING_DEF OUT edge.
*/
def _callViaReachingDefOut: Iterator[nodes.Call] = reachingDefOut.collectAll[nodes.Call]
/** Traverse to CONTROL_STRUCTURE via REACHING_DEF IN edge.
*/
def _controlStructureViaReachingDefIn: Iterator[nodes.ControlStructure] =
reachingDefIn.collectAll[nodes.ControlStructure]
/** Traverse to IDENTIFIER via REACHING_DEF IN edge.
*/
def _identifierViaReachingDefIn: Iterator[nodes.Identifier] = reachingDefIn.collectAll[nodes.Identifier]
/** Traverse to IDENTIFIER via REACHING_DEF OUT edge.
*/
def _identifierViaReachingDefOut: Iterator[nodes.Identifier] = reachingDefOut.collectAll[nodes.Identifier]
/** Traverse to LITERAL via REACHING_DEF IN edge.
*/
def _literalViaReachingDefIn: Iterator[nodes.Literal] = reachingDefIn.collectAll[nodes.Literal]
/** Traverse to LITERAL via REACHING_DEF OUT edge.
*/
def _literalViaReachingDefOut: Iterator[nodes.Literal] = reachingDefOut.collectAll[nodes.Literal]
/** Traverse to METHOD via AST IN edge.
*/
@deprecated("please use method instead")
def _methodViaAstIn: nodes.Method = method
/** Traverse to METHOD via AST IN edge.
*/
def method: nodes.Method = {
try { astIn.collectAll[nodes.Method].next() }
catch {
case e: java.util.NoSuchElementException =>
throw new flatgraph.SchemaViolationException(
"IN edge with label AST to an adjacent METHOD is mandatory, but not defined for this METHOD_PARAMETER_OUT node with seq=" + node.seq,
e
)
}
}
/** Traverse to METHOD via REACHING_DEF IN edge.
*/
def _methodViaReachingDefIn: Iterator[nodes.Method] = reachingDefIn.collectAll[nodes.Method]
/** Traverse to METHOD_PARAMETER_IN via PARAMETER_LINK IN edge.
*/
@deprecated("please use asInput instead")
def _methodParameterInViaParameterLinkIn: Iterator[nodes.MethodParameterIn] = asInput
/** Traverse to METHOD_PARAMETER_IN via PARAMETER_LINK IN edge.
*/
def asInput: Iterator[nodes.MethodParameterIn] = parameterLinkIn.collectAll[nodes.MethodParameterIn]
/** Traverse to METHOD_PARAMETER_IN via REACHING_DEF IN edge.
*/
def _methodParameterInViaReachingDefIn: Iterator[nodes.MethodParameterIn] =
reachingDefIn.collectAll[nodes.MethodParameterIn]
/** Traverse to METHOD_REF via REACHING_DEF IN edge.
*/
def _methodRefViaReachingDefIn: Iterator[nodes.MethodRef] = reachingDefIn.collectAll[nodes.MethodRef]
/** Traverse to METHOD_REF via REACHING_DEF OUT edge.
*/
def _methodRefViaReachingDefOut: Iterator[nodes.MethodRef] = reachingDefOut.collectAll[nodes.MethodRef]
/** Traverse to RETURN via REACHING_DEF IN edge.
*/
def _returnViaReachingDefIn: Iterator[nodes.Return] = reachingDefIn.collectAll[nodes.Return]
/** Traverse to RETURN via REACHING_DEF OUT edge.
*/
def _returnViaReachingDefOut: Iterator[nodes.Return] = reachingDefOut.collectAll[nodes.Return]
/** Traverse to TAG via TAGGED_BY OUT edge.
*/
def _tagViaTaggedByOut: Iterator[nodes.Tag] = taggedByOut.collectAll[nodes.Tag]
/** Traverse to TYPE_REF via REACHING_DEF IN edge.
*/
def _typeRefViaReachingDefIn: Iterator[nodes.TypeRef] = reachingDefIn.collectAll[nodes.TypeRef]
/** Traverse to TYPE_REF via REACHING_DEF OUT edge.
*/
def _typeRefViaReachingDefOut: Iterator[nodes.TypeRef] = reachingDefOut.collectAll[nodes.TypeRef]
/** Traverse to UNKNOWN via REACHING_DEF IN edge.
*/
def _unknownViaReachingDefIn: Iterator[nodes.Unknown] = reachingDefIn.collectAll[nodes.Unknown]
/** Traverse to parameter type Traverse to TYPE via EVAL_TYPE OUT edge.
*/
@deprecated("please use typ instead")
def _typeViaEvalTypeOut: Iterator[nodes.Type] = typ
/** Traverse to parameter type Traverse to TYPE via EVAL_TYPE OUT edge.
*/
def typ: Iterator[nodes.Type] = evalTypeOut.collectAll[nodes.Type]
def astIn: Iterator[nodes.Method] = node._astIn.cast[nodes.Method]
def evalTypeOut: Iterator[nodes.Type] = node._evalTypeOut.cast[nodes.Type]
def parameterLinkIn: Iterator[nodes.MethodParameterIn] = node._parameterLinkIn.cast[nodes.MethodParameterIn]
def reachingDefIn: Iterator[nodes.CfgNode] = node._reachingDefIn.cast[nodes.CfgNode]
def reachingDefOut: Iterator[nodes.Expression] = node._reachingDefOut.cast[nodes.Expression]
def taggedByOut: Iterator[nodes.Tag] = node._taggedByOut.cast[nodes.Tag]
}
final class AccessNeighborsForMethodParameterOutTraversal(val traversal: Iterator[nodes.MethodParameterOut])
extends AnyVal {
/** Traverse to BLOCK via REACHING_DEF IN edge.
*/
def _blockViaReachingDefIn: Iterator[nodes.Block] = traversal.flatMap(_._blockViaReachingDefIn)
/** Traverse to CALL via REACHING_DEF IN edge.
*/
def _callViaReachingDefIn: Iterator[nodes.Call] = traversal.flatMap(_._callViaReachingDefIn)
/** Traverse to CALL via REACHING_DEF OUT edge.
*/
def _callViaReachingDefOut: Iterator[nodes.Call] = traversal.flatMap(_._callViaReachingDefOut)
/** Traverse to CONTROL_STRUCTURE via REACHING_DEF IN edge.
*/
def _controlStructureViaReachingDefIn: Iterator[nodes.ControlStructure] =
traversal.flatMap(_._controlStructureViaReachingDefIn)
/** Traverse to IDENTIFIER via REACHING_DEF IN edge.
*/
def _identifierViaReachingDefIn: Iterator[nodes.Identifier] = traversal.flatMap(_._identifierViaReachingDefIn)
/** Traverse to IDENTIFIER via REACHING_DEF OUT edge.
*/
def _identifierViaReachingDefOut: Iterator[nodes.Identifier] = traversal.flatMap(_._identifierViaReachingDefOut)
/** Traverse to LITERAL via REACHING_DEF IN edge.
*/
def _literalViaReachingDefIn: Iterator[nodes.Literal] = traversal.flatMap(_._literalViaReachingDefIn)
/** Traverse to LITERAL via REACHING_DEF OUT edge.
*/
def _literalViaReachingDefOut: Iterator[nodes.Literal] = traversal.flatMap(_._literalViaReachingDefOut)
/** Traverse to METHOD via AST IN edge.
*/
def method: Iterator[nodes.Method] = traversal.map(_.method)
/** Traverse to METHOD via AST IN edge.
*/
@deprecated("please use method instead")
def _methodViaAstIn: Iterator[nodes.Method] = traversal.map(_._methodViaAstIn)
/** Traverse to METHOD via REACHING_DEF IN edge.
*/
def _methodViaReachingDefIn: Iterator[nodes.Method] = traversal.flatMap(_._methodViaReachingDefIn)
/** Traverse to METHOD_PARAMETER_IN via PARAMETER_LINK IN edge.
*/
def asInput: Iterator[nodes.MethodParameterIn] = traversal.flatMap(_.asInput)
/** Traverse to METHOD_PARAMETER_IN via PARAMETER_LINK IN edge.
*/
@deprecated("please use asInput instead")
def _methodParameterInViaParameterLinkIn: Iterator[nodes.MethodParameterIn] =
traversal.flatMap(_._methodParameterInViaParameterLinkIn)
/** Traverse to METHOD_PARAMETER_IN via REACHING_DEF IN edge.
*/
def _methodParameterInViaReachingDefIn: Iterator[nodes.MethodParameterIn] =
traversal.flatMap(_._methodParameterInViaReachingDefIn)
/** Traverse to METHOD_REF via REACHING_DEF IN edge.
*/
def _methodRefViaReachingDefIn: Iterator[nodes.MethodRef] = traversal.flatMap(_._methodRefViaReachingDefIn)
/** Traverse to METHOD_REF via REACHING_DEF OUT edge.
*/
def _methodRefViaReachingDefOut: Iterator[nodes.MethodRef] = traversal.flatMap(_._methodRefViaReachingDefOut)
/** Traverse to RETURN via REACHING_DEF IN edge.
*/
def _returnViaReachingDefIn: Iterator[nodes.Return] = traversal.flatMap(_._returnViaReachingDefIn)
/** Traverse to RETURN via REACHING_DEF OUT edge.
*/
def _returnViaReachingDefOut: Iterator[nodes.Return] = traversal.flatMap(_._returnViaReachingDefOut)
/** Traverse to TAG via TAGGED_BY OUT edge.
*/
def _tagViaTaggedByOut: Iterator[nodes.Tag] = traversal.flatMap(_._tagViaTaggedByOut)
/** Traverse to TYPE_REF via REACHING_DEF IN edge.
*/
def _typeRefViaReachingDefIn: Iterator[nodes.TypeRef] = traversal.flatMap(_._typeRefViaReachingDefIn)
/** Traverse to TYPE_REF via REACHING_DEF OUT edge.
*/
def _typeRefViaReachingDefOut: Iterator[nodes.TypeRef] = traversal.flatMap(_._typeRefViaReachingDefOut)
/** Traverse to UNKNOWN via REACHING_DEF IN edge.
*/
def _unknownViaReachingDefIn: Iterator[nodes.Unknown] = traversal.flatMap(_._unknownViaReachingDefIn)
/** Traverse to parameter type Traverse to TYPE via EVAL_TYPE OUT edge.
*/
def typ: Iterator[nodes.Type] = traversal.flatMap(_.typ)
/** Traverse to parameter type Traverse to TYPE via EVAL_TYPE OUT edge.
*/
@deprecated("please use typ instead")
def _typeViaEvalTypeOut: Iterator[nodes.Type] = traversal.flatMap(_._typeViaEvalTypeOut)
def astIn: Iterator[nodes.Method] = traversal.flatMap(_.astIn)
def evalTypeOut: Iterator[nodes.Type] = traversal.flatMap(_.evalTypeOut)
def parameterLinkIn: Iterator[nodes.MethodParameterIn] = traversal.flatMap(_.parameterLinkIn)
def reachingDefIn: Iterator[nodes.CfgNode] = traversal.flatMap(_.reachingDefIn)
def reachingDefOut: Iterator[nodes.Expression] = traversal.flatMap(_.reachingDefOut)
def taggedByOut: Iterator[nodes.Tag] = traversal.flatMap(_.taggedByOut)
}