public interface IClassNode extends ICommonClassNode
class
declaration.
The shape of this node is:
IClassNode IMetaTagsNode <-- getMetaTagsNode() INamespaceDecorationNode <-- getNamespaceNode() IKeywordNode <-- getKeywordNode() IExpressionNode <-- getNameExpressionNode() IKeywordNode <-- getExtendsKeywordNode() IExpressionNode <-- getBaseClassExpressionNode() IKeywordNode <-- getImplementsKeywordNode() IContainerNode <-- getInterfacesNode() IScopedNode <-- getScopedNode()For example,
[Foo] [Bar] public class B extends A implements I1, I2 { ... }is represented as
IClassNode IMetaTagsNode IMetaTagNode "Foo" IMetaTagNode "Bar" INamespaceDecorationNode "public" IKeywordNode "class" IIdentifierNode "B" IKeywordNode "extends" IIdentifierNode "A" IKeywordNode "implements" IContainerNode IIdentifierNode "I1" IIdentifierNode "I2" IScopedNode ...If there is no metadata, the corresponding child node is not present.
If there is no namespace, the corresponding child node is not present.
If there is no extends
clause, the two corresponding
child nodes are not present.
If there is no implements
clause, the two corresponding
child nodes are not present.
If the class implements only one interface,
there is still an IContainerNode
containing the one
node for the interface.
UNKNOWN
Modifier and Type | Method and Description |
---|---|
IDefinitionNode[] |
getAllMemberNodes()
Returns an array of
IDefinitionNode objects that represent all
the children of this class that are members. |
IExpressionNode |
getBaseClassExpressionNode() |
IExpressionNode[] |
getImplementedInterfaceNodes() |
IMetaTagNode[] |
getMetaTagNodesByName(String name)
Retrieve all of the meta attributes (e.g.
|
getBaseClassName, getClassClassification, getDefinition, getImplementedInterfaces, getMetaTagsByName
getScopedNode
getContainingFilePath, getMetaInfos, getMetaTags, getName, getNameAbsoluteEnd, getNameAbsoluteStart, getNameEnd, getNameExpressionNode, getNamespace, getNameStart, getPackageName, getQualifiedName, getShortName, hasModifier, hasNamespace, isImplicit
contains, getAncestorOfType, getChild, getChildCount, getContainingNode, getContainingScope, getFileSpecification, getNodeID, getParent, getSpanningStart, getSucceedingNode, isTerminal
getAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStart
getASDocComment, hasExplicitComment
IExpressionNode getBaseClassExpressionNode()
IExpressionNode[] getImplementedInterfaceNodes()
IDefinitionNode[] getAllMemberNodes()
IDefinitionNode
objects that represent all
the children of this class that are members. These include functions,
variables and namespacesIDefinitionNode
children, or an empty arrayIMetaTagNode[] getMetaTagNodesByName(String name)
name
- name of meta attributes to search for (e.g. Event or
IconFile)Copyright © 2016 The Apache Software Foundation. All rights reserved.