Changeset 12513
- Timestamp:
- 03/02/10 22:35:36 (14 years ago)
- Location:
- trunk/abcl/src/org/armedbear/lisp
- Files:
-
- 49 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abcl/src/org/armedbear/lisp/ArithmeticError.java
r12288 r12513 101 101 } 102 102 103 privatefinal LispObject getOperation()103 final LispObject getOperation() 104 104 { 105 105 return getInstanceSlotValue(Symbol.OPERATION); … … 112 112 } 113 113 114 privatefinal LispObject getOperands()114 final LispObject getOperands() 115 115 { 116 116 return getInstanceSlotValue(Symbol.OPERANDS); -
trunk/abcl/src/org/armedbear/lisp/AutoloadMacro.java
r12288 r12513 48 48 } 49 49 50 privatestatic void installAutoloadMacro(Symbol symbol, String fileName)50 static void installAutoloadMacro(Symbol symbol, String fileName) 51 51 52 52 { -
trunk/abcl/src/org/armedbear/lisp/AutoloadedFunctionProxy.java
r12478 r12513 47 47 * proxy and restored while loading the actual function. 48 48 */ 49 final static privateSymbol[] symsToSave =49 final static Symbol[] symsToSave = 50 50 new Symbol[] 51 51 { -
trunk/abcl/src/org/armedbear/lisp/BroadcastStream.java
r12362 r12513 38 38 public final class BroadcastStream extends Stream 39 39 { 40 privatefinal Stream[] streams;41 42 privateBroadcastStream(Stream[] streams)40 final Stream[] streams; 41 42 BroadcastStream(Stream[] streams) 43 43 { 44 44 super(Symbol.BROADCAST_STREAM); -
trunk/abcl/src/org/armedbear/lisp/ByteArrayOutputStream.java
r12414 r12513 45 45 } 46 46 47 privateByteArrayOutputStream(LispObject elementType)47 ByteArrayOutputStream(LispObject elementType) 48 48 { 49 49 super(Symbol.SYSTEM_STREAM); -
trunk/abcl/src/org/armedbear/lisp/Closure.java
r12398 r12513 1027 1027 public static class Parameter 1028 1028 { 1029 privatefinal Symbol var;1030 privatefinal LispObject initForm;1031 privatefinal LispObject initVal;1032 privatefinal LispObject svar;1029 final Symbol var; 1030 final LispObject initForm; 1031 final LispObject initVal; 1032 final LispObject svar; 1033 1033 private final int type; 1034 privatefinal Symbol keyword;1034 final Symbol keyword; 1035 1035 1036 1036 public Parameter(Symbol var) -
trunk/abcl/src/org/armedbear/lisp/ConcatenatedStream.java
r12362 r12513 38 38 public final class ConcatenatedStream extends Stream 39 39 { 40 privateLispObject streams;41 42 privateConcatenatedStream(LispObject streams)40 LispObject streams; 41 42 ConcatenatedStream(LispObject streams) 43 43 { 44 44 super(Symbol.CONCATENATED_STREAM); -
trunk/abcl/src/org/armedbear/lisp/Do.java
r12460 r12513 67 67 }; 68 68 69 privatestatic final LispObject _do(LispObject args, Environment env,69 static final LispObject _do(LispObject args, Environment env, 70 70 boolean sequential) 71 71 -
trunk/abcl/src/org/armedbear/lisp/Environment.java
r12288 r12513 38 38 public final class Environment extends LispObject 39 39 { 40 privateBinding vars;41 privateFunctionBinding lastFunctionBinding;40 Binding vars; 41 FunctionBinding lastFunctionBinding; 42 42 private Binding blocks; 43 43 private Binding tags; -
trunk/abcl/src/org/armedbear/lisp/FillPointerOutputStream.java
r12362 r12513 38 38 public final class FillPointerOutputStream extends Stream 39 39 { 40 privateComplexString string;40 ComplexString string; 41 41 42 privateFillPointerOutputStream(ComplexString string)42 FillPointerOutputStream(ComplexString string) 43 43 { 44 44 super(Symbol.SYSTEM_STREAM); … … 70 70 }; 71 71 72 privateclass Writer extends java.io.Writer72 class Writer extends java.io.Writer 73 73 { 74 74 @Override -
trunk/abcl/src/org/armedbear/lisp/FloatFunctions.java
r12290 r12513 199 199 }; 200 200 201 privatestatic final Fixnum FIXNUM_24 = Fixnum.getInstance(24);202 privatestatic final Fixnum FIXNUM_53 = Fixnum.getInstance(53);201 static final Fixnum FIXNUM_24 = Fixnum.getInstance(24); 202 static final Fixnum FIXNUM_53 = Fixnum.getInstance(53); 203 203 204 204 // ### float-digits -
trunk/abcl/src/org/armedbear/lisp/HashTableFunctions.java
r12290 r12513 38 38 public final class HashTableFunctions 39 39 { 40 privatestatic final LispObject FUNCTION_EQ =40 static final LispObject FUNCTION_EQ = 41 41 Symbol.EQ.getSymbolFunction(); 42 privatestatic final LispObject FUNCTION_EQL =42 static final LispObject FUNCTION_EQL = 43 43 Symbol.EQL.getSymbolFunction(); 44 privatestatic final LispObject FUNCTION_EQUAL =44 static final LispObject FUNCTION_EQUAL = 45 45 Symbol.EQUAL.getSymbolFunction(); 46 privatestatic final LispObject FUNCTION_EQUALP =46 static final LispObject FUNCTION_EQUALP = 47 47 Symbol.EQUALP.getSymbolFunction(); 48 48 -
trunk/abcl/src/org/armedbear/lisp/JHandler.java
r12290 r12513 42 42 public final class JHandler 43 43 { 44 privatestatic final Map<Object,Map<String,Entry>> table =44 static final Map<Object,Map<String,Entry>> table = 45 45 new WeakHashMap<Object,Map<String,Entry>>(); 46 46 -
trunk/abcl/src/org/armedbear/lisp/JProxy.java
r12290 r12513 45 45 public final class JProxy 46 46 { 47 privatestatic final Map<Object,Entry> table = new WeakHashMap<Object,Entry>();47 static final Map<Object,Entry> table = new WeakHashMap<Object,Entry>(); 48 48 49 49 // ### %jnew-proxy interface &rest method-names-and-defs … … 136 136 * A weak map associating each proxy instance with a "Lisp-this" object. 137 137 */ 138 privatestatic final Map<Object, LispObject> proxyMap = new WeakHashMap<Object, LispObject>();138 static final Map<Object, LispObject> proxyMap = new WeakHashMap<Object, LispObject>(); 139 139 140 140 public static class LispInvocationHandler implements InvocationHandler { … … 239 239 }; 240 240 241 privatestatic LispObject toLispObject(Object obj) {241 static LispObject toLispObject(Object obj) { 242 242 return (obj instanceof LispObject) ? (LispObject) obj : new JavaObject(obj); 243 243 } -
trunk/abcl/src/org/armedbear/lisp/Java.java
r12431 r12513 50 50 public final class Java 51 51 { 52 privatestatic final Map<Class,Symbol> registeredExceptions =52 static final Map<Class,Symbol> registeredExceptions = 53 53 new HashMap<Class,Symbol>(); 54 54 55 55 private static final LispClass java_exception = LispClass.findClass(Symbol.JAVA_EXCEPTION); 56 56 57 privatestatic boolean isJavaException(LispClass lc)57 static boolean isJavaException(LispClass lc) 58 58 { 59 59 return lc.subclassp(java_exception); … … 94 94 }; 95 95 96 privatestatic Symbol getCondition(Class cl)96 static Symbol getCondition(Class cl) 97 97 { 98 98 Class o = classForName("java.lang.Object"); … … 147 147 // 148 148 149 privatestatic final LispObject jfield(Primitive fun, LispObject[] args, boolean translate)149 static final LispObject jfield(Primitive fun, LispObject[] args, boolean translate) 150 150 151 151 { … … 348 348 }; 349 349 350 privatestatic final LispObject jstatic(Primitive fun, LispObject[] args, boolean translate)350 static final LispObject jstatic(Primitive fun, LispObject[] args, boolean translate) 351 351 352 352 { … … 512 512 }; 513 513 514 privatestatic final LispObject jarray_ref(Primitive fun, LispObject[] args, boolean translate)514 static final LispObject jarray_ref(Primitive fun, LispObject[] args, boolean translate) 515 515 516 516 { … … 624 624 }; 625 625 626 privatestatic LispObject jcall(Primitive fun, LispObject[] args, boolean translate)626 static LispObject jcall(Primitive fun, LispObject[] args, boolean translate) 627 627 628 628 { … … 765 765 } 766 766 767 privatestatic Constructor findConstructor(Class<?> c, LispObject[] args) throws NoSuchMethodException {767 static Constructor findConstructor(Class<?> c, LispObject[] args) throws NoSuchMethodException { 768 768 int argCount = args.length - 1; 769 769 Object[] javaArgs = translateMethodArguments(args, 1); … … 1016 1016 }; 1017 1017 1018 privatestatic PropertyDescriptor getPropertyDescriptor(Object obj, LispObject propertyName) throws IntrospectionException {1018 static PropertyDescriptor getPropertyDescriptor(Object obj, LispObject propertyName) throws IntrospectionException { 1019 1019 String prop = ((AbstractString) propertyName).getStringValue(); 1020 1020 BeanInfo beanInfo = Introspector.getBeanInfo(obj.getClass()); … … 1029 1029 } 1030 1030 1031 privatestatic Class classForName(String className)1031 static Class classForName(String className) 1032 1032 { 1033 1033 try { … … 1047 1047 1048 1048 // Supports Java primitive types too. 1049 privatestatic Class javaClass(LispObject obj)1049 static Class javaClass(LispObject obj) 1050 1050 { 1051 1051 if (obj instanceof AbstractString || obj instanceof Symbol) { … … 1093 1093 } 1094 1094 1095 privatestatic final String getMessage(Throwable t)1095 static final String getMessage(Throwable t) 1096 1096 { 1097 1097 String message = t.getMessage(); -
trunk/abcl/src/org/armedbear/lisp/JavaObject.java
r12431 r12513 43 43 44 44 public final class JavaObject extends LispObject { 45 privatefinal Object obj;45 final Object obj; 46 46 private final Class<?> intendedClass; 47 47 -
trunk/abcl/src/org/armedbear/lisp/Layout.java
r12481 r12513 41 41 public final EqHashTable slotTable; 42 42 43 privatefinal LispObject[] slotNames;44 privatefinal LispObject sharedSlots;43 final LispObject[] slotNames; 44 final LispObject sharedSlots; 45 45 46 46 private boolean invalid; … … 75 75 76 76 // Copy constructor. 77 privateLayout(Layout oldLayout)77 Layout(Layout oldLayout) 78 78 { 79 79 lispClass = oldLayout.getLispClass(); -
trunk/abcl/src/org/armedbear/lisp/Lisp.java
r12461 r12513 2029 2029 2030 2030 // The compiler's object table. 2031 privatestatic final Hashtable<String,LispObject> objectTable =2031 static final Hashtable<String,LispObject> objectTable = 2032 2032 new Hashtable<String,LispObject>(); 2033 2033 … … 2621 2621 2622 2622 public static final LispObject UNBOUND_VALUE = new unboundValue(); 2623 privatestatic class unboundValue extends LispObject2623 static class unboundValue extends LispObject 2624 2624 { 2625 2625 @Override … … 2631 2631 2632 2632 public static final LispObject NULL_VALUE = new nullValue(); 2633 privatestatic class nullValue extends LispObject2633 static class nullValue extends LispObject 2634 2634 { 2635 2635 @Override -
trunk/abcl/src/org/armedbear/lisp/LispCharacter.java
r12431 r12513 130 130 } 131 131 132 privateboolean isStandardChar()132 boolean isStandardChar() 133 133 { 134 134 if (value >= ' ' && value < 127) … … 683 683 } 684 684 685 privatestatic final char[] UPPER_CASE_CHARS = new char[128];685 static final char[] UPPER_CASE_CHARS = new char[128]; 686 686 687 687 static … … 698 698 } 699 699 700 privatestatic final char[] LOWER_CASE_CHARS = new char[128];700 static final char[] LOWER_CASE_CHARS = new char[128]; 701 701 702 702 static -
trunk/abcl/src/org/armedbear/lisp/LispThread.java
r12298 r12513 42 42 public final class LispThread extends LispObject 43 43 { 44 privatestatic boolean use_fast_calls = false;44 static boolean use_fast_calls = false; 45 45 46 46 // use a concurrent hashmap: we may want to add threads 47 47 // while at the same time iterating the hash 48 final privatestatic ConcurrentHashMap<Thread,LispThread> map =48 final static ConcurrentHashMap<Thread,LispThread> map = 49 49 new ConcurrentHashMap<Thread,LispThread>(); 50 50 … … 67 67 } 68 68 69 privatefinal Thread javaThread;69 final Thread javaThread; 70 70 private boolean destroyed; 71 privatefinal LispObject name;71 final LispObject name; 72 72 public LispObject[] _values; 73 73 private boolean threadInterrupted; 74 74 private LispObject pending = NIL; 75 75 76 privateLispThread(Thread javaThread)76 LispThread(Thread javaThread) 77 77 { 78 78 this.javaThread = javaThread; … … 80 80 } 81 81 82 privateLispThread(final Function fun, LispObject name)82 LispThread(final Function fun, LispObject name) 83 83 { 84 84 Runnable r = new Runnable() { … … 142 142 } 143 143 144 privatefinal synchronized boolean isInterrupted()144 final synchronized boolean isInterrupted() 145 145 { 146 146 return threadInterrupted; 147 147 } 148 148 149 privatefinal synchronized void setDestroyed(boolean b)149 final synchronized void setDestroyed(boolean b) 150 150 { 151 151 destroyed = b; 152 152 } 153 153 154 privatefinal synchronized void interrupt(LispObject function, LispObject args)154 final synchronized void interrupt(LispObject function, LispObject args) 155 155 { 156 156 pending = new Cons(args, pending); … … 160 160 } 161 161 162 privatefinal synchronized void processThreadInterrupts()162 final synchronized void processThreadInterrupts() 163 163 164 164 { -
trunk/abcl/src/org/armedbear/lisp/Load.java
r12469 r12513 325 325 // ### *fasl-version* 326 326 // internal symbol 327 privatestatic final Symbol _FASL_VERSION_ =327 static final Symbol _FASL_VERSION_ = 328 328 exportConstant("*FASL-VERSION*", PACKAGE_SYS, Fixnum.getInstance(35)); 329 329 … … 531 531 } 532 532 533 privatestatic final LispObject faslLoadStream(LispThread thread)533 static final LispObject faslLoadStream(LispThread thread) 534 534 { 535 535 Stream in = (Stream) _LOAD_STREAM_.symbolValue(thread); … … 590 590 } 591 591 592 privatestatic final LispObject load(LispObject filespec,592 static final LispObject load(LispObject filespec, 593 593 LispObject verbose, 594 594 LispObject print, -
trunk/abcl/src/org/armedbear/lisp/MathFunctions.java
r12298 r12513 48 48 }; 49 49 50 privatestatic LispObject sin(LispObject arg)50 static LispObject sin(LispObject arg) 51 51 { 52 52 if (arg instanceof DoubleFloat) … … 75 75 }; 76 76 77 privatestatic LispObject cos(LispObject arg)77 static LispObject cos(LispObject arg) 78 78 { 79 79 if (arg instanceof DoubleFloat) … … 115 115 }; 116 116 117 privatestatic LispObject asin(LispObject arg)117 static LispObject asin(LispObject arg) 118 118 { 119 119 if (arg instanceof SingleFloat) { … … 156 156 }; 157 157 158 privatestatic LispObject acos(LispObject arg)158 static LispObject acos(LispObject arg) 159 159 { 160 160 if (arg instanceof DoubleFloat) { … … 226 226 }; 227 227 228 privatestatic LispObject atan(LispObject arg)228 static LispObject atan(LispObject arg) 229 229 { 230 230 if (arg instanceof Complex) { … … 260 260 }; 261 261 262 privatestatic LispObject sinh(LispObject arg)262 static LispObject sinh(LispObject arg) 263 263 { 264 264 if (arg instanceof Complex) { … … 298 298 }; 299 299 300 privatestatic LispObject cosh(LispObject arg)300 static LispObject cosh(LispObject arg) 301 301 { 302 302 if (arg instanceof Complex) { … … 353 353 }; 354 354 355 privatestatic LispObject asinh(LispObject arg)355 static LispObject asinh(LispObject arg) 356 356 { 357 357 if (arg instanceof Complex) { … … 386 386 }; 387 387 388 privatestatic LispObject acosh(LispObject arg)388 static LispObject acosh(LispObject arg) 389 389 { 390 390 if (arg instanceof Complex) { … … 423 423 }; 424 424 425 privatestatic LispObject atanh(LispObject arg)425 static LispObject atanh(LispObject arg) 426 426 { 427 427 if (arg instanceof Complex) { … … 455 455 }; 456 456 457 privatestatic LispObject cis(LispObject arg)457 static LispObject cis(LispObject arg) 458 458 { 459 459 if (arg.realp()) … … 472 472 }; 473 473 474 privatestatic LispObject exp(LispObject arg)474 static LispObject exp(LispObject arg) 475 475 { 476 476 if (arg.realp()) { … … 500 500 }; 501 501 502 privatestatic final LispObject sqrt(LispObject obj)502 static final LispObject sqrt(LispObject obj) 503 503 { 504 504 if (obj instanceof DoubleFloat) { … … 553 553 }; 554 554 555 privatestatic final LispObject log(LispObject obj)555 static final LispObject log(LispObject obj) 556 556 { 557 557 if (obj.realp() && !obj.minusp()) { … … 707 707 * @return number or signals an appropriate error 708 708 */ 709 privatefinal static LispObject OverUnderFlowCheck(LispObject number)709 final static LispObject OverUnderFlowCheck(LispObject number) 710 710 711 711 { … … 774 774 * @param power An integer (fixnum or bignum) value 775 775 */ 776 privatestatic final LispObject intexp(LispObject base, LispObject power)776 static final LispObject intexp(LispObject base, LispObject power) 777 777 778 778 { -
trunk/abcl/src/org/armedbear/lisp/Pathname.java
r12506 r12513 850 850 } 851 851 852 privatestatic final void checkCaseArgument(LispObject arg) {852 static final void checkCaseArgument(LispObject arg) { 853 853 if (arg != Keyword.COMMON && arg != Keyword.LOCAL) { 854 854 type_error(arg, list(Symbol.MEMBER, Keyword.COMMON, … … 1030 1030 } 1031 1031 1032 privatestatic final Pathname _makePathname(LispObject[] args) {1032 static final Pathname _makePathname(LispObject[] args) { 1033 1033 if (args.length % 2 != 0) { 1034 1034 error(new ProgramError("Odd number of keyword arguments.")); -
trunk/abcl/src/org/armedbear/lisp/Primitives.java
r12481 r12513 346 346 347 347 // ### eql 348 privatestatic final Primitive EQL = new pf_eql();348 static final Primitive EQL = new pf_eql(); 349 349 private static final class pf_eql extends Primitive { 350 350 pf_eql() { … … 1719 1719 internSpecial("*SIMPLE-FORMAT-FUNCTION*", PACKAGE_SYS, _FORMAT); 1720 1720 1721 privatestatic void checkRedefinition(LispObject arg)1721 static void checkRedefinition(LispObject arg) 1722 1722 1723 1723 { … … 4313 4313 }; 4314 4314 4315 privatestatic final LispObject list_subseq(LispObject list, int start,4315 static final LispObject list_subseq(LispObject list, int start, 4316 4316 int end) 4317 4317 … … 4522 4522 4523 4523 // ### list-delete-eq item list => result-list 4524 privatestatic final Primitive LIST_DELETE_EQ = new pf_list_delete_eq();4524 static final Primitive LIST_DELETE_EQ = new pf_list_delete_eq(); 4525 4525 private static final class pf_list_delete_eq extends Primitive { 4526 4526 pf_list_delete_eq() { … … 4566 4566 4567 4567 // ### list-delete-eql item list => result-list 4568 privatestatic final Primitive LIST_DELETE_EQL = new pf_list_delete_eql();4568 static final Primitive LIST_DELETE_EQL = new pf_list_delete_eql(); 4569 4569 private static final class pf_list_delete_eql extends Primitive { 4570 4570 pf_list_delete_eql() { -
trunk/abcl/src/org/armedbear/lisp/Profiler.java
r12290 r12513 38 38 public class Profiler 39 39 { 40 privatestatic int sleep = 1;40 static int sleep = 1; 41 41 42 42 // ### %start-profiler -
trunk/abcl/src/org/armedbear/lisp/Readtable.java
r12431 r12513 136 136 137 137 // FIXME synchronization 138 privatestatic void copyReadtable(Readtable from, Readtable to)138 static void copyReadtable(Readtable from, Readtable to) 139 139 { 140 140 Iterator<Character> charIterator = from.syntax.getCharIterator(); … … 253 253 } 254 254 255 privateLispObject getMacroCharacter(char c)255 LispObject getMacroCharacter(char c) 256 256 { 257 257 LispObject function = getReaderMacroFunction(c); … … 272 272 } 273 273 274 privatevoid makeDispatchMacroCharacter(char dispChar, LispObject non_terminating_p)274 void makeDispatchMacroCharacter(char dispChar, LispObject non_terminating_p) 275 275 { 276 276 byte syntaxType; -
trunk/abcl/src/org/armedbear/lisp/RuntimeClass.java
r12298 r12513 42 42 public class RuntimeClass 43 43 { 44 privatestatic Map<String,RuntimeClass> classes = new HashMap<String,RuntimeClass>();44 static Map<String,RuntimeClass> classes = new HashMap<String,RuntimeClass>(); 45 45 46 46 private Map<String,Function> methods = new HashMap<String,Function>(); … … 145 145 } 146 146 147 privatevoid addLispMethod(String methodName, Function def) {147 void addLispMethod(String methodName, Function def) { 148 148 methods.put(methodName, def); 149 149 } -
trunk/abcl/src/org/armedbear/lisp/ShellCommand.java
r12431 r12513 66 66 } 67 67 68 privatefinal int exitValue()68 final int exitValue() 69 69 { 70 70 return exitValue; 71 71 } 72 72 73 privatevoid processOutput(String s)73 void processOutput(String s) 74 74 { 75 75 if (outputStream != null) -
trunk/abcl/src/org/armedbear/lisp/SimpleBitVector.java
r12288 r12513 248 248 } 249 249 250 privateSimpleBitVector and(SimpleBitVector v, SimpleBitVector result)250 SimpleBitVector and(SimpleBitVector v, SimpleBitVector result) 251 251 { 252 252 if (result == null) … … 257 257 } 258 258 259 privateSimpleBitVector ior(SimpleBitVector v, SimpleBitVector result)259 SimpleBitVector ior(SimpleBitVector v, SimpleBitVector result) 260 260 { 261 261 if (result == null) … … 266 266 } 267 267 268 privateSimpleBitVector xor(SimpleBitVector v, SimpleBitVector result)268 SimpleBitVector xor(SimpleBitVector v, SimpleBitVector result) 269 269 { 270 270 if (result == null) … … 275 275 } 276 276 277 privateSimpleBitVector eqv(SimpleBitVector v, SimpleBitVector result)277 SimpleBitVector eqv(SimpleBitVector v, SimpleBitVector result) 278 278 { 279 279 if (result == null) … … 284 284 } 285 285 286 privateSimpleBitVector nand(SimpleBitVector v, SimpleBitVector result)286 SimpleBitVector nand(SimpleBitVector v, SimpleBitVector result) 287 287 { 288 288 if (result == null) … … 293 293 } 294 294 295 privateSimpleBitVector nor(SimpleBitVector v, SimpleBitVector result)295 SimpleBitVector nor(SimpleBitVector v, SimpleBitVector result) 296 296 { 297 297 if (result == null) … … 302 302 } 303 303 304 privateSimpleBitVector andc1(SimpleBitVector v, SimpleBitVector result)304 SimpleBitVector andc1(SimpleBitVector v, SimpleBitVector result) 305 305 { 306 306 if (result == null) … … 311 311 } 312 312 313 privateSimpleBitVector andc2(SimpleBitVector v, SimpleBitVector result)313 SimpleBitVector andc2(SimpleBitVector v, SimpleBitVector result) 314 314 { 315 315 if (result == null) … … 320 320 } 321 321 322 privateSimpleBitVector orc1(SimpleBitVector v, SimpleBitVector result)322 SimpleBitVector orc1(SimpleBitVector v, SimpleBitVector result) 323 323 { 324 324 if (result == null) … … 329 329 } 330 330 331 privateSimpleBitVector orc2(SimpleBitVector v, SimpleBitVector result)331 SimpleBitVector orc2(SimpleBitVector v, SimpleBitVector result) 332 332 { 333 333 if (result == null) -
trunk/abcl/src/org/armedbear/lisp/SimpleVector.java
r12288 r12513 41 41 public final class SimpleVector extends AbstractVector 42 42 { 43 privateint capacity;44 privateLispObject[] data;43 int capacity; 44 LispObject[] data; 45 45 46 46 public SimpleVector(int capacity) -
trunk/abcl/src/org/armedbear/lisp/SiteName.java
r12298 r12513 41 41 public final class SiteName 42 42 { 43 privatestatic LispObject getHostName()43 static LispObject getHostName() 44 44 { 45 45 String hostName = null; -
trunk/abcl/src/org/armedbear/lisp/SlimeOutputStream.java
r12362 r12513 43 43 final Function f; 44 44 45 privateSlimeOutputStream(Function f)45 SlimeOutputStream(Function f) 46 46 { 47 47 super(Symbol.SLIME_OUTPUT_STREAM); -
trunk/abcl/src/org/armedbear/lisp/SlotClass.java
r12481 r12513 121 121 } 122 122 123 privateLispObject computeDefaultInitargs()123 LispObject computeDefaultInitargs() 124 124 { 125 125 LispObject result = NIL; -
trunk/abcl/src/org/armedbear/lisp/SpecialOperators.java
r12457 r12513 120 120 }; 121 121 122 privatestatic final LispObject _let(LispObject args, Environment env,122 static final LispObject _let(LispObject args, Environment env, 123 123 boolean sequential) 124 124 … … 307 307 }; 308 308 309 privatestatic final LispObject _flet(LispObject args, Environment env,309 static final LispObject _flet(LispObject args, Environment env, 310 310 boolean recursive) 311 311 -
trunk/abcl/src/org/armedbear/lisp/StandardGenericFunction.java
r12481 r12513 40 40 public final class StandardGenericFunction extends StandardObject 41 41 { 42 privateLispObject function;43 44 privateint numberOfRequiredArgs;45 46 privateHashMap<CacheEntry,LispObject> cache;47 privateHashMap<LispObject,LispObject> slotCache;42 LispObject function; 43 44 int numberOfRequiredArgs; 45 46 HashMap<CacheEntry,LispObject> cache; 47 HashMap<LispObject,LispObject> slotCache; 48 48 49 49 public StandardGenericFunction() … … 88 88 } 89 89 90 privatevoid finalizeInternal()90 void finalizeInternal() 91 91 { 92 92 cache = null; … … 664 664 * </pre> 665 665 */ 666 privateLispObject getArgSpecialization(LispObject arg)666 LispObject getArgSpecialization(LispObject arg) 667 667 { 668 668 for (EqlSpecialization eqlSpecialization : eqlSpecializations) … … 767 767 } 768 768 769 privateEqlSpecialization eqlSpecializations[] = new EqlSpecialization[0];769 EqlSpecialization eqlSpecializations[] = new EqlSpecialization[0]; 770 770 771 771 // ### %init-eql-specializations -
trunk/abcl/src/org/armedbear/lisp/StandardObject.java
r12481 r12513 180 180 } 181 181 182 privateLayout updateLayout()182 Layout updateLayout() 183 183 { 184 184 Debug.assertTrue(layout.isInvalid()); -
trunk/abcl/src/org/armedbear/lisp/Stream.java
r12431 r12513 2067 2067 }; 2068 2068 2069 privatestatic final LispObject finishOutput(LispObject arg)2069 static final LispObject finishOutput(LispObject arg) 2070 2070 2071 2071 { -
trunk/abcl/src/org/armedbear/lisp/StringFunctions.java
r12497 r12513 38 38 import java.util.Arrays; 39 39 public final class StringFunctions { 40 privatefinal static class StringIndicesAndChars {40 final static class StringIndicesAndChars { 41 41 public AbstractString string1; 42 42 public boolean convertCase = false; … … 86 86 } 87 87 88 privatefinal static StringIndicesAndChars88 final static StringIndicesAndChars 89 89 stringIndicesAndChars(LispObject... params) { 90 90 StringIndicesAndChars retVal = new StringIndicesAndChars(); … … 163 163 164 164 165 privatestatic final int notEqual(StringIndicesAndChars indicesAndChars) {165 static final int notEqual(StringIndicesAndChars indicesAndChars) { 166 166 int i = indicesAndChars.start1; 167 167 int j = indicesAndChars.start2; … … 188 188 // ### %string/= 189 189 // Case sensitive. 190 privatestatic final Primitive _STRING_NOT_EQUAL = new pf__string_not_equal();190 static final Primitive _STRING_NOT_EQUAL = new pf__string_not_equal(); 191 191 private static final class pf__string_not_equal extends Primitive { 192 192 pf__string_not_equal() { … … 229 229 // ### %string-not-equal 230 230 // Case insensitive. 231 privatestatic final Primitive _STRING_NOT_EQUAL_IGNORE_CASE = new pf__string_not_equal_ignore_case();231 static final Primitive _STRING_NOT_EQUAL_IGNORE_CASE = new pf__string_not_equal_ignore_case(); 232 232 private static final class pf__string_not_equal_ignore_case extends Primitive { 233 233 pf__string_not_equal_ignore_case() { … … 248 248 }; 249 249 250 privatestatic final int lessThan(StringIndicesAndChars indicesAndChars) {250 static final int lessThan(StringIndicesAndChars indicesAndChars) { 251 251 int i = indicesAndChars.start1; 252 252 int j = indicesAndChars.start2; … … 298 298 }; 299 299 300 privatestatic LispObject300 static LispObject 301 301 swapReturnValue(int original, 302 302 StringIndicesAndChars indicesAndChars) { … … 331 331 }; 332 332 333 privatestatic final int lessThanOrEqual(StringIndicesAndChars indicesAndChars) {333 static final int lessThanOrEqual(StringIndicesAndChars indicesAndChars) { 334 334 int i = indicesAndChars.start1; 335 335 int j = indicesAndChars.start2; -
trunk/abcl/src/org/armedbear/lisp/StringOutputStream.java
r12362 r12513 47 47 } 48 48 49 privateStringOutputStream(LispObject elementType)49 StringOutputStream(LispObject elementType) 50 50 { 51 51 super(Symbol.STRING_OUTPUT_STREAM); -
trunk/abcl/src/org/armedbear/lisp/StructureClass.java
r12481 r12513 38 38 public class StructureClass extends SlotClass 39 39 { 40 privateStructureClass(Symbol symbol)40 StructureClass(Symbol symbol) 41 41 { 42 42 super(symbol, new Cons(BuiltInClass.STRUCTURE_OBJECT)); -
trunk/abcl/src/org/armedbear/lisp/StructureObject.java
r12481 r12513 39 39 { 40 40 private final StructureClass structureClass; 41 privatefinal LispObject[] slots;41 final LispObject[] slots; 42 42 43 43 public StructureObject(Symbol symbol) -
trunk/abcl/src/org/armedbear/lisp/SynonymStream.java
r12362 r12513 38 38 public final class SynonymStream extends Stream 39 39 { 40 privatefinal Symbol symbol;41 42 privateSynonymStream(Symbol symbol)40 final Symbol symbol; 41 42 SynonymStream(Symbol symbol) 43 43 { 44 44 super(Symbol.SYNONYM_STREAM); -
trunk/abcl/src/org/armedbear/lisp/arglist.java
r12290 r12513 38 38 public final class arglist 39 39 { 40 privatestatic final Operator getOperator(LispObject obj)40 static final Operator getOperator(LispObject obj) 41 41 42 42 { -
trunk/abcl/src/org/armedbear/lisp/function_info.java
r12290 r12513 38 38 public final class function_info 39 39 { 40 privatestatic EqualHashTable FUNCTION_TABLE =40 static EqualHashTable FUNCTION_TABLE = 41 41 new EqualHashTable(64, NIL, NIL); 42 42 -
trunk/abcl/src/org/armedbear/lisp/java/DialogPromptStream.java
r12362 r12513 18 18 public abstract class DialogPromptStream extends Stream { 19 19 20 privateStringWriter writtenSoFar = new StringWriter();20 StringWriter writtenSoFar = new StringWriter(); 21 21 private Reader reader = new Reader() { 22 22 -
trunk/abcl/src/org/armedbear/lisp/java/awt/AwtDialogPromptStream.java
r12035 r12513 17 17 public class AwtDialogPromptStream extends DialogPromptStream { 18 18 19 privateDialog dialog = new Dialog((Frame)null, true);19 Dialog dialog = new Dialog((Frame)null, true); 20 20 private Label prompt = new Label(); 21 21 private TextField input = new TextField(32); -
trunk/abcl/src/org/armedbear/lisp/java/swing/SwingDialogPromptStream.java
r12035 r12513 17 17 public class SwingDialogPromptStream extends DialogPromptStream { 18 18 19 privateJDialog dialog = new JDialog((Frame)null, true);19 JDialog dialog = new JDialog((Frame)null, true); 20 20 private JLabel prompt = new JLabel(); 21 21 private JTextField input = new JTextField(32); -
trunk/abcl/src/org/armedbear/lisp/scripting/AbclScriptEngine.java
r12362 r12513 55 55 * The function used to evaluate a compiled script. 56 56 */ 57 privateFunction evalCompiledScript;57 Function evalCompiledScript; 58 58 59 59 protected AbclScriptEngine() { … … 230 230 } 231 231 232 privateObject eval(Function evaluator, LispObject code, ScriptContext ctx) throws ScriptException {232 Object eval(Function evaluator, LispObject code, ScriptContext ctx) throws ScriptException { 233 233 ReaderInputStream in = null; 234 234 WriterOutputStream out = null; -
trunk/abcl/src/org/armedbear/lisp/util/RandomAccessCharacterFile.java
r12327 r12513 137 137 private class RandomAccessOutputStream extends OutputStream { 138 138 139 privateRandomAccessOutputStream() {139 RandomAccessOutputStream() { 140 140 } 141 141 … … 169 169 // dummy reader which we need to call the Pushback constructor 170 170 // because a null value won't work 171 privatestatic Reader staticReader = new StringReader("");171 static Reader staticReader = new StringReader(""); 172 172 173 173 private class RandomAccessReader extends PushbackReader { 174 174 175 privateRandomAccessReader() {175 RandomAccessReader() { 176 176 // because we override all methods of Pushbackreader, 177 177 // staticReader will never be referenced … … 238 238 private class RandomAccessWriter extends Writer { 239 239 240 privateRandomAccessWriter() {240 RandomAccessWriter() { 241 241 } 242 242 … … 366 366 } 367 367 368 privatefinal int read(char[] cb, int off, int len) throws IOException {368 final int read(char[] cb, int off, int len) throws IOException { 369 369 CharBuffer cbuf = CharBuffer.wrap(cb, off, len); 370 370 boolean decodeWasUnderflow = false; … … 396 396 } 397 397 398 privatefinal void write(char[] cb, int off, int len) throws IOException {398 final void write(char[] cb, int off, int len) throws IOException { 399 399 CharBuffer cbuf = CharBuffer.wrap(cb, off, len); 400 400 encodeAndWrite(cbuf, false, false); … … 545 545 } 546 546 547 privatefinal void write(byte[] b, int off, int len) throws IOException {547 final void write(byte[] b, int off, int len) throws IOException { 548 548 int pos = off; 549 549 while (pos < off + len) {
Note: See TracChangeset
for help on using the changeset viewer.