summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2010-05-17 16:40:20 +0000
committeraclement <aclement>2010-05-17 16:40:20 +0000
commita33781090dc20b1744b01ea6199a2d8b51e677ae (patch)
tree6ba1f348c054ef9145fd2ef6a12c53884b5603f5
parentaa8a1d26e3080ba37115ffb3bbadce5d2fef6cc0 (diff)
downloadaspectj-a33781090dc20b1744b01ea6199a2d8b51e677ae.tar.gz
aspectj-a33781090dc20b1744b01ea6199a2d8b51e677ae.zip
312839: smaller class files
-rw-r--r--org.aspectj.matcher/src/org/aspectj/weaver/ConstantPoolReader.java23
-rw-r--r--org.aspectj.matcher/src/org/aspectj/weaver/ConstantPoolWriter.java23
2 files changed, 46 insertions, 0 deletions
diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/ConstantPoolReader.java b/org.aspectj.matcher/src/org/aspectj/weaver/ConstantPoolReader.java
new file mode 100644
index 000000000..1345e7e09
--- /dev/null
+++ b/org.aspectj.matcher/src/org/aspectj/weaver/ConstantPoolReader.java
@@ -0,0 +1,23 @@
+/* *******************************************************************
+ * Copyright (c) 2010 Contributors
+ * All rights reserved.
+ * This program and the accompanying materials are made available
+ * under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Andy Clement (SpringSource)
+ * ******************************************************************/
+package org.aspectj.weaver;
+
+/**
+ * Used during attribute reading to decode constant pool references.
+ *
+ * @author Andy Clement
+ */
+public interface ConstantPoolReader {
+
+ String readUtf8(int constantPoolIndex);
+
+}
diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/ConstantPoolWriter.java b/org.aspectj.matcher/src/org/aspectj/weaver/ConstantPoolWriter.java
new file mode 100644
index 000000000..2b145a1de
--- /dev/null
+++ b/org.aspectj.matcher/src/org/aspectj/weaver/ConstantPoolWriter.java
@@ -0,0 +1,23 @@
+/* *******************************************************************
+ * Copyright (c) 2010 Contributors
+ * All rights reserved.
+ * This program and the accompanying materials are made available
+ * under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Andy Clement (SpringSource)
+ * ******************************************************************/
+package org.aspectj.weaver;
+
+/**
+ * Used during attribute writing to encode common strings/etc as constant pool references.
+ *
+ * @author Andy Clement
+ */
+public interface ConstantPoolWriter {
+
+ int writeUtf8(String string);
+
+}