Package crypto.typestate
Class LabeledMatcherTransition
- java.lang.Object
-
- typestate.finiteautomata.Transition
-
- typestate.finiteautomata.MatcherTransition
-
- crypto.typestate.LabeledMatcherTransition
-
- All Implemented Interfaces:
typestate.finiteautomata.ITransition
public class LabeledMatcherTransition extends typestate.finiteautomata.MatcherTransition
-
-
Constructor Summary
Constructors Constructor Description LabeledMatcherTransition(typestate.finiteautomata.State from, Collection<CrySLMethod> methods, typestate.finiteautomata.State to)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)Optional<CrySLMethod>getMatching(boomerang.scene.DeclaredMethod declaredMethod)Return theCrySLMethod's that match the given method.Collection<CrySLMethod>getMethods()inthashCode()booleanmatches(boomerang.scene.DeclaredMethod declaredMethod)StringtoString()
-
-
-
Constructor Detail
-
LabeledMatcherTransition
public LabeledMatcherTransition(typestate.finiteautomata.State from, Collection<CrySLMethod> methods, typestate.finiteautomata.State to)
-
-
Method Detail
-
matches
public boolean matches(boomerang.scene.DeclaredMethod declaredMethod)
- Overrides:
matchesin classtypestate.finiteautomata.MatcherTransition
-
getMatching
public Optional<CrySLMethod> getMatching(boomerang.scene.DeclaredMethod declaredMethod)
Return theCrySLMethod's that match the given method. As the method is taken from a statement, we need to apply the matching logic defined here, to get theCrySLMethods that were resolved to the matchingDeclaredMethods.- Parameters:
declaredMethod- the given method- Returns:
- The
CrySLMethod's matching the given declared method.
-
getMethods
public Collection<CrySLMethod> getMethods()
-
toString
public String toString()
- Overrides:
toStringin classtypestate.finiteautomata.MatcherTransition
-
equals
public boolean equals(Object other)
- Overrides:
equalsin classtypestate.finiteautomata.MatcherTransition
-
hashCode
public int hashCode()
- Overrides:
hashCodein classtypestate.finiteautomata.MatcherTransition
-
-