AstCreator
Attributes
- Graph
-
- Supertypes
-
trait AstForHereDocsCreatortrait AstCreatorHelpertrait AstForTypesCreatortrait AstForExpressionsCreatortrait AstForFunctionsCreatortrait AstForStatementsCreatortrait AstForPrimitivesCreatorclass AstCreatorBaseclass Objecttrait Matchableclass AnyShow all
Members list
Type members
Inherited classlikes
Attributes
- Inherited from:
- AstForStatementsCreator
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- AstForTypesCreator
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- AstForTypesCreator
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Inherited from:
- AstCreatorHelper
- Supertypes
-
class Objecttrait Matchableclass Any
Value members
Concrete methods
Attributes
- Definition Classes
-
AstCreatorBase
Inherited methods
Absolute path for the given file name
Absolute path for the given file name
Attributes
- Inherited from:
- AstCreatorBase
Creates an AST that represents an annotation assignment with a name for the assigned value, its overall code, and the respective assignment AST.
Creates an AST that represents an annotation assignment with a name for the assigned value, its overall code, and the respective assignment AST.
Attributes
- Inherited from:
- AstCreatorBase
Creates an AST that represents an annotation, including its content (annotation parameter assignments).
Creates an AST that represents an annotation, including its content (annotation parameter assignments).
Attributes
- Inherited from:
- AstCreatorBase
Attributes
- Inherited from:
- AstNodeBuilder
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForDeclarationsCreator
Attributes
- Inherited from:
- AstForDeclarationsCreator
Attributes
- Inherited from:
- AstForPrimitivesCreator
Attributes
- Inherited from:
- AstCreatorHelper
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForStatementsCreator
Attributes
- Inherited from:
- AstForFunctionsCreator
Attributes
- Inherited from:
- AstForStatementsCreator
Attributes
- Inherited from:
- AstForControlStructuresCreator
Attributes
- Inherited from:
- AstForControlStructuresCreator
Attributes
- Inherited from:
- AstForTypesCreator
Attributes
- Inherited from:
- AstForTypesCreator
Attributes
- Inherited from:
- AstForStatementsCreator
Attributes
- Inherited from:
- AstForStatementsCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstCreatorHelper
Attributes
- Inherited from:
- AstForFunctionsCreator
Attributes
- Inherited from:
- AstForStatementsCreator
Attributes
- Inherited from:
- AstForPrimitivesCreator
Attributes
- Inherited from:
- AstForPrimitivesCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForStatementsCreator
Attributes
- Inherited from:
- AstForPrimitivesCreator
Attributes
- Inherited from:
- AstCreatorHelper
Attributes
- Inherited from:
- AstForPrimitivesCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForHereDocsCreator
Attributes
- Inherited from:
- AstForHereDocsCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForControlStructuresCreator
Attributes
- Inherited from:
- AstForPrimitivesCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForFunctionsCreator
Attributes
- Inherited from:
- AstForFunctionsCreator
Attributes
- Inherited from:
- AstForTypesCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForControlStructuresCreator
Attributes
- Inherited from:
- AstForPrimitivesCreator
Attributes
- Inherited from:
- AstForPrimitivesCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForFunctionsCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForPrimitivesCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForControlStructuresCreator
Attributes
- Inherited from:
- AstForPrimitivesCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForPrimitivesCreator
Attributes
- Inherited from:
- AstForStatementsCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForPrimitivesCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForPrimitivesCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
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.
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.
Attributes
- Inherited from:
- AstCreatorBase
Attributes
- Inherited from:
- AstNodeBuilder
Attributes
- Inherited from:
- AstNodeBuilder
Create an abstract syntax tree for a call, including CPG-specific edges required for arguments and the receiver.
Create an abstract syntax tree for a call, including CPG-specific edges required for arguments and the receiver.
Our call representation is inspired by ECMAScript, that is, in addition to arguments, a call has a base and a receiver. For languages other than Javascript, leave receiver
empty for now.
Value parameters
- arguments
-
arguments (without the base argument (instance))
- base
-
the value to use as
this
in the method call. - callNode
-
the node that represents the entire call
- receiver
-
the object in which the property lookup is performed
Attributes
- Inherited from:
- AstCreatorBase
Attributes
- Inherited from:
- AstNodeBuilder
Attributes
- Inherited from:
- AstNodeBuilder
Attributes
- Definition Classes
- Inherited from:
- AstCreatorHelper
Attributes
- Inherited from:
- AstCreatorHelper
Attributes
- Inherited from:
- AstCreatorHelper
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.
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.
Attributes
- Inherited from:
- AstCreatorBase
Attributes
- Inherited from:
- AstNodeBuilder
Attributes
- Inherited from:
- AstCreatorHelper
Attributes
- Inherited from:
- AstCreatorHelper
Attributes
- Inherited from:
- AstCreatorHelper
Attributes
- Inherited from:
- AstCreatorHelper
Attributes
- Inherited from:
- AstCreatorHelper
Attributes
- Inherited from:
- AstCreatorHelper
Attributes
- Inherited from:
- AstCreatorBase
Attributes
- Inherited from:
- AstNodeBuilder
Attributes
- Inherited from:
- AstCreatorBase
Attributes
- Inherited from:
- AstCreatorBase
Attributes
- Inherited from:
- AstCreatorHelper
Attributes
- Inherited from:
- AstCreatorHelper
Create a global namespace block for the given filename
Create a global namespace block for the given filename
Attributes
- Inherited from:
- AstCreatorBase
Attributes
- Inherited from:
- AstNodeBuilder
Attributes
- Inherited from:
- AstCreatorHelper
Attributes
- Inherited from:
- AstNodeBuilder
If the last statement is a return, this is returned. If not, then a return node is created.
If the last statement is a return, this is returned. If not, then a return node is created.
Attributes
- Inherited from:
- AstForStatementsCreator
Attributes
- Inherited from:
- AstCreatorHelper
Attributes
- Inherited from:
- AstCreatorHelper
Attributes
- Inherited from:
- AstNodeBuilder
Attributes
- Inherited from:
- AstNodeBuilder
Attributes
- Inherited from:
- AstNodeBuilder
Attributes
- Inherited from:
- AstNodeBuilder
Attributes
- Inherited from:
- AstForTypesCreator
Creates an AST that represents an entire method, including its content.
Creates an AST that represents an entire method, including its content.
Attributes
- Inherited from:
- AstCreatorBase
Creates an AST that represents an entire method, including its content and with support for both method and parameter annotations.
Creates an AST that represents an entire method, including its content and with support for both method and parameter annotations.
Attributes
- Inherited from:
- AstCreatorBase
Attributes
- Inherited from:
- AstForFunctionsCreator
Attributes
- Inherited from:
- AstNodeBuilder
Attributes
- Inherited from:
- AstNodeBuilder
Attributes
- Inherited from:
- AstNodeBuilder
Attributes
- Inherited from:
- AstNodeBuilder
Creates an AST that represents a method stub, containing information about the method, its parameters, and the return type.
Creates an AST that represents a method stub, containing information about the method, its parameters, and the return type.
Attributes
- Inherited from:
- AstCreatorBase
Attributes
- Inherited from:
- AstCreatorHelper
Attributes
- Inherited from:
- AstNodeBuilder
Attributes
- Returns
-
the next available name for a closure in this context
- Inherited from:
- AstCreatorBase
Attributes
- Inherited from:
- AstNodeBuilder
Attributes
- Inherited from:
- AstNodeBuilder
Attributes
- Inherited from:
- AstNodeBuilder
Attributes
- Inherited from:
- AstCreatorHelper
Attributes
- Returns
-
the method name if found as an alias, or the given name if not found.
- Inherited from:
- AstForFunctionsCreator
Attributes
- Inherited from:
- AstForStatementsCreator
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.
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.
Attributes
- Inherited from:
- AstCreatorBase
Attributes
- Inherited from:
- AstCreatorHelper
Attributes
- Inherited from:
- AstNodeBuilder
Will determine, if we have recently met a here doc initializer, if this statement should be converted to a here doc literal or returned as-is.
Will determine, if we have recently met a here doc initializer, if this statement should be converted to a here doc literal or returned as-is.
Value parameters
- stmt
-
the statement AST.
Attributes
- Returns
-
the statement AST or nothing if this is determined to be a here doc body.
- Inherited from:
- AstForHereDocsCreator
Attributes
- Inherited from:
- AstCreatorBase
Attributes
- Inherited from:
- AstNodeBuilder
Attributes
- Inherited from:
- AstCreatorBase
Attributes
- Inherited from:
- AstCreatorHelper
For the given try body, catch ASTs and finally AST, create a try-catch-finally AST with orders set correctly for the ossdataflow engine.
For the given try body, catch ASTs and finally AST, create a try-catch-finally AST with orders set correctly for the ossdataflow engine.
Attributes
- Inherited from:
- AstCreatorBase
Attributes
- Inherited from:
- AstNodeBuilder
Attributes
- Inherited from:
- AstNodeBuilder
Attributes
- Inherited from:
- AstNodeBuilder
Attributes
- Inherited from:
- AstNodeBuilder
Attributes
- Inherited from:
- AstCreatorBase
Attributes
- Inherited from:
- AstCreatorBase
Attributes
- Inherited from:
- AstCreatorBase
Attributes
- Inherited from:
- AstCreatorBase
Attributes
- Inherited from:
- AstCreatorBase
Attributes
- Inherited from:
- AstCreatorBase
Inherited fields
Attributes
- Inherited from:
- AstForFunctionsCreator
Attributes
- Inherited from:
- AstForFunctionsCreator
Attributes
- Inherited from:
- AstForFunctionsCreator
Attributes
- Inherited from:
- AstCreatorBase
Attributes
- Inherited from:
- AstForTypesCreator
Attributes
- Inherited from:
- AstForExpressionsCreator
Attributes
- Inherited from:
- AstForFunctionsCreator
Attributes
- Inherited from:
- AstForFunctionsCreator
Attributes
- Inherited from:
- AstForFunctionsCreator
Attributes
- Inherited from:
- AstForFunctionsCreator
Attributes
- Inherited from:
- AstForFunctionsCreator
Attributes
- Inherited from:
- AstForTypesCreator
Implicits
Inherited implicits
Attributes
- Inherited from:
- AstForStatementsCreator
Attributes
- Inherited from:
- AstForTypesCreator
Attributes
- Inherited from:
- AstForTypesCreator
Attributes
- Inherited from:
- AstCreatorHelper