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

com.softicar.platform.common.code.string.InternalMethodStringLiteralAnalyzer Maven / Gradle / Ivy

Go to download

The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.

There is a newer version: 50.0.0
Show newest version
package com.softicar.platform.common.code.string;

import org.objectweb.asm.MethodVisitor;
import org.objectweb.asm.Opcodes;

class InternalMethodStringLiteralAnalyzer extends MethodVisitor {

	private final ClassStringLiteralAnalyzerResult result;

	public InternalMethodStringLiteralAnalyzer(ClassStringLiteralAnalyzerResult result) {

		super(Opcodes.ASM9);
		this.result = result;
	}

	@Override
	public void visitLdcInsn(Object value) {

		if (value instanceof String) {
			result.addStringLiteral((String) value);
		}
		super.visitLdcInsn(value);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy