Class ImportDeclaration
- java.lang.Object
-
- com.strobel.core.Freezable
-
- com.strobel.decompiler.languages.java.ast.AstNode
-
- com.strobel.decompiler.languages.java.ast.ImportDeclaration
-
- All Implemented Interfaces:
UserDataStore,IFreezable,INode,java.lang.Cloneable
- Direct Known Subclasses:
ImportDeclaration.NullImportDeclaration
public class ImportDeclaration extends AstNode
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classImportDeclaration.NullImportDeclaration
-
Field Summary
Fields Modifier and Type Field Description static TokenRoleIMPORT_KEYWORD_RULEstatic ImportDeclarationNULL-
Fields inherited from class com.strobel.decompiler.languages.java.ast.AstNode
AST_NODE_USED_FLAGS, flags, FROZEN_BIT, ROLE_INDEX_MASK, ROOT_ROLE
-
Fields inherited from interface com.strobel.decompiler.patterns.INode
CHILD_ITERATOR
-
-
Constructor Summary
Constructors Constructor Description ImportDeclaration()ImportDeclaration(PackageReference pkg)ImportDeclaration(TypeReference type)ImportDeclaration(AstType type)ImportDeclaration(java.lang.String packageOrTypeName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T,R>
RacceptVisitor(IAstVisitor<? super T,? extends R> visitor, T data)java.lang.StringgetImport()IdentifiergetImportIdentifier()JavaTokenNodegetImportToken()NodeTypegetNodeType()Role<? extends ImportDeclaration>getRole()JavaTokenNodegetSemicolonToken()booleanmatches(INode other, Match match)voidsetImport(java.lang.String value)voidsetImportIdentifier(Identifier value)-
Methods inherited from class com.strobel.decompiler.languages.java.ast.AstNode
addChild, addChildUnsafe, clone, contains, contains, copyUserDataFrom, debugToString, forPattern, freezeCore, getAncestors, getAncestors, getAncestorsAndSelf, getChildByRole, getChildren, getChildrenByRole, getDescendants, getDescendantsAndSelf, getEndLocation, getFirstChild, getLastChild, getNextNode, getNextSibling, getNextSibling, getParent, getParent, getPreviousNode, getPreviousSibling, getPreviousSibling, getRegion, getStartLocation, getText, getText, getUserData, hasChildren, insertChildAfter, insertChildBefore, insertChildBeforeUnsafe, insertChildrenAfter, insertChildrenBefore, isAncestorOf, isAncestorOf, isDescendantOf, isInside, isInside, isLoop, isNull, isReference, isUnconditionalBranch, makeOptional, match, matches, matchesCollection, matchString, putUserData, putUserDataIfAbsent, remove, replace, replaceWith, replaceWith, setChildByRole, setRole, setRoleUnsafe, toString, withName
-
Methods inherited from class com.strobel.core.Freezable
canFreeze, freeze, freezeIfUnfrozen, isFrozen, tryFreeze, verifyFrozen, verifyNotFrozen
-
-
-
-
Field Detail
-
IMPORT_KEYWORD_RULE
public static final TokenRole IMPORT_KEYWORD_RULE
-
NULL
public static final ImportDeclaration NULL
-
-
Constructor Detail
-
ImportDeclaration
public ImportDeclaration()
-
ImportDeclaration
public ImportDeclaration(java.lang.String packageOrTypeName)
-
ImportDeclaration
public ImportDeclaration(PackageReference pkg)
-
ImportDeclaration
public ImportDeclaration(TypeReference type)
-
ImportDeclaration
public ImportDeclaration(AstType type)
-
-
Method Detail
-
getImport
public final java.lang.String getImport()
-
setImport
public final void setImport(java.lang.String value)
-
getImportIdentifier
public final Identifier getImportIdentifier()
-
setImportIdentifier
public final void setImportIdentifier(Identifier value)
-
getImportToken
public final JavaTokenNode getImportToken()
-
getSemicolonToken
public final JavaTokenNode getSemicolonToken()
-
getRole
public Role<? extends ImportDeclaration> getRole()
-
getNodeType
public NodeType getNodeType()
- Specified by:
getNodeTypein classAstNode
-
acceptVisitor
public <T,R> R acceptVisitor(IAstVisitor<? super T,? extends R> visitor, T data)
- Specified by:
acceptVisitorin classAstNode
-
-