public class NamespaceNode extends BaseDefinitionNode implements INamespaceNode, IInitializableDefinitionNode
definition, nameNodeemptyNodeArray, parentUNKNOWN| Constructor and Description |
|---|
NamespaceNode(IdentifierNode nameNode)
Create a
NamespaceNode from the namespace name identifier. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
analyze(EnumSet<PostProcessStep> set,
ASScope scope,
Collection<ICompilerProblem> problems) |
NamespaceDefinition |
getDefinition() |
INamespaceDefinition.NamespaceClassification |
getNamespaceClassification()
Get the classification for this namespace (local, package level, etc,
etc)
|
ExpressionNodeBase |
getNamespaceURINode()
Return the initializer for this namespace decl
|
ASTNodeID |
getNodeID()
Get the opcode of this node
|
String |
getQualifiedName()
Get the qualified name of this type
|
String |
getShortName()
Get the short name of this type (without any package information)
|
String |
getURI()
Returns the optional URI associated with this namespace
|
boolean |
isImplicit()
Is this definition an implicit definition that doesn't actually appear in
the source file?
|
void |
setAssignedValue(IASToken eq,
ExpressionNodeBase value)
Set the assigned value.
|
protected void |
setChildren(boolean fillInOffsets)
If this node has custom children (names, arguments, etc), shove them into
the list of children.
|
addDecorationChildren, addModifier, createDecorationPart, fillInMetadata, fillInModifiers, fillInNamespaceAndModifiers, getASDocComment, getDecorationPart, getMetaInfos, getMetaTags, getMetaTagsNode, getModifiers, getModifiersContainer, getName, getNameAbsoluteEnd, getNameAbsoluteStart, getNameEnd, getNameExpressionNode, getNamespace, getNamespaceNode, getNameStart, getNodeStartForTooling, getSpanningStart, hasExplicitComment, hasModifier, hasNamespace, init, normalize, setASDocComment, setDefinition, setMetaTags, setModifiersContainer, setNamespaceaddChild, addChild, addChildInOrder, addChildPostNormalize, addTemporaryChild, getChild, getChildCount, getInitialChildCount, optimizeChildren, removeAllChildren, removeChild, removeTemporaryChild, replaceChild, sortChildren, swapChildrenbuildInnerString, buildStringRecursive, canContinueContainmentSearch, collectImportNodes, combineAttributes, connectedToProjectScope, contains, endAfter, endAfter, endBefore, endBefore, fillInOffsets, getAbsoluteEnd, getAbsoluteStart, getAncestorOfType, getASScope, getContainingFilePath, getContainingNode, getContainingScope, getEnd, getFileScope, getFileSpecification, getInnerString, getNodeKind, getPackageName, getParent, getScopeNode, getStart, getSucceedingNode, getWorkspace, isTerminal, isTransparent, looselyContains, runPostProcess, setParent, span, span, span, startAfter, startAfter, startBefore, startBefore, toString, tryGetOffsetLookup, verifygetColumn, getEndColumn, getEndLine, getLine, getLineColumnString, getOffsetsString, getSourcePath, getSourcePathString, setColumn, setEnd, setEndColumn, setEndLine, setLine, setSourceLocation, setSourcePath, setStart, span, spanclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetASDocComment, hasExplicitCommentgetContainingFilePath, getMetaInfos, getMetaTags, getName, getNameAbsoluteEnd, getNameAbsoluteStart, getNameEnd, getNameExpressionNode, getNamespace, getNameStart, getPackageName, hasModifier, hasNamespacecontains, getAncestorOfType, getChild, getChildCount, getContainingNode, getContainingScope, getFileSpecification, getParent, getSpanningStart, getSucceedingNode, isTerminalgetAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStartpublic NamespaceNode(IdentifierNode nameNode)
NamespaceNode from the namespace name identifier.nameNode - Namespace name.public final ASTNodeID getNodeID()
IASNodeprotected void setChildren(boolean fillInOffsets)
NodeBasesetChildren in class NodeBaseprotected void analyze(EnumSet<PostProcessStep> set, ASScope scope, Collection<ICompilerProblem> problems)
analyze in class BaseDefinitionNodepublic NamespaceDefinition getDefinition()
getDefinition in interface IDefinitionNodegetDefinition in class BaseDefinitionNodepublic boolean isImplicit()
IDefinitionNodethis, super,
default constructors, and cast functions.isImplicit in interface IDefinitionNodepublic String getQualifiedName()
IDefinitionNodegetQualifiedName in interface IDefinitionNodepublic String getShortName()
IDefinitionNodegetShortName in interface IDefinitionNodepublic INamespaceDefinition.NamespaceClassification getNamespaceClassification()
INamespaceNodegetNamespaceClassification in interface INamespaceNodeINamespaceDefinition.NamespaceClassificationpublic ExpressionNodeBase getNamespaceURINode()
INamespaceNodegetNamespaceURINode in interface INamespaceNodepublic String getURI()
INamespaceNodegetURI in interface INamespaceNodepublic void setAssignedValue(IASToken eq, ExpressionNodeBase value)
IInitializableDefinitionNodesetAssignedValue in interface IInitializableDefinitionNodeeq - ASToken containing the equals operator =.value - node containing the assigned valueCopyright © 2016 The Apache Software Foundation. All rights reserved.