Class ParamVertex
- java.lang.Object
-
- com.ibm.wala.cast.js.callgraph.fieldbased.flowgraph.vertices.Vertex
-
- com.ibm.wala.cast.js.callgraph.fieldbased.flowgraph.vertices.ParamVertex
-
public class ParamVertex extends Vertex
A parameter vertex represents a positional parameter of a function. It doesn't necessarily need to correspond to a named parameter.Numbering of positional parameters is 1-based, with parameter 0 being the
thisvalue.A named parameter is an ordinary SSA variable, hence it is represented as a
VarVertex. The flow graph builder sets up edges between parameter vertices and their corresponding variable vertices for named parameters.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Taccept(VertexVisitor<T> visitor)FuncVertexgetFunc()intgetIndex()java.lang.StringtoSourceLevelString(com.ibm.wala.ipa.callgraph.IAnalysisCacheView cache)If possible, returns a String representation ofthisthat refers to source-level entities rather thatn WALA-internal ones (e.g., source-level variable names rather than SSA value numbers).java.lang.StringtoString()
-
-
-
Method Detail
-
getFunc
public FuncVertex getFunc()
-
getIndex
public int getIndex()
-
accept
public <T> T accept(VertexVisitor<T> visitor)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toSourceLevelString
public java.lang.String toSourceLevelString(com.ibm.wala.ipa.callgraph.IAnalysisCacheView cache)
Description copied from class:VertexIf possible, returns a String representation ofthisthat refers to source-level entities rather thatn WALA-internal ones (e.g., source-level variable names rather than SSA value numbers). By default, just returns the results ofObject.toString()- Overrides:
toSourceLevelStringin classVertex
-
-