protected boolean matchingBranchOffsets(int offset, int branchOffset1, int branchOffset2) { int argumentIndex = branchOffset2 - X; if (argumentIndex < 0) { // Check the literal argument. return branchOffset1 == branchOffset2; } else if (!isMatchingArgumentIndex(argumentIndex)) { // Store a wildcard argument. setMatchingArgument(argumentIndex, offset + branchOffset1); return true; } else { // Check the previously stored wildcard argument. return matchedArguments[argumentIndex] == offset + branchOffset1; } }
protected boolean matchingArguments(int argument1, int argument2) { int argumentIndex = argument2 - X; if (argumentIndex < 0) { // Check the literal argument. return argument1 == argument2; } else if (!isMatchingArgumentIndex(argumentIndex)) { // Store the wildcard argument. setMatchingArgument(argumentIndex, argument1); return true; } else { // Check the previously stored wildcard argument. return matchedArguments[argumentIndex] == argument1; } }
protected boolean matchingArguments(int argument1, int argument2) { int argumentIndex = argument2 - X; if (argumentIndex < 0) { // Check the literal argument. return argument1 == argument2; } else if (!isMatchingArgumentIndex(argumentIndex)) { // Store the wildcard argument. setMatchingArgument(argumentIndex, argument1); return true; } else { // Check the previously stored wildcard argument. return matchedArguments[argumentIndex] == argument1; } }
protected boolean matchingArguments(int argument1, int argument2) { int argumentIndex = argument2 - X; if (argumentIndex < 0) { // Check the literal argument. return argument1 == argument2; } else if (!isMatchingArgumentIndex(argumentIndex)) { // Store the wildcard argument. setMatchingArgument(argumentIndex, argument1); return true; } else { // Check the previously stored wildcard argument. return matchedArguments[argumentIndex] == argument1; } }
protected boolean matchingBranchOffsets(int offset, int branchOffset1, int branchOffset2) { int argumentIndex = branchOffset2 - X; if (argumentIndex < 0) { // Check the literal argument. return branchOffset1 == branchOffset2; } else if (!isMatchingArgumentIndex(argumentIndex)) { // Store a wildcard argument. setMatchingArgument(argumentIndex, offset + branchOffset1); return true; } else { // Check the previously stored wildcard argument. return matchedArguments[argumentIndex] == offset + branchOffset1; } }
protected boolean matchingBranchOffsets(int offset, int branchOffset1, int branchOffset2) { int argumentIndex = branchOffset2 - X; if (argumentIndex < 0) { // Check the literal argument. return branchOffset1 == branchOffset2; } else if (!isMatchingArgumentIndex(argumentIndex)) { // Store a wildcard argument. setMatchingArgument(argumentIndex, offset + branchOffset1); return true; } else { // Check the previously stored wildcard argument. return matchedArguments[argumentIndex] == offset + branchOffset1; } }