Class NativeCall
- java.lang.Object
-
- it.unive.lisa.program.cfg.statement.Statement
-
- it.unive.lisa.program.cfg.statement.Expression
-
- it.unive.lisa.program.cfg.statement.Call
-
- it.unive.lisa.program.cfg.statement.NativeCall
-
- All Implemented Interfaces:
ProgramPoint,CodeElement,Node<Statement,Edge,CFG>,java.lang.Comparable<Statement>
- Direct Known Subclasses:
BinaryNativeCall,TernaryNativeCall,UnaryNativeCall
public abstract class NativeCall extends Call
A native call, modeling the usage of one of the native constructs of the language.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNativeCall(CFG cfg, CodeLocation location, java.lang.String constructName, Expression... parameters)Builds the untyped native call, happening at the given location in the program.protectedNativeCall(CFG cfg, CodeLocation location, java.lang.String constructName, Type staticType, Expression... parameters)Builds the native call, happening at the given location in the program.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetConstructName()Yields the CFG that is targeted by this CFG call.inthashCode()java.lang.StringtoString()-
Methods inherited from class it.unive.lisa.program.cfg.statement.Call
accept, callSemantics, getParameters, semantics, setOffset
-
Methods inherited from class it.unive.lisa.program.cfg.statement.Expression
getDynamicType, getMetaVariables, getParentStatement, getRootStatement, getRuntimeTypes, getStaticType, setParentStatement, setRuntimeTypes
-
Methods inherited from class it.unive.lisa.program.cfg.statement.Statement
compareTo, getCFG, getLocation, getOffset, stopsExecution, throwsError
-
-
-
-
Constructor Detail
-
NativeCall
protected NativeCall(CFG cfg, CodeLocation location, java.lang.String constructName, Expression... parameters)
Builds the untyped native call, happening at the given location in the program. The static type of this call isUntyped.- Parameters:
cfg- the cfg that this expression belongs tolocation- the location where the expression is defined within the source file. If unknown, usenullconstructName- the name of the construct invoked by this native callparameters- the parameters of this call
-
NativeCall
protected NativeCall(CFG cfg, CodeLocation location, java.lang.String constructName, Type staticType, Expression... parameters)
Builds the native call, happening at the given location in the program.- Parameters:
cfg- the cfg that this expression belongs tolocation- the location where this expression is defined within the source file. If unknown, usenullconstructName- the name of the construct invoked by this native callstaticType- the static type of this callparameters- the parameters of this call
-
-