MCPcopy Create free account
hub / github.com/PCGen/pcgen / setOperator

Method setOperator

code/src/java/pcgen/core/prereq/Prerequisite.java:155–158  ·  view source on GitHub ↗

Sets an operator attribute from the name of the operator. @param operator The name of the operator to set in the object. @throws PrerequisiteException throws an exception if it can't locate the operator.

(final String operator)

Source from the content-addressed store, hash-verified

153 * @throws PrerequisiteException throws an exception if it can't locate the operator.
154 */
155 public void setOperator(final String operator) throws PrerequisiteException
156 {
157 this.operator = PrerequisiteOperator.getOperatorByName(operator);
158 }
159
160 /**
161 * @param operator The operator to set.

Callers 15

setUpMethod · 0.95
test990007_1Method · 0.95
test990007_2Method · 0.95
test990007_3Method · 0.95
test990007_4Method · 0.95
test990007_5Method · 0.95
testBadOperandMethod · 0.95
testTypeMethod · 0.95
testWieldMethod · 0.95
testNamedSubClassMethod · 0.95

Calls 1

getOperatorByNameMethod · 0.95

Tested by 15

setUpMethod · 0.76
test990007_1Method · 0.76
test990007_2Method · 0.76
test990007_3Method · 0.76
test990007_4Method · 0.76
test990007_5Method · 0.76
testBadOperandMethod · 0.76
testTypeMethod · 0.76
testWieldMethod · 0.76
testNamedSubClassMethod · 0.76