Packages

c

io.joern.x2cpg

AstCreatorBase

abstract class AstCreatorBase extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AstCreatorBase
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new AstCreatorBase(filename: String)

Abstract Value Members

  1. abstract def createAst(): DiffGraphBuilder

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def absolutePath(filename: String): String

    Absolute path for the given file name

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def blockAst(blockNode: NewBlock, statements: List[Ast] = List()): Ast

    For a given block node and statement ASTs, create an AST that represents the block.

    For a given block node and statement ASTs, create an AST that represents the block. The main purpose of this method is to increase the readability of the code which creates block asts.

  7. def callAst(callNode: NewCall, arguments: Seq[Ast] = List(), receiver: Option[Ast] = None, withRecvArgEdge: Boolean = false): Ast

    For a given call node, arguments, and optionally, a receiver, create an AST that represents the call site.

    For a given call node, arguments, and optionally, a receiver, create an AST that represents the call site. The main purpose of this method is to automatically assign the correct argument indices.

  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  9. def controlStructureAst(controlStructureNode: NewControlStructure, condition: Option[Ast], children: List[Ast] = List(), placeConditionLast: Boolean = false): Ast

    For a given node, condition AST and children ASTs, create an AST that represents the control structure.

    For a given node, condition AST and children ASTs, create an AST that represents the control structure. The main purpose of this method is to automatically assign the correct condition edges.

  10. val diffGraph: DiffGraphBuilder
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. def forAst(forNode: NewControlStructure, locals: Seq[Ast], initAsts: Seq[Ast], conditionAsts: Seq[Ast], updateAsts: Seq[Ast], bodyAst: Ast): Ast
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. def globalNamespaceBlock(): NewNamespaceBlock

    Create a global namespace block for the given filename

  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def methodAst(method: NewMethod, parameters: Seq[NewMethodParameterIn], body: Ast, methodReturn: NewMethodReturn, modifiers: Seq[NewModifier] = Nil): Ast

    Creates an AST that represents an entire method, including its content.

  19. def methodAstWithAnnotations(method: NewMethod, parameters: Seq[Ast], body: Ast, methodReturn: NewMethodReturn, modifiers: Seq[NewModifier] = Nil, annotations: Seq[Ast] = Nil): Ast

    Creates an AST that represents an entire method, including its content and with support for both method and parameter annotations.

  20. def methodReturnNode(tfn: String, dtfn: Option[String] = None, line: Option[Integer], column: Option[Integer]): NewMethodReturn

    Create a method return node

  21. def methodStubAst(method: NewMethod, parameters: Seq[NewMethodParameterIn], methodReturn: NewMethodReturn, modifiers: Seq[NewModifier] = Nil): Ast

    Creates an AST that represents a method stub, containing information about the method, its parameters, and the return type.

  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  25. def returnAst(returnNode: NewReturn, arguments: Seq[Ast] = List()): Ast

    For a given return node and arguments, create an AST that represents the return instruction.

    For a given return node and arguments, create an AST that represents the return instruction. The main purpose of this method is to automatically assign the correct argument indices.

  26. def setArgumentIndices(arguments: Seq[Ast]): Unit
  27. def staticInitMethodAst(initAsts: List[Ast], fullName: String, signature: Option[String], returnType: String): Ast
  28. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  29. def toString(): String
    Definition Classes
    AnyRef → Any
  30. def tryCatchAst(tryNode: NewControlStructure, tryBodyAst: Ast, catchAsts: Seq[Ast], finallyAst: Option[Ast]): Ast

    For the given try body, catch ASTs and finally AST, create a try-catch-finally AST with orders set correctly for the ossdataflow engine.

  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. def withArgumentIndex[T <: ExpressionNew](node: T, argIdxOpt: Option[Int]): T
  35. def withIndex[T, X](nodes: Array[T])(f: (T, Int) => X): Seq[X]
  36. def withIndex[T, X](nodes: Seq[T])(f: (T, Int) => X): Seq[X]
  37. def wrapMultipleInBlock(asts: Seq[Ast], lineNumber: Option[Integer]): Ast

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped