public interface INamespaceNode extends IDefinitionNode, IDocumentableDefinitionNode
namespace
declaration.
The shape of this node is:
INamespaceNode IExpressionNode <-- getNameExpressionNode() IExpressionNode <-- getNamespaceURINode()For example,
[Foo] [Bar] public namespace ns = "http://whatever";is represented as
INamespaceNode IIdentifierNode "ns" ILiteralNode "http://whatever"Currently the metadata and the namespace annotation are not exposed as child nodes. This is inconsistent with, for example,
IVariableNode
.
If there is no initial value, the corresponding child node is not present.
UNKNOWN
Modifier and Type | Method and Description |
---|---|
INamespaceDefinition.NamespaceClassification |
getNamespaceClassification()
Get the classification for this namespace (local, package level, etc,
etc)
|
IExpressionNode |
getNamespaceURINode()
Return the initializer for this namespace decl
|
String |
getURI()
Returns the optional URI associated with this namespace
|
getASDocComment, hasExplicitComment
getContainingFilePath, getDefinition, 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
String getURI()
INamespaceDefinition.NamespaceClassification getNamespaceClassification()
IExpressionNode getNamespaceURINode()
Copyright © 2016 The Apache Software Foundation. All rights reserved.