Java Code Examples for org.springframework.asm.Opcodes#ACC_STATIC

The following examples show how to use org.springframework.asm.Opcodes#ACC_STATIC . 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: SimpleAnnotationMetadataReadingVisitor.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 className = toClassName(name);
		String outerClassName = toClassName(outerName);
		if (this.className.equals(className)) {
			this.enclosingClassName = outerClassName;
			this.independentInnerClass = ((access & Opcodes.ACC_STATIC) != 0);
		}
		else if (this.className.equals(outerClassName)) {
			this.memberClassNames.add(className);
		}
	}
}
 
Example 2
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 3
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 4
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 5
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 6
Source File: LocalVariableTableParameterNameDiscoverer.java    From spring-analysis-note with MIT License 4 votes vote down vote up
private static boolean isStatic(int access) {
	return ((access & Opcodes.ACC_STATIC) > 0);
}
 
Example 7
Source File: MethodMetadataReadingVisitor.java    From spring-analysis-note with MIT License 4 votes vote down vote up
@Override
public boolean isStatic() {
	return ((this.access & Opcodes.ACC_STATIC) != 0);
}
 
Example 8
Source File: SimpleMethodMetadata.java    From spring-analysis-note with MIT License 4 votes vote down vote up
@Override
public boolean isStatic() {
	return (this.access & Opcodes.ACC_STATIC) != 0;
}
 
Example 9
Source File: LocalVariableTableParameterNameDiscoverer.java    From java-technology-stack with MIT License 4 votes vote down vote up
private static boolean isStatic(int access) {
	return ((access & Opcodes.ACC_STATIC) > 0);
}
 
Example 10
Source File: MethodMetadataReadingVisitor.java    From java-technology-stack with MIT License 4 votes vote down vote up
@Override
public boolean isStatic() {
	return ((this.access & Opcodes.ACC_STATIC) != 0);
}
 
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 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 12
Source File: LocalVariableTableParameterNameDiscoverer.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
private static boolean isStatic(int access) {
	return ((access & Opcodes.ACC_STATIC) > 0);
}
 
Example 13
Source File: MethodMetadataReadingVisitor.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public boolean isStatic() {
	return ((this.access & Opcodes.ACC_STATIC) != 0);
}
 
Example 14
Source File: LocalVariableTableParameterNameDiscoverer.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
private static boolean isStatic(int access) {
	return ((access & Opcodes.ACC_STATIC) > 0);
}
 
Example 15
Source File: MethodMetadataReadingVisitor.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
@Override
public boolean isStatic() {
	return ((this.access & Opcodes.ACC_STATIC) != 0);
}