public class NamespaceNode extends BaseDefinitionNode implements INamespaceNode, IInitializableDefinitionNode
definition, nameNode
emptyNodeArray, parent
UNKNOWN
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, setNamespace
addChild, addChild, addChildInOrder, addChildPostNormalize, addTemporaryChild, getChild, getChildCount, getInitialChildCount, optimizeChildren, removeAllChildren, removeChild, removeTemporaryChild, replaceChild, sortChildren, swapChildren
buildInnerString, 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, verify
getColumn, getEndColumn, getEndLine, getLine, getLineColumnString, getOffsetsString, getSourcePath, getSourcePathString, setColumn, setEnd, setEndColumn, setEndLine, setLine, setSourceLocation, setSourcePath, setStart, span, span
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getASDocComment, hasExplicitComment
getContainingFilePath, getMetaInfos, getMetaTags, getName, getNameAbsoluteEnd, getNameAbsoluteStart, getNameEnd, getNameExpressionNode, getNamespace, getNameStart, getPackageName, hasModifier, hasNamespace
contains, getAncestorOfType, getChild, getChildCount, getContainingNode, getContainingScope, getFileSpecification, getParent, getSpanningStart, getSucceedingNode, isTerminal
getAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStart
public NamespaceNode(IdentifierNode nameNode)
NamespaceNode
from the namespace name identifier.nameNode
- Namespace name.public final ASTNodeID getNodeID()
IASNode
protected void setChildren(boolean fillInOffsets)
NodeBase
setChildren
in class NodeBase
protected void analyze(EnumSet<PostProcessStep> set, ASScope scope, Collection<ICompilerProblem> problems)
analyze
in class BaseDefinitionNode
public NamespaceDefinition getDefinition()
getDefinition
in interface IDefinitionNode
getDefinition
in class BaseDefinitionNode
public boolean isImplicit()
IDefinitionNode
this
, super
,
default constructors, and cast functions.isImplicit
in interface IDefinitionNode
public String getQualifiedName()
IDefinitionNode
getQualifiedName
in interface IDefinitionNode
public String getShortName()
IDefinitionNode
getShortName
in interface IDefinitionNode
public INamespaceDefinition.NamespaceClassification getNamespaceClassification()
INamespaceNode
getNamespaceClassification
in interface INamespaceNode
INamespaceDefinition.NamespaceClassification
public ExpressionNodeBase getNamespaceURINode()
INamespaceNode
getNamespaceURINode
in interface INamespaceNode
public String getURI()
INamespaceNode
getURI
in interface INamespaceNode
public void setAssignedValue(IASToken eq, ExpressionNodeBase value)
IInitializableDefinitionNode
setAssignedValue
in interface IInitializableDefinitionNode
eq
- ASToken containing the equals operator =
.value
- node containing the assigned valueCopyright © 2016 The Apache Software Foundation. All rights reserved.