Java Code Examples for org.springframework.util.ClassUtils#convertResourcePathToClassName()

The following examples show how to use org.springframework.util.ClassUtils#convertResourcePathToClassName() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ClassMetadataReadingVisitor.java    From spring-analysis-note with MIT License 6 votes vote down vote up
@Override
public void visit(
		int version, int access, String name, String signature, @Nullable String supername, String[] interfaces) {

	this.className = ClassUtils.convertResourcePathToClassName(name);
	this.isInterface = ((access & Opcodes.ACC_INTERFACE) != 0);
	this.isAnnotation = ((access & Opcodes.ACC_ANNOTATION) != 0);
	this.isAbstract = ((access & Opcodes.ACC_ABSTRACT) != 0);
	this.isFinal = ((access & Opcodes.ACC_FINAL) != 0);
	if (supername != null && !this.isInterface) {
		this.superClassName = ClassUtils.convertResourcePathToClassName(supername);
	}
	this.interfaces = new String[interfaces.length];
	for (int i = 0; i < interfaces.length; i++) {
		this.interfaces[i] = ClassUtils.convertResourcePathToClassName(interfaces[i]);
	}
}
 
Example 2
Source File: ClassMetadataReadingVisitor.java    From java-technology-stack with MIT License 6 votes vote down vote up
@Override
public void visit(
		int version, int access, String name, String signature, @Nullable String supername, String[] interfaces) {

	this.className = ClassUtils.convertResourcePathToClassName(name);
	this.isInterface = ((access & Opcodes.ACC_INTERFACE) != 0);
	this.isAnnotation = ((access & Opcodes.ACC_ANNOTATION) != 0);
	this.isAbstract = ((access & Opcodes.ACC_ABSTRACT) != 0);
	this.isFinal = ((access & Opcodes.ACC_FINAL) != 0);
	if (supername != null && !this.isInterface) {
		this.superClassName = ClassUtils.convertResourcePathToClassName(supername);
	}
	this.interfaces = new String[interfaces.length];
	for (int i = 0; i < interfaces.length; i++) {
		this.interfaces[i] = ClassUtils.convertResourcePathToClassName(interfaces[i]);
	}
}
 
Example 3
Source File: ClassMetadataReadingVisitor.java    From spring4-understanding with Apache License 2.0 5 votes vote down vote up
@Override
public void visitInnerClass(String name, String outerName, String innerName, int access) {
	if (outerName != null) {
		String fqName = ClassUtils.convertResourcePathToClassName(name);
		String fqOuterName = ClassUtils.convertResourcePathToClassName(outerName);
		if (this.className.equals(fqName)) {
			this.enclosingClassName = fqOuterName;
			this.independentInnerClass = ((access & Opcodes.ACC_STATIC) != 0);
		}
		else if (this.className.equals(fqOuterName)) {
			this.memberClassNames.add(fqName);
		}
	}
}
 
Example 4
Source File: ClassMetadataReadingVisitor.java    From spring4-understanding with Apache License 2.0 5 votes vote down vote up
@Override
public void visit(int version, int access, String name, String signature, String supername, String[] interfaces) {
	this.className = ClassUtils.convertResourcePathToClassName(name);
	this.isInterface = ((access & Opcodes.ACC_INTERFACE) != 0);
	this.isAnnotation = ((access & Opcodes.ACC_ANNOTATION) != 0);
	this.isAbstract = ((access & Opcodes.ACC_ABSTRACT) != 0);
	this.isFinal = ((access & Opcodes.ACC_FINAL) != 0);
	if (supername != null && !this.isInterface) {
		this.superClassName = ClassUtils.convertResourcePathToClassName(supername);
	}
	this.interfaces = new String[interfaces.length];
	for (int i = 0; i < interfaces.length; i++) {
		this.interfaces[i] = ClassUtils.convertResourcePathToClassName(interfaces[i]);
	}
}
 
Example 5
Source File: ClassMetadataReadingVisitor.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void visitInnerClass(String name, String outerName, String innerName, int access) {
	if (outerName != null) {
		String fqName = ClassUtils.convertResourcePathToClassName(name);
		String fqOuterName = ClassUtils.convertResourcePathToClassName(outerName);
		if (this.className.equals(fqName)) {
			this.enclosingClassName = fqOuterName;
			this.independentInnerClass = ((access & Opcodes.ACC_STATIC) != 0);
		}
		else if (this.className.equals(fqOuterName)) {
			this.memberClassNames.add(fqName);
		}
	}
}
 
Example 6
Source File: ClassMetadataReadingVisitor.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void visit(int version, int access, String name, String signature, String supername, String[] interfaces) {
	this.className = ClassUtils.convertResourcePathToClassName(name);
	this.isInterface = ((access & Opcodes.ACC_INTERFACE) != 0);
	this.isAnnotation = ((access & Opcodes.ACC_ANNOTATION) != 0);
	this.isAbstract = ((access & Opcodes.ACC_ABSTRACT) != 0);
	this.isFinal = ((access & Opcodes.ACC_FINAL) != 0);
	if (supername != null && !this.isInterface) {
		this.superClassName = ClassUtils.convertResourcePathToClassName(supername);
	}
	this.interfaces = new String[interfaces.length];
	for (int i = 0; i < interfaces.length; i++) {
		this.interfaces[i] = ClassUtils.convertResourcePathToClassName(interfaces[i]);
	}
}
 
Example 7
Source File: ClassMetadataReadingVisitor.java    From thinking-in-spring-boot-samples with Apache License 2.0 5 votes vote down vote up
public void visit(int version, int access, String name, String signature, String supername, String[] interfaces) {
    this.className = ClassUtils.convertResourcePathToClassName(name);
    this.isInterface = ((access & Opcodes.ACC_INTERFACE) != 0);
    this.isAbstract = ((access & Opcodes.ACC_ABSTRACT) != 0);
    this.isFinal = ((access & Opcodes.ACC_FINAL) != 0);
    if (supername != null) {
        this.superClassName = ClassUtils.convertResourcePathToClassName(supername);
    }
    this.interfaces = new String[interfaces.length];
    for (int i = 0; i < interfaces.length; i++) {
        this.interfaces[i] = ClassUtils.convertResourcePathToClassName(interfaces[i]);
    }
}
 
Example 8
Source File: ClassMetadataReadingVisitor.java    From thinking-in-spring-boot-samples with Apache License 2.0 5 votes vote down vote up
public void visit(int version, int access, String name, String signature, String supername, String[] interfaces) {
    this.className = ClassUtils.convertResourcePathToClassName(name);
    this.isInterface = ((access & Opcodes.ACC_INTERFACE) != 0);
    this.isAbstract = ((access & Opcodes.ACC_ABSTRACT) != 0);
    if (supername != null) {
        this.superClassName = ClassUtils.convertResourcePathToClassName(supername);
    }
    this.interfaces = new String[interfaces.length];
    for (int i = 0; i < interfaces.length; i++) {
        this.interfaces[i] = ClassUtils.convertResourcePathToClassName(interfaces[i]);
    }
}
 
Example 9
Source File: ClassMetadataReadingVisitor.java    From java-technology-stack with MIT License 5 votes vote down vote up
@Override
public void visitInnerClass(String name, @Nullable String outerName, String innerName, int access) {
	if (outerName != null) {
		String fqName = ClassUtils.convertResourcePathToClassName(name);
		String fqOuterName = ClassUtils.convertResourcePathToClassName(outerName);
		if (this.className.equals(fqName)) {
			this.enclosingClassName = fqOuterName;
			this.independentInnerClass = ((access & Opcodes.ACC_STATIC) != 0);
		}
		else if (this.className.equals(fqOuterName)) {
			this.memberClassNames.add(fqName);
		}
	}
}
 
Example 10
Source File: ClassMetadataReadingVisitor.java    From spring-analysis-note with MIT License 5 votes vote down vote up
@Override
public void visitInnerClass(String name, @Nullable String outerName, String innerName, int access) {
	if (outerName != null) {
		String fqName = ClassUtils.convertResourcePathToClassName(name);
		String fqOuterName = ClassUtils.convertResourcePathToClassName(outerName);
		if (this.className.equals(fqName)) {
			this.enclosingClassName = fqOuterName;
			this.independentInnerClass = ((access & Opcodes.ACC_STATIC) != 0);
		}
		else if (this.className.equals(fqOuterName)) {
			this.memberClassNames.add(fqName);
		}
	}
}
 
Example 11
Source File: ClassMetadataReadingVisitor.java    From thinking-in-spring-boot-samples with Apache License 2.0 4 votes vote down vote up
public void visitOuterClass(String owner, String name, String desc) {
    this.enclosingClassName = ClassUtils.convertResourcePathToClassName(owner);
}
 
Example 12
Source File: ClassMetadataReadingVisitor.java    From thinking-in-spring-boot-samples with Apache License 2.0 4 votes vote down vote up
public void visitInnerClass(String name, String outerName, String innerName, int access) {
    if (outerName != null && this.className.equals(ClassUtils.convertResourcePathToClassName(name))) {
        this.enclosingClassName = ClassUtils.convertResourcePathToClassName(outerName);
        this.independentInnerClass = ((access & Opcodes.ACC_STATIC) != 0);
    }
}
 
Example 13
Source File: ClassMetadataReadingVisitor.java    From thinking-in-spring-boot-samples with Apache License 2.0 4 votes vote down vote up
public void visitOuterClass(String owner, String name, String desc) {
    this.enclosingClassName = ClassUtils.convertResourcePathToClassName(owner);
}
 
Example 14
Source File: ClassMetadataReadingVisitor.java    From thinking-in-spring-boot-samples with Apache License 2.0 4 votes vote down vote up
public void visitInnerClass(String name, String outerName, String innerName, int access) {
    if (outerName != null && this.className.equals(ClassUtils.convertResourcePathToClassName(name))) {
        this.enclosingClassName = ClassUtils.convertResourcePathToClassName(outerName);
        this.independentInnerClass = ((access & Opcodes.ACC_STATIC) != 0);
    }
}
 
Example 15
Source File: ClassMetadataReadingVisitor.java    From java-technology-stack with MIT License 4 votes vote down vote up
@Override
public void visitOuterClass(String owner, String name, String desc) {
	this.enclosingClassName = ClassUtils.convertResourcePathToClassName(owner);
}
 
Example 16
Source File: ClassMetadataReadingVisitor.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void visitOuterClass(String owner, String name, String desc) {
	this.enclosingClassName = ClassUtils.convertResourcePathToClassName(owner);
}
 
Example 17
Source File: ClassMetadataReadingVisitor.java    From spring-analysis-note with MIT License 4 votes vote down vote up
@Override
public void visitOuterClass(String owner, String name, String desc) {
	this.enclosingClassName = ClassUtils.convertResourcePathToClassName(owner);
}
 
Example 18
Source File: ClassMetadataReadingVisitor.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
@Override
public void visitOuterClass(String owner, String name, String desc) {
	this.enclosingClassName = ClassUtils.convertResourcePathToClassName(owner);
}
 
Example 19
Source File: SimpleAnnotationMetadataReadingVisitor.java    From spring-analysis-note with MIT License 4 votes vote down vote up
private String toClassName(String name) {
	return ClassUtils.convertResourcePathToClassName(name);
}