public final class ConstraintParser
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ConstraintParser.Constraint
A constraint.
|
| Modifier and Type | Method and Description |
|---|---|
static ConstraintParser.Constraint |
parse(org.objectweb.asm.tree.AnnotationNode annotation)
Parse a constraint expression on the supplied annotation as a constraint
and returns a new Constraint.
|
static ConstraintParser.Constraint |
parse(java.lang.String expr)
Parse the supplied expression as a constraint and returns a new
Constraint.
|
public static ConstraintParser.Constraint parse(java.lang.String expr)
ConstraintParser.Constraint.NONE if the constraint could not
be parsed or is empty.expr - constraint expression to parsepublic static ConstraintParser.Constraint parse(org.objectweb.asm.tree.AnnotationNode annotation)
ConstraintParser.Constraint.NONE if the
constraint could not be parsed or is empty.annotation - annotation containing the constraint expression to
parse