Class Type
java.lang.Object
org.biopax.paxtools.pattern.constraint.ConstraintAdapter
org.biopax.paxtools.pattern.constraint.Type
- All Implemented Interfaces:
Constraint
Checks if a variable is a specific type or its subclass.
- Author:
- Ozgun Babur
-
Field Summary
Fields inherited from class org.biopax.paxtools.pattern.constraint.ConstraintAdapter
blacklist, size -
Constructor Summary
ConstructorsConstructorDescriptionType(Class<? extends BioPAXElement> clazz) Constructor with the desired class. -
Method Summary
Methods inherited from class org.biopax.paxtools.pattern.constraint.ConstraintAdapter
assertIndLength, canGenerate, convertStepDirection, findDirectionInCatalysis, findDirectionInPathways, generate, getCatalysisDirection, getControlChain, getConvParticipants, getDirection, getDirection, getDirection, getDirection, getVariableSize, setSize
-
Constructor Details
-
Type
Constructor with the desired class.- Parameters:
clazz- desired class
-
-
Method Details
-
satisfies
Checks if the element is assignable to a variable of the desired type.- Specified by:
satisfiesin interfaceConstraint- Overrides:
satisfiesin classConstraintAdapter- Parameters:
match- current pattern matchind- mapped indices- Returns:
- true if the element is assignable to a variable of the desired type
-