CodeQL library for Java/Kotlin
codeql/java-all 0.9.0 (changelog, source)
Search

Class MetricSpringBean

Import path

import semmle.code.java.frameworks.spring.metrics.MetricSpringBean

Direct supertypes

Indirect supertypes

Predicates

Inherited predicates

allCharactersString

Gets the result of appending all the character sequences of this XML parent from left to right, separated by a space.

from XmlParent
getACharactersSet

Gets a character sequence that is a child of this XML parent.

from XmlParent
getAChild

Gets a child element of this XML parent.

from XmlParent
getAChild

Gets a child element of this XML parent with the given name.

from XmlParent
getAComment

Gets a comment that is a child of this XML parent.

from XmlParent
getAConstructorArg

Gets a <constructor-arg> element that applies to this bean (including those inherited from the parent bean).

from SpringBean
getADeclaredConstructorArg

Gets a <constructor-arg> element declared in this bean.

from SpringBean
getADeclaredLookupMethod

Gets a <lookup-method> element declared in this bean.

from SpringBean
getADeclaredProperty

Gets a <property> element declared in this bean (not inherited from parent beans).

from SpringBean
getADeclaredReplacedMethod

Gets a <replaced-method> element declared in this bean.

from SpringBean
getALookupMethod

Gets a <lookup-method> element that applies to this bean (including those inherited from the parent bean).

from SpringBean
getAProperty

Any <property> elements that apply to this bean (including those inherited from the parent bean).

from SpringBean
getAReplacedMethod

Gets a <replaced-method> element that applies to this bean (including those inherited from the parent bean).

from SpringBean
getASpringChild

Gets a child of this Spring XML element.

from SpringXmlElement
getAnAttribute

Gets an XML attribute of this XML element.

from XmlElement
getAnInheritedConstructorArg

Gets a <constructor-arg> element inherited from the parent bean.

from SpringBean
getAnInheritedLookupMethod

Gets a <lookup-method> element inherited from the parent bean.

from SpringBean
getAnInheritedProperty

Any <property> elements inherited from parent beans.

from SpringBean
getAnInheritedReplacedMethod

Gets a <replaced-method> element inherited from the parent bean.

from SpringBean
getAttribute

Gets the attribute with the specified name, if any.

from XmlElement
getAttributeValue

Gets the value of the attribute with the specified name, if any.

from XmlElement
getAttributeValueWithDefault

Gets the value of the attribute with name attributeName, or “default” if the attribute is not present.

from SpringXmlElement
getAutowire

Gets the autowire value for the bean, taking any default values from the enclosing <beans> element.

from SpringBean
getAutowireCandidate

Gets the value for the autowire-candidate attribute.

from SpringBean
getAutowireRaw

Gets the raw value of the autowire attribute.

from SpringBean
getBeanId

Gets the value of the id attribute.

from SpringBean
getBeanIdentifier

Gets the bean id or name, whichever is present, giving priority to id.

from SpringBean
getBeanName

Gets the value of the name attribute.

from SpringBean
getBeanParent

Gets the SpringBean parent of this bean.

from SpringBean
getBeanParentName

Gets the name of the bean’s parent bean.

from SpringBean
getChild

Gets the child element at a specified index of this XML parent.

from XmlParent
getClass

Gets the Java class referred to by the bean’s class name.

from SpringBean
getClassName

Gets the name of the bean’s class, taking parent inheritance into account.

from SpringBean
getClassNameRaw

Gets the value of the bean’s class attribute, if any.

from SpringBean
getContentStringfrom SpringXmlElement
getDependencyCheck

Gets the dependency-check value for the bean, taking any default values declared in the enclosing <beans> element.

from SpringBean
getDependencyCheckRaw

Gets the value of the dependency-check attribute, if any.

from SpringBean
getDependsOnString

Gets the value of the depends-on attribute.

from SpringBean
getDepth

Gets the depth of this element within the XML file tree structure.

from XmlElement
getDestroyMethod

Gets the Java method that corresponds to the bean’s destroy-method.

from SpringBean
getDestroyMethodName

Gets the destroy-method name of the bean, taking bean inheritance and <beans> defaults into account.

from SpringBean
getDestroyMethodNameRaw

Gets the value of the bean’s destroy-method attribute.

from SpringBean
getElementPositionIndex

Gets the index of this XML element among its parent’s children.

from XmlElement
getEnclosingBean

Gets the closest enclosing <bean> element.

from SpringXmlElement
getFactoryBean

Gets the SpringBean specified by reference as the factory bean.

from SpringBean
getFactoryBeanName

Gets the name of the bean’s factory-bean, taking bean inheritance into account.

from SpringBean
getFactoryBeanNameRaw

Gets the value of the factory-bean attribute.

from SpringBean
getFactoryMethod

Gets the factory method that the Java method corresponds to.

from SpringBean
getFactoryMethodName

Gets the name of the bean’s factory-method, taking bean inheritance into account.

from SpringBean
getFactoryMethodNameRaw

Gets the value of the factory-method attribute.

from SpringBean
getFile

Gets the XML file in which this XML element occurs.

from XmlElement
getIndex

Gets the index of this XML element among its parent’s children.

from XmlElement
getInitMethod

Gets the Java method that the init-method corresponds to.

from SpringBean
getInitMethodName

Gets the init-method name of the bean, taking bean inheritance and <beans> defaults into account.

from SpringBean
getInitMethodNameRaw

Gets the value of the bean’s init-method attribute.

from SpringBean
getLazyInitRaw

Gets the value of the bean’s lazy-init attribute.

from SpringBean
getLocation

Gets the source location for this element.

from XmlLocatable
getName

Gets the name of this XML element.

from XmlElement
getNamespace

Gets the namespace of this XML element, if any.

from XmlElement
getNumberOfCharacterSets

Gets the number of places in the body of this XML parent where text occurs.

from XmlParent
getNumberOfChildren

Gets the number of child XML elements of this XML parent.

from XmlParent
getParent

Gets the parent of this XML element.

from XmlElement
getQualifier

Gets the qualifier for this bean.

from SpringBean
getQualifierValue

Gets the qualifier value for this SpringBean, defaulting to the bean identifier if no qualifier is specified.

from SpringBean
getScope

Gets the scope of the bean.

from SpringBean
getSpringBeanFile

Gets the bean file of this XML element.

from SpringXmlElement
getTextValue

Gets the text value contained in this XML parent.

from XmlParent
hasAttribute

Holds if this XML element has an attribute with the specified name.

from XmlElement
hasBeanAncestorfrom SpringBean
hasBeanId

Holds if this element has an id attribute.

from SpringBean
hasBeanIdentifier

Holds if the bean has a name, id or class attribute.

from SpringBean
hasBeanName

Holds if the bean has a name attribute.

from SpringBean
hasBeanParent

Holds if this bean has a parent bean.

from SpringBean
hasBeanParentName

Holds if the bean has a parent attribute.

from SpringBean
hasClassName

Holds if the bean has a class name, taking parent inheritance into account.

from SpringBean
hasClassNameRaw

Holds if the bean has a class attribute.

from SpringBean
hasDestroyMethodName

Holds if the bean has a destroy-method name, taking bean inheritance and <beans> defaults into account.

from SpringBean
hasDestroyMethodNameRaw

Holds if the bean has a destroy-method attribute.

from SpringBean
hasFactoryBeanNameRaw

Holds if the bean has a factory-bean attribute.

from SpringBean
hasFactoryMethodNameRaw

Holds if the bean as a factory-method attribute.

from SpringBean
hasInitMethodName

Holds if the bean has an init-method name, taking bean inheritance and <beans> defaults into account.

from SpringBean
hasInitMethodNameRaw

Holds if the bean has an init-method attribute.

from SpringBean
hasLocationInfo

Holds if this element is at the specified location. The location spans column startcolumn of line startline to column endcolumn of line endline in file filepath. For more information, see Locations.

from XmlLocatable
hasName

Holds if this XML element has the given name.

from XmlElement
hasNamespace

Holds if this XML element has a namespace.

from XmlElement
isAbstract

Holds if the bean is abstract.

from SpringBean
isLazyInit

Holds if the bean is to be lazily initialized. Takes <beans> defaults into account.

from SpringBean
isPrimary

Holds if the bean has been declared to be a primary bean for autowiring.

from SpringBean
isSimilar

Holds if this bean element has the same bean identifier as other.

from SpringBean
isTopLevel

Holds if this element is a top-level bean definition.

from SpringBean
toString

Gets a printable representation of this XML element.

from SpringBean