Package it.unive.lisa.program
Interface CodeElement
-
- All Known Subinterfaces:
ProgramPoint
- All Known Implementing Classes:
AbstractClassUnit,AccessGlobal,AccessInstanceGlobal,Addition,And,Assignment,BinaryExpression,Call,CallWithResult,CFGCall,ClassUnit,CodeMemberDescriptor,CodeUnit,CompilationUnit,Concat,Contains,Division,EndsWith,Equal,Equals,Expression,FalseLiteral,Float32Literal,Float64Literal,Global,GreaterOrEqual,GreaterThan,IndexOf,Int16Literal,Int32Literal,Int64Literal,Int8Literal,InterfaceUnit,Length,LessOrEqual,LessThan,Literal,Modulo,MultiCall,Multiplication,NamedParameterExpression,NaryExpression,NativeCall,Negation,NoOp,Not,NotEqual,NullLiteral,OpenCall,Or,Parameter,ProgramUnit,Remainder,Replace,Ret,Return,StartsWith,Statement,StringLiteral,Substring,Subtraction,TernaryExpression,Throw,TrueLiteral,TruncatedParamsCall,UInt16Literal,UInt32Literal,UInt64Literal,UInt8Literal,UnaryExpression,UnaryStatement,UnresolvedCall,VariableRef,VariableTableEntry
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface CodeElementInterface for code elements that have to provide information about the location where they appear.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CodeLocationgetLocation()Yields the location where this code element appears in the program.
-
-
-
Method Detail
-
getLocation
CodeLocation getLocation()
Yields the location where this code element appears in the program.- Returns:
- the location where this code element appears in the program
-
-