You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

StaticJoinPointFactory.java 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /* *******************************************************************
  2. * Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC).
  3. * All rights reserved.
  4. * This program and the accompanying materials are made available
  5. * under the terms of the Eclipse Public License v1.0
  6. * which accompanies this distribution and is available at
  7. * http://www.eclipse.org/legal/epl-v10.html
  8. *
  9. * Contributors:
  10. * PARC initial implementation
  11. * ******************************************************************/
  12. package org.aspectj.weaver;
  13. public class StaticJoinPointFactory {
  14. // int usedKeys;
  15. //
  16. // List/*String*/ strings = new ArrayList();
  17. // Map/*String,Integer*/ keysForStrings = new HashMap();
  18. //
  19. // public StaticJoinPointFactory() {
  20. // super();
  21. // }
  22. //
  23. // static char[] encoding = new char[] {
  24. // '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',//10
  25. // 'a', 'b', 'z', //36
  26. // 'A', 'B', 'Z', //62
  27. // '%', '$', //64
  28. // };
  29. //
  30. // static int TWO_WORDS = 64*64-1;
  31. // static int WORD_MASK = 63;
  32. //
  33. // public void write(String s, StringBuffer result) {
  34. // int i = getIndex(s);
  35. // encode(i, result);
  36. // }
  37. //
  38. // void encode(int i, StringBuffer result) {
  39. // if (i > TWO_WORDS) {
  40. // throw new RuntimeException("unimplemented");
  41. // } else {
  42. // result.append( encoding[(i >> 6) & WORD_MASK] );
  43. // result.append( encoding[i & WORD_MASK] );
  44. // }
  45. // }
  46. //
  47. // public String read(StringReader reader) {
  48. // int i = reader.read();
  49. //
  50. // }
  51. }