Package org.teavm.dependency
Class MethodDependency
- java.lang.Object
-
- org.teavm.dependency.MethodDependency
-
- All Implemented Interfaces:
MethodDependencyInfo
public class MethodDependency extends Object implements MethodDependencyInfo
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodDependencyaddLocation(CallLocation location)voidaddLocationListener(LocationListener listener)DependencyAgentgetDependencyAgent()MethodReadergetMethod()intgetParameterCount()MethodReferencegetReference()DependencyNodegetResult()DependencyNodegetThrown()DependencyNodegetVariable(int index)intgetVariableCount()DependencyNode[]getVariables()booleanisCalled()booleanisMissing()booleanisUsed()MethodDependencypropagate(int parameterIndex, Class<?> type)MethodDependencypropagate(int parameterIndex, String type)MethodDependencypropagate(int parameterIndex, DependencyType type)voiduse()
-
-
-
Method Detail
-
getDependencyAgent
public DependencyAgent getDependencyAgent()
-
getVariables
public DependencyNode[] getVariables()
- Specified by:
getVariablesin interfaceMethodDependencyInfo
-
getVariableCount
public int getVariableCount()
- Specified by:
getVariableCountin interfaceMethodDependencyInfo
-
getVariable
public DependencyNode getVariable(int index)
- Specified by:
getVariablein interfaceMethodDependencyInfo
-
getParameterCount
public int getParameterCount()
- Specified by:
getParameterCountin interfaceMethodDependencyInfo
-
getResult
public DependencyNode getResult()
- Specified by:
getResultin interfaceMethodDependencyInfo
-
getThrown
public DependencyNode getThrown()
- Specified by:
getThrownin interfaceMethodDependencyInfo
-
getReference
public MethodReference getReference()
- Specified by:
getReferencein interfaceMethodDependencyInfo
-
getMethod
public MethodReader getMethod()
-
isMissing
public boolean isMissing()
- Specified by:
isMissingin interfaceMethodDependencyInfo
-
isUsed
public boolean isUsed()
- Specified by:
isUsedin interfaceMethodDependencyInfo
-
addLocation
public MethodDependency addLocation(CallLocation location)
-
addLocationListener
public void addLocationListener(LocationListener listener)
-
propagate
public MethodDependency propagate(int parameterIndex, Class<?> type)
-
propagate
public MethodDependency propagate(int parameterIndex, String type)
-
propagate
public MethodDependency propagate(int parameterIndex, DependencyType type)
-
use
public void use()
-
isCalled
public boolean isCalled()
- Specified by:
isCalledin interfaceMethodDependencyInfo
-
-