From a33781090dc20b1744b01ea6199a2d8b51e677ae Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 17 May 2010 16:40:20 +0000 Subject: [PATCH] 312839: smaller class files --- .../aspectj/weaver/ConstantPoolReader.java | 23 +++++++++++++++++++ .../aspectj/weaver/ConstantPoolWriter.java | 23 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 org.aspectj.matcher/src/org/aspectj/weaver/ConstantPoolReader.java create mode 100644 org.aspectj.matcher/src/org/aspectj/weaver/ConstantPoolWriter.java 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); + +} -- 2.39.5