Package com.tngtech.archunit.core.domain
Class JavaStaticInitializer
- java.lang.Object
-
- com.tngtech.archunit.core.domain.JavaMember
-
- com.tngtech.archunit.core.domain.JavaCodeUnit
-
- com.tngtech.archunit.core.domain.JavaStaticInitializer
-
- All Implemented Interfaces:
HasDescription
,CanBeAnnotated
,HasAnnotations<JavaMember>
,HasDescriptor
,HasModifiers
,HasName
,HasName.AndFullName
,HasOwner<JavaClass>
,HasParameterTypes
,HasReturnType
,HasSourceCodeLocation
,HasThrowsClause<JavaCodeUnit>
public class JavaStaticInitializer extends JavaCodeUnit
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.tngtech.archunit.core.domain.JavaCodeUnit
JavaCodeUnit.Functions, JavaCodeUnit.Predicates
-
Nested classes/interfaces inherited from interface com.tngtech.archunit.core.domain.properties.CanBeAnnotated
CanBeAnnotated.Utils
-
Nested classes/interfaces inherited from interface com.tngtech.archunit.core.domain.properties.HasName
HasName.AndFullName
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
STATIC_INITIALIZER_NAME
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<? extends JavaAccess<?>>
getAccessesToSelf()
java.lang.String
getDescription()
ThrowsClause<JavaStaticInitializer>
getThrowsClause()
java.lang.reflect.Member
reflect()
Resolves the respectiveMember
from the classpath.
NOTE: This method will throw an exception, if the owningClass
or any of its dependencies can't be found on the classpath.-
Methods inherited from class com.tngtech.archunit.core.domain.JavaCodeUnit
getAccessesFromSelf, getAnnotationOfType, getAnnotations, getCallsFromSelf, getConstructorCallsFromSelf, getExceptionTypes, getFieldAccesses, getFullName, getInstanceofChecks, getMethodCallsFromSelf, getRawParameterTypes, getRawReturnType, isConstructor, tryGetAnnotationOfType
-
Methods inherited from class com.tngtech.archunit.core.domain.JavaMember
getAnnotationOfType, getDescriptor, getModifiers, getName, getOwner, getReverseDependencies, getSourceCodeLocation, isAnnotatedWith, isAnnotatedWith, isAnnotatedWith, isMetaAnnotatedWith, isMetaAnnotatedWith, isMetaAnnotatedWith, toString, tryGetAnnotationOfType
-
-
-
-
Field Detail
-
STATIC_INITIALIZER_NAME
@PublicAPI(usage=ACCESS) public static final java.lang.String STATIC_INITIALIZER_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAccessesToSelf
@PublicAPI(usage=ACCESS) public java.util.Set<? extends JavaAccess<?>> getAccessesToSelf()
- Specified by:
getAccessesToSelf
in classJavaMember
-
reflect
@PublicAPI(usage=ACCESS) public java.lang.reflect.Member reflect()
Description copied from class:JavaMember
Resolves the respectiveMember
from the classpath.
NOTE: This method will throw an exception, if the owningClass
or any of its dependencies can't be found on the classpath.- Specified by:
reflect
in classJavaMember
- Returns:
- The
Member
equivalent to thisJavaMember
-
getDescription
@PublicAPI(usage=ACCESS) public java.lang.String getDescription()
-
getThrowsClause
@PublicAPI(usage=ACCESS) public ThrowsClause<JavaStaticInitializer> getThrowsClause()
- Specified by:
getThrowsClause
in interfaceHasThrowsClause<JavaCodeUnit>
- Specified by:
getThrowsClause
in classJavaCodeUnit
-
-