01: package org.gui4j.core.call;
02:
03: import java.io.Serializable;
04: import java.util.Map;
05:
06: import org.gui4j.exception.ErrorTags;
07:
08: abstract class Gui4jAccessImpl implements Serializable, ErrorTags {
09: /**
10: * Returns <code>true</code> if the value returned by <code>getValue(Object)</code> never
11: * changes
12: * @return boolean
13: */
14: public abstract boolean isConstant();
15:
16: abstract Object getValue(Object baseInstance, Object this Instance,
17: Map paramMap);
18:
19: abstract Class getResultClass();
20:
21: protected int minIndex(String str, String chars, int startIdx) {
22: int i = -1;
23: for (int j = 0; j < chars.length(); j++) {
24: char c = chars.charAt(j);
25: int idx = str.indexOf(c, startIdx);
26: if (idx != -1 && (idx < i || (i == -1))) {
27: i = idx;
28: }
29: }
30: return i;
31: }
32:
33: }
|