Package sc.lang.java
Class ImportDeclaration
- java.lang.Object
-
- sc.lang.SemanticNode
-
- sc.lang.java.JavaSemanticNode
-
- sc.lang.java.AbstractErrorNode
-
- sc.lang.java.ImportDeclaration
-
- All Implemented Interfaces:
ISemanticNode
,ILifecycle
public class ImportDeclaration extends AbstractErrorNode
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class sc.lang.java.JavaSemanticNode
JavaSemanticNode.DepTypeCtx, JavaSemanticNode.DepTypeMode, JavaSemanticNode.MemberCache, JavaSemanticNode.MemberType
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
identifier
boolean
staticImport
static java.lang.String
WILDCARD
-
Fields inherited from class sc.lang.java.AbstractErrorNode
errorArgs
-
Fields inherited from class sc.lang.java.JavaSemanticNode
debugDisablePrettyToString, STOP_SEARCHING_SENTINEL
-
Fields inherited from class sc.lang.SemanticNode
debugDiffTrace, initialized, PARENT_NODE_PROPERTY, parentNode, PARSE_NODE_PROPERTY, parseletId, parseNode, parseNodeInvalid, processed, started, transformed, validated
-
Fields inherited from interface sc.lang.ISemanticNode
CopyAll, CopyIndependent, CopyInitLevels, CopyNormal, CopyParseNode, CopyReplace, CopyState, CopyTransformed, SkipParseNode
-
-
Constructor Summary
Constructors Constructor Description ImportDeclaration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
addNodeCompletions(JavaModel origModel, JavaSemanticNode origNode, java.lang.String matchPrefix, int offset, java.lang.String dummyIdentifier, java.util.Set<java.lang.String> candidates, boolean nextNameInPath, int max)
This works like suggestCompletions but designed to conform to the requirements of IntelliJ.static ImportDeclaration
create(java.lang.String ident)
static ImportDeclaration
createStatic(java.lang.String ident)
java.lang.String
getIdentifierPrefix()
boolean
hasWildcard()
java.lang.String
toSafeLanguageString()
java.lang.String
toString()
-
Methods inherited from class sc.lang.java.AbstractErrorNode
displayError, displayTypeError, getNodeErrorText, getNotFoundError, hasErrors, stop
-
Methods inherited from class sc.lang.java.JavaSemanticNode
addDependentType, applyPartialValue, canInsertStatementBefore, declaresConstructor, definesConstructor, definesMember, definesMethod, definesType, detectCycles, displayFormattedError, displayVerboseWarning, displayWarning, findMember, findMemberOwner, findMethod, findStatement, findType, findType, getDependencyDisabledText, getEnclosingBlockStatement, getEnclosingIMethod, getEnclosingIType, getEnclosingMethod, getEnclosingMethod, getEnclosingStatement, getEnclosingTag, getEnclosingTemplate, getEnclosingType, getExecMode, getImportedTypeName, getJavaLanguage, getJavaModel, getLayeredSystem, getMessageString, getRootTag, getRootType, getStructuralEnclosingType, isCollapsibleNode, isDynamicType, isReferenceValueObject, isStatic, needsDataBinding, refreshNode, runtimeError, suggestCompletions, toFileString, toGenerateString, transformTemplate, visitTypeReferences
-
Methods inherited from class sc.lang.SemanticNode
changeLanguage, clearInitialized, clearParseNode, clearStarted, computeNearString, containsChild, deepCopy, deepEquals, diffNode, ensureValidated, equals, formatLeftParenDelegateToParent, formatSpaceBeforeAngleBracket, getAnyChildParseNode, getChildAtIndex, getChildNestingDepth, getEnclosingSrcStatement, getLanguageModel, getNestingDepth, getNodeCount, getNodeErrorRange, getNodeWarningText, getParentNode, getParseErrorNode, getParseletId, getParseNode, getRootNode, getStartIndex, getStopSemanticProps, getTransformed, getUserVisibleName, hashCode, indexOfChild, init, isInitialized, isParseNodeValid, isProcessed, isSemanticChildValue, isSemanticProperty, isSemanticProperty, isStarted, isTrailingSrcStatement, isValidated, needsTransform, process, regenerate, regenerateIfTracking, removeChild, replaceChild, restoreParseNode, restoreParseNode, sameSrcLocation, serialize, setParentNode, setParseErrorNode, setParselet, setParseletId, setParseNode, setParseNodeValid, setProperty, setProperty, spaceAfterParen, start, styleNode, styleNode, toDeclarationString, toDefinitionString, toDefinitionString, toDefinitionString, toHeaderString, toLanguageString, toLanguageString, toLocationString, toLocationString, toLocationString, toModelString, toModelString, transform, validate, validateParseNode
-
-
-
-
Field Detail
-
WILDCARD
public static final java.lang.String WILDCARD
- See Also:
- Constant Field Values
-
staticImport
public boolean staticImport
-
identifier
public java.lang.String identifier
-
-
Method Detail
-
hasWildcard
public boolean hasWildcard()
-
getIdentifierPrefix
public java.lang.String getIdentifierPrefix()
-
create
public static ImportDeclaration create(java.lang.String ident)
-
createStatic
public static ImportDeclaration createStatic(java.lang.String ident)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toSafeLanguageString
public java.lang.String toSafeLanguageString()
- Overrides:
toSafeLanguageString
in classSemanticNode
-
addNodeCompletions
public java.lang.String addNodeCompletions(JavaModel origModel, JavaSemanticNode origNode, java.lang.String matchPrefix, int offset, java.lang.String dummyIdentifier, java.util.Set<java.lang.String> candidates, boolean nextNameInPath, int max)
Description copied from class:JavaSemanticNode
This works like suggestCompletions but designed to conform to the requirements of IntelliJ. We don't support the live programming use case in this version and have access (possibly) to the original model and original node which most closely approximates this node which is being parsed (so we can use more context to do a better job of matching because those values are all resolved).- Overrides:
addNodeCompletions
in classJavaSemanticNode
-
-