Class Field
java.lang.Object
com.weirddev.testme.intellij.template.context.Field
Class field.
Date: 24/10/2016
- Author:
- Yaron Yamin
-
Constructor Summary
ConstructorDescriptionField
(com.intellij.psi.PsiField psiField, com.intellij.psi.PsiClass srcClass, TypeDictionary typeDictionary, int maxRecursionDepth) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getName()
name given to fieldcanonical name of type owning this fieldgetType()
type of fieldint
hashCode()
boolean
true if field is annotated by dependency injectionboolean
isFinal()
field has final modifierboolean
true if field has setter in tested classboolean
true if field is set to a value on declarationboolean
true - if field is inherited and overridden in this typestatic boolean
isOverriddenInChild
(com.intellij.psi.PsiField psiField, com.intellij.psi.PsiClass srcClass) boolean
isStatic()
field is statictoString()
-
Constructor Details
-
Field
public Field(com.intellij.psi.PsiField psiField, com.intellij.psi.PsiClass srcClass, TypeDictionary typeDictionary, int maxRecursionDepth)
-
-
Method Details
-
isOverriddenInChild
public static boolean isOverriddenInChild(com.intellij.psi.PsiField psiField, com.intellij.psi.PsiClass srcClass) -
equals
-
hashCode
public int hashCode() -
toString
-
getType
type of field -
isOverridden
public boolean isOverridden()true - if field is inherited and overridden in this type -
isFinal
public boolean isFinal()field has final modifier -
isStatic
public boolean isStatic()field is static -
getOwnerClassCanonicalName
canonical name of type owning this field -
isAnnotatedByDI
public boolean isAnnotatedByDI()true if field is annotated by dependency injection -
isHasSetter
public boolean isHasSetter()true if field has setter in tested class -
isInitializedInline
public boolean isInitializedInline()true if field is set to a value on declaration -
getName
name given to field
-