All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.aspectj.weaver.StaticJoinPointFactory Maven / Gradle / Ivy

Go to download

The AspectJ weaver applies aspects to Java classes. It can be used as a Java agent in order to apply load-time weaving (LTW) during class-loading and also contains the AspectJ runtime classes.

There is a newer version: 1.9.22.1
Show newest version
/* *******************************************************************
 * Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC).
 * All rights reserved.
 * This program and the accompanying materials are made available
 * under the terms of the Eclipse Public License v 2.0
 * which accompanies this distribution and is available at
 * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt
 *
 * Contributors:
 *     PARC     initial implementation
 * ******************************************************************/

package org.aspectj.weaver;

public class StaticJoinPointFactory {
	// int usedKeys;
	//
	// List/*String*/ strings = new ArrayList();
	// Map/*String,Integer*/ keysForStrings = new HashMap();
	//
	// public StaticJoinPointFactory() {
	// super();
	// }
	//
	// static char[] encoding = new char[] {
	// '0', '1', '2', '3', '4', '5', '6', '7', '8', '9',//10
	// 'a', 'b', 'z', //36
	// 'A', 'B', 'Z', //62
	// '%', '$', //64
	// };
	//
	// static int TWO_WORDS = 64*64-1;
	// static int WORD_MASK = 63;
	//
	// public void write(String s, StringBuffer result) {
	// int i = getIndex(s);
	// encode(i, result);
	// }
	//
	// void encode(int i, StringBuffer result) {
	// if (i > TWO_WORDS) {
	// throw new RuntimeException("unimplemented");
	// } else {
	// result.append( encoding[(i >> 6) & WORD_MASK] );
	// result.append( encoding[i & WORD_MASK] );
	// }
	// }
	//
	// public String read(StringReader reader) {
	// int i = reader.read();
	//
	// }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy