Package com.tngtech.archunit.core.domain
Class JavaConstructor
- java.lang.Object
-
- com.tngtech.archunit.core.domain.JavaMember
-
- com.tngtech.archunit.core.domain.JavaCodeUnit
-
- com.tngtech.archunit.core.domain.JavaConstructor
-
- All Implemented Interfaces:
CanBeAnnotated
,HasAnnotations
,HasDescriptor
,HasModifiers
,HasName
,HasName.AndFullName
,HasOwner<JavaClass>
,HasParameterTypes
,HasReturnType
public final class JavaConstructor extends JavaCodeUnit
-
-
Nested Class Summary
-
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
-
Nested classes/interfaces inherited from class com.tngtech.archunit.core.domain.JavaCodeUnit
JavaCodeUnit.Functions, JavaCodeUnit.Predicates
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CONSTRUCTOR_NAME
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<JavaConstructorCall>
getAccessesToSelf()
java.util.Set<JavaConstructorCall>
getCallsOfSelf()
boolean
isConstructor()
java.lang.reflect.Constructor<?>
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
getConstructorCallsFromSelf, getFieldAccesses, getFullName, getMethodCallsFromSelf, getParameters, getReturnType
-
Methods inherited from class com.tngtech.archunit.core.domain.JavaMember
getAnnotationOfType, getAnnotationOfType, getAnnotations, getDescriptor, getModifiers, getName, getOwner, isAnnotatedWith, isAnnotatedWith, isAnnotatedWith, isMetaAnnotatedWith, isMetaAnnotatedWith, isMetaAnnotatedWith, toString, tryGetAnnotationOfType, tryGetAnnotationOfType
-
-
-
-
Field Detail
-
CONSTRUCTOR_NAME
@PublicAPI(usage=ACCESS) public static final java.lang.String CONSTRUCTOR_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
isConstructor
public boolean isConstructor()
- Overrides:
isConstructor
in classJavaCodeUnit
-
getCallsOfSelf
@PublicAPI(usage=ACCESS) public java.util.Set<JavaConstructorCall> getCallsOfSelf()
-
getAccessesToSelf
public java.util.Set<JavaConstructorCall> getAccessesToSelf()
- Specified by:
getAccessesToSelf
in classJavaMember
-
reflect
public java.lang.reflect.Constructor<?> 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
-
-