abstract class AstCreatorBase extends AnyRef
- Alphabetic
- By Inheritance
- AstCreatorBase
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new AstCreatorBase(filename: String)
Abstract Value Members
- abstract def createAst(): DiffGraphBuilder
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def absolutePath(filename: String): String
Absolute path for the given file name
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- 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.
- 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.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- 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.
- val diffGraph: DiffGraphBuilder
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def forAst(forNode: NewControlStructure, locals: Seq[Ast], initAsts: Seq[Ast], conditionAsts: Seq[Ast], updateAsts: Seq[Ast], bodyAst: Ast): Ast
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def globalNamespaceBlock(): NewNamespaceBlock
Create a global namespace block for the given
filename - def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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.
- 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.
- def methodReturnNode(tfn: String, dtfn: Option[String] = None, line: Option[Integer], column: Option[Integer]): NewMethodReturn
Create a method return node
- 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.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- 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.
- def setArgumentIndices(arguments: Seq[Ast]): Unit
- def staticInitMethodAst(initAsts: List[Ast], fullName: String, signature: Option[String], returnType: String): Ast
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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.
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withArgumentIndex[T <: ExpressionNew](node: T, argIdxOpt: Option[Int]): T
- def withIndex[T, X](nodes: Array[T])(f: (T, Int) => X): Seq[X]
- def withIndex[T, X](nodes: Seq[T])(f: (T, Int) => X): Seq[X]
- def wrapMultipleInBlock(asts: Seq[Ast], lineNumber: Option[Integer]): Ast
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated