Package org.apache.bcel.util
Class Args
java.lang.Object
org.apache.bcel.util.Args
Argument validation.
- Since:
- 6.7.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
Requires a specific value.static int
Requires a 0 value.static int
Requires a u1 value.static int
Requires a u2 value of at leastmin
and not abovemax
.static int
Requires a u2 value of at leastmin
.static int
Requires a u2 value.static int
Requires a u4 value of at leastmin
.static int
Requires a u4 value.
-
Constructor Details
-
Args
public Args()
-
-
Method Details
-
require
Requires a specific value.- Parameters:
value
- The value to test.required
- The required value.message
- The message prefix- Returns:
- The value to test.
-
require0
Requires a 0 value.- Parameters:
value
- The value to test.message
- The message prefix- Returns:
- The value to test.
-
requireU1
Requires a u1 value.- Parameters:
value
- The value to test.message
- The message prefix- Returns:
- The value to test.
-
requireU2
Requires a u2 value of at leastmin
and not abovemax
.- Parameters:
value
- The value to test.min
- The minimum required u2 value.max
- The maximum required u2 value.message
- The message prefix- Returns:
- The value to test.
-
requireU2
Requires a u2 value of at leastmin
.- Parameters:
value
- The value to test.min
- The minimum required value.message
- The message prefix- Returns:
- The value to test.
-
requireU2
Requires a u2 value.- Parameters:
value
- The value to test.message
- The message prefix- Returns:
- The value to test.
-
requireU4
Requires a u4 value of at leastmin
.- Parameters:
value
- The value to test.min
- The minimum required value.message
- The message prefix- Returns:
- The value to test.
-
requireU4
Requires a u4 value.- Parameters:
value
- The value to test.message
- The message prefix- Returns:
- The value to test.
-