public class InterfaceNode extends MemberedNode implements IInterfaceNode
IInterfaceNode.InterfaceClassification| Modifier and Type | Field and Description | 
|---|---|
| protected TransparentContainerNode | baseInterfacesNodeThe collection of base interfaces | 
| protected FunctionNode | castFunctionNodeGenerated FunctionNode to represent cast function | 
| protected KeywordNode | extendsKeywordNodeThe extends keyword (if one is present) | 
| protected KeywordNode | interfaceKeywordNodeThe class keyword | 
contentsNodedefinition, nameNodeemptyNodeArray, parentUNKNOWN| Constructor and Description | 
|---|
| InterfaceNode(ExpressionNodeBase name)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addBaseInterface(ExpressionNodeBase interfaceName)Add an implemented interface to this class. | 
| protected void | analyze(EnumSet<PostProcessStep> set,
       ASScope scope,
       Collection<ICompilerProblem> problems) | 
| protected boolean | buildInnerString(StringBuilder sb)For debugging only. | 
| ContainerNode | getBaseInterfacesNode()Get the container of base interfaces for this interfaces | 
| FunctionNode | getCastFunctionNode()Get the dummy node representing the cast function | 
| KeywordNode | getClassKeywordNode()Get the node containing the class keyword | 
| InterfaceDefinition | getDefinition()Gets the symbol that represents this  IInterfaceNode | 
| IExpressionNode[] | getExtendedInterfaceNodes()Returns the names of any interfaces that this  IInterfaceNodedirectly references. | 
| String[] | getExtendedInterfaces()Returns the names of any interfaces that this  IInterfaceNodedirectly references. | 
| KeywordNode | getExtendsKeywordNode()Get the node containing the extends keyword, if one exists | 
| protected int | getInitialChildCount()Take a guess as to an efficient initial child count. | 
| IInterfaceNode.InterfaceClassification | getInterfaceClassification()Returns the classification of this ActionScript interface | 
| 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) | 
| int | getSpanningStart()Gets the local offset where the node starts, including any extra items that may
 change the appearance of the node's start. | 
| boolean | hasModifier(ASModifier modifier)Is the given modifier present on this definition? | 
| protected void | init(ExpressionNodeBase nameNode) | 
| boolean | isImplicit()Is this definition an implicit definition that doesn't actually appear in
 the source file? | 
| protected void | setChildren(boolean fillInOffsets)If this node has custom children (names, arguments, etc), shove them into
 the list of children. | 
| protected void | setDefinition(IDefinition definition) | 
| void | setExtendsKeyword(IASToken extendsKeyword)Sets the extends keyword if one is present. | 
| void | setInterfaceKeyword(IASToken interfaceKeyword)Sets the interface keyword. | 
getAllMemberDefinitionNodes, getScopedNodeaddDecorationChildren, addModifier, createDecorationPart, fillInMetadata, fillInModifiers, fillInNamespaceAndModifiers, getASDocComment, getDecorationPart, getMetaInfos, getMetaTags, getMetaTagsNode, getModifiers, getModifiersContainer, getName, getNameAbsoluteEnd, getNameAbsoluteStart, getNameEnd, getNameExpressionNode, getNamespace, getNamespaceNode, getNameStart, getNodeStartForTooling, hasExplicitComment, hasNamespace, normalize, setASDocComment, setMetaTags, setModifiersContainer, setNamespaceaddChild, addChild, addChildInOrder, addChildPostNormalize, addTemporaryChild, getChild, getChildCount, optimizeChildren, removeAllChildren, removeChild, removeTemporaryChild, replaceChild, sortChildren, swapChildrenbuildStringRecursive, 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, waitgetAllMemberDefinitionNodesgetScopedNodegetContainingFilePath, getMetaInfos, getMetaTags, getName, getNameAbsoluteEnd, getNameAbsoluteStart, getNameEnd, getNameExpressionNode, getNamespace, getNameStart, getPackageName, hasNamespacecontains, getAncestorOfType, getChild, getChildCount, getContainingNode, getContainingScope, getFileSpecification, getParent, getSucceedingNode, isTerminalgetAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStartgetASDocComment, hasExplicitCommentprotected KeywordNode interfaceKeywordNode
protected KeywordNode extendsKeywordNode
protected TransparentContainerNode baseInterfacesNode
protected FunctionNode castFunctionNode
public InterfaceNode(ExpressionNodeBase name)
name - The node holding the interface name.public ASTNodeID getNodeID()
IASNodepublic int getSpanningStart()
IASNodegetSpanningStart in interface IASNodegetSpanningStart in class BaseDefinitionNodeprotected void setChildren(boolean fillInOffsets)
NodeBasesetChildren in class NodeBaseprotected void analyze(EnumSet<PostProcessStep> set, ASScope scope, Collection<ICompilerProblem> problems)
analyze in class BaseDefinitionNodeprotected boolean buildInnerString(StringBuilder sb)
NodeBasebuildOuterString().
 It is overridden by subclasses to display optional node-specific
 information in the middle of the string, between the node type and the
 location information.buildInnerString in class NodeBaseprotected int getInitialChildCount()
TreeNodegetInitialChildCount in class TreeNodeprotected void init(ExpressionNodeBase nameNode)
init in class BaseDefinitionNodepublic boolean hasModifier(ASModifier modifier)
IDefinitionNodeASModifier
 for the list of modifiershasModifier in interface IDefinitionNodehasModifier in class BaseDefinitionNodepublic InterfaceDefinition getDefinition()
IInterfaceNodeIInterfaceNodegetDefinition in interface IDefinitionNodegetDefinition in interface IInterfaceNodegetDefinition in class BaseDefinitionNodeIInterfaceDefinition that is the symbolic
 representation of this nodeprotected void setDefinition(IDefinition definition)
setDefinition 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 IInterfaceNode.InterfaceClassification getInterfaceClassification()
IInterfaceNodegetInterfaceClassification in interface IInterfaceNodeIInterfaceNode.InterfaceClassificationpublic IExpressionNode[] getExtendedInterfaceNodes()
IInterfaceNodeIInterfaceNode
 directly references. This does not walk up the inheritance chain, rather
 only looks at what is directly defined on the interfacegetExtendedInterfaceNodes in interface IInterfaceNodepublic String[] getExtendedInterfaces()
IInterfaceNodeIInterfaceNode
 directly references. This does not walk up the inheritance chain, rather
 only looks at what is directly defined on the interfacegetExtendedInterfaces in interface IInterfaceNodepublic void setInterfaceKeyword(IASToken interfaceKeyword)
interfaceKeyword - token containing the keywordpublic KeywordNode getClassKeywordNode()
public KeywordNode getExtendsKeywordNode()
public void setExtendsKeyword(IASToken extendsKeyword)
extendsKeyword - token containing the keywordpublic void addBaseInterface(ExpressionNodeBase interfaceName)
interfaceName - node containing the interface namepublic ContainerNode getBaseInterfacesNode()
public FunctionNode getCastFunctionNode()
Copyright © 2016 The Apache Software Foundation. All rights reserved.