public class VariableFinder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTAINER_VARIABLE_NAME |
protected VMEvaluationEnvironment |
fEvalEnv |
protected boolean |
fIsStoreValues |
Constructor and Description |
---|
VariableFinder(VMEvaluationEnvironment fEvalEnv,
boolean isStoreValues) |
Modifier and Type | Method and Description |
---|---|
void |
collectChildVars(java.lang.Object root,
java.lang.String[] parentPath,
java.lang.String containerType,
java.util.List<VMVariableData> result) |
java.lang.String |
computeDetail(org.eclipse.emf.common.util.URI variableURI) |
static java.lang.String |
computeDetail(org.eclipse.emf.common.util.URI variableURI,
VMEvaluationEnvironment fEvalEnv)
Deprecated.
use non-static method
|
protected VMVariableData |
createContainerVariable(java.lang.Object value,
org.eclipse.emf.common.util.URI uri) |
static org.eclipse.emf.common.util.URI |
createURI(java.lang.String[] varPath) |
static org.eclipse.emf.common.util.URI |
createURI(java.lang.String[] varPath,
int endIndex) |
void |
find(java.lang.String[] objectPath,
boolean fetchChildVariables,
java.util.List<VMVariableData> result) |
protected java.lang.Object |
findChildObject(java.lang.Object parentObj,
java.lang.String optParentDeclaredType,
java.lang.String[] varTreePath,
int pathIndex) |
static java.util.List<org.eclipse.emf.ecore.EStructuralFeature> |
getAllFeatures(org.eclipse.emf.ecore.EClass eClass) |
protected java.lang.String |
getDeclaredType(java.lang.Object valueObject) |
static java.lang.String |
getRootVarName(org.eclipse.emf.common.util.URI variableURI) |
protected static java.lang.String |
getTermVariableName(OCLExpression oclExpression) |
java.lang.Object |
getValue(org.eclipse.emf.ecore.EStructuralFeature feature,
org.eclipse.emf.ecore.EObject target) |
protected VMVariableData |
getVariable(TypedElement variable,
java.lang.Object pcObject) |
static java.lang.String[] |
getVariablePath(org.eclipse.emf.common.util.URI variableURI) |
java.util.List<VMVariableData> |
getVariables() |
static java.util.List<VMVariableData> |
getVariables(VMEvaluationEnvironment evalEnv) |
java.lang.Object |
navigateProperty(org.eclipse.emf.ecore.EStructuralFeature property,
java.util.List<?> qualifiers,
java.lang.Object target) |
static VariableFinder |
newInstance(VMEvaluationEnvironment vmEvaluationEnvironment,
boolean isStoreValues) |
static org.eclipse.emf.common.util.URI |
parseURI(java.lang.String variableURI) |
VMResponse |
process(VMVariableRequest request,
java.util.List<UnitLocation> stack) |
static VMResponse |
process(VMVariableRequest request,
java.util.List<UnitLocation> stack,
VMEvaluationEnvironment vmEvaluationEnvironment)
Deprecated.
use non-static method
|
static void |
setValueAndType(VMVariableData variable,
java.lang.Object value,
org.eclipse.emf.ecore.EClassifier optDeclaredType,
EvaluationEnvironment evalEnv)
Deprecated.
use non-static method
|
void |
setValueAndType(VMVariableData variable,
java.lang.Object value,
java.lang.String declaredTypeName) |
static void |
setValueAndType(VMVariableData variable,
java.lang.Object value,
java.lang.String declaredTypeName,
EvaluationEnvironment evalEnv)
Deprecated.
use non-static method
|
void |
setValueAndType(VMVariableData variable,
java.lang.Object value,
Type optDeclaredType) |
static void |
setValueAndType(VMVariableData variable,
java.lang.Object value,
Type optDeclaredType,
EvaluationEnvironment evalEnv)
Deprecated.
use non-static method
|
java.lang.Object |
superNavigateProperty(org.eclipse.emf.ecore.EStructuralFeature property,
java.util.List<?> qualifiers,
java.lang.Object target) |
@NonNull public static final java.lang.String CONTAINER_VARIABLE_NAME
@NonNull protected final VMEvaluationEnvironment fEvalEnv
protected final boolean fIsStoreValues
public VariableFinder(@NonNull VMEvaluationEnvironment fEvalEnv, boolean isStoreValues)
@Deprecated @Nullable public static java.lang.String computeDetail(@NonNull org.eclipse.emf.common.util.URI variableURI, @NonNull VMEvaluationEnvironment fEvalEnv)
@NonNull public static org.eclipse.emf.common.util.URI createURI(@NonNull java.lang.String[] varPath)
@NonNull public static org.eclipse.emf.common.util.URI createURI(@NonNull java.lang.String[] varPath, int endIndex)
@NonNull public static java.util.List<org.eclipse.emf.ecore.EStructuralFeature> getAllFeatures(@NonNull org.eclipse.emf.ecore.EClass eClass)
public static java.lang.String getRootVarName(org.eclipse.emf.common.util.URI variableURI)
@NonNull public static java.util.List<VMVariableData> getVariables(@NonNull VMEvaluationEnvironment evalEnv)
@NonNull public static java.lang.String[] getVariablePath(@NonNull org.eclipse.emf.common.util.URI variableURI)
@NonNull public static VariableFinder newInstance(@NonNull VMEvaluationEnvironment vmEvaluationEnvironment, boolean isStoreValues)
@NonNull public static org.eclipse.emf.common.util.URI parseURI(java.lang.String variableURI) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
@Deprecated public static VMResponse process(@NonNull VMVariableRequest request, @NonNull java.util.List<UnitLocation> stack, @NonNull VMEvaluationEnvironment vmEvaluationEnvironment)
@Deprecated public static void setValueAndType(@NonNull VMVariableData variable, @Nullable java.lang.Object value, @Nullable Type optDeclaredType, @NonNull EvaluationEnvironment evalEnv)
@Deprecated public static void setValueAndType(@NonNull VMVariableData variable, @Nullable java.lang.Object value, @Nullable org.eclipse.emf.ecore.EClassifier optDeclaredType, @NonNull EvaluationEnvironment evalEnv)
@Deprecated public static void setValueAndType(@NonNull VMVariableData variable, @Nullable java.lang.Object value, @Nullable java.lang.String declaredTypeName, @NonNull EvaluationEnvironment evalEnv)
public void collectChildVars(java.lang.Object root, @NonNull java.lang.String[] parentPath, @Nullable java.lang.String containerType, @NonNull java.util.List<VMVariableData> result)
@Nullable public java.lang.String computeDetail(@NonNull org.eclipse.emf.common.util.URI variableURI)
@NonNull protected VMVariableData createContainerVariable(java.lang.Object value, @NonNull org.eclipse.emf.common.util.URI uri)
public void find(@NonNull java.lang.String[] objectPath, boolean fetchChildVariables, @NonNull java.util.List<VMVariableData> result)
protected java.lang.Object findChildObject(java.lang.Object parentObj, @Nullable java.lang.String optParentDeclaredType, @NonNull java.lang.String[] varTreePath, int pathIndex)
protected java.lang.String getDeclaredType(java.lang.Object valueObject)
protected static java.lang.String getTermVariableName(@NonNull OCLExpression oclExpression)
public java.lang.Object getValue(org.eclipse.emf.ecore.EStructuralFeature feature, org.eclipse.emf.ecore.EObject target)
@Nullable protected VMVariableData getVariable(@NonNull TypedElement variable, @Nullable java.lang.Object pcObject)
@NonNull public java.util.List<VMVariableData> getVariables()
public java.lang.Object navigateProperty(org.eclipse.emf.ecore.EStructuralFeature property, java.util.List<?> qualifiers, java.lang.Object target) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
@Nullable public VMResponse process(@NonNull VMVariableRequest request, @NonNull java.util.List<UnitLocation> stack)
public void setValueAndType(@NonNull VMVariableData variable, @Nullable java.lang.Object value, @Nullable Type optDeclaredType)
public void setValueAndType(@NonNull VMVariableData variable, @Nullable java.lang.Object value, @Nullable java.lang.String declaredTypeName)
public java.lang.Object superNavigateProperty(org.eclipse.emf.ecore.EStructuralFeature property, java.util.List<?> qualifiers, java.lang.Object target) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException