Package org.spongepowered.asm.util
Class ConstraintParser
java.lang.Object
org.spongepowered.asm.util.ConstraintParser
Parser for constraints
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ConstraintParser.ConstraintParse the supplied expression as a constraint and returns a new Constraint.static ConstraintParser.Constraintparse(org.objectweb.asm.tree.AnnotationNode annotation) Parse a constraint expression on the supplied annotation as a constraint and returns a new Constraint.
-
Method Details
-
parse
Parse the supplied expression as a constraint and returns a new Constraint. ReturnsConstraintParser.Constraint.NONEif the constraint could not be parsed or is empty.- Parameters:
expr- constraint expression to parse- Returns:
- parsed constraint
-
parse
Parse a constraint expression on the supplied annotation as a constraint and returns a new Constraint. ReturnsConstraintParser.Constraint.NONEif the constraint could not be parsed or is empty.- Parameters:
annotation- annotation containing the constraint expression to parse- Returns:
- parsed constraint
-