@Override public String getFullyQualifiedParameterizedName() throws JavaModelException { if (isResolved()) { return getFullyQualifiedParameterizedName(getFullyQualifiedName('.'), this.getKey()); } return getFullyQualifiedName('.', true/*show parameters*/); }
public void flushAssistState(){ this.assistNode = null; this.isOrphanCompletionNode = false; setAssistIdentifier(null); } protected void flushElementStack() {
@Override protected void consumeSingleTypeImportDeclarationName() { super.consumeSingleTypeImportDeclarationName(); this.pendingAnnotation = null; // the pending annotation cannot be attached to next nodes } @Override
public AssistParser(ProblemReporter problemReporter) { super(problemReporter, true); this.javadocParser.checkDocComment = false; setMethodsFullRecovery(false); setStatementsRecovery(false); }
@Override protected void consumeStaticImportOnDemandDeclarationName() { super.consumeStaticImportOnDemandDeclarationName(); this.pendingAnnotation = null; // the pending annotation cannot be attached to next nodes } @Override
@Override protected void consumeAnnotationTypeDeclarationHeaderNameWithTypeParameters() { super.consumeAnnotationTypeDeclarationHeaderNameWithTypeParameters(); this.hasUnusedModifiers = false; if (this.pendingAnnotation != null) { this.pendingAnnotation.potentialAnnotatedNode = this.astStack[this.astPtr]; this.pendingAnnotation = null; } } @Override
protected void consumeEnumHeaderNameWithTypeParameters() { super.consumeEnumHeaderNameWithTypeParameters(); if (this.pendingAnnotation != null) { this.pendingAnnotation.potentialAnnotatedNode = this.astStack[this.astPtr]; this.pendingAnnotation = null; } } protected void consumeEqualityExpression(int op) {
protected void consumePackageDeclarationNameWithModifiers() { super.consumePackageDeclarationNameWithModifiers(); if (this.pendingAnnotation != null) { this.pendingAnnotation.potentialAnnotatedNode = this.compilationUnit.currentPackage; this.pendingAnnotation = null; } } protected void consumePrimaryNoNewArrayName() {
protected void consumeTypeImportOnDemandDeclarationName() { super.consumeTypeImportOnDemandDeclarationName(); this.pendingAnnotation = null; // the pending annotation cannot be attached to next nodes } protected void consumeImportDeclaration() {
public CompilationUnitDeclaration parse(ICompilationUnit sourceUnit, CompilationResult compilationResult, int start, int end) { if (end == -1) return super.parse(sourceUnit, compilationResult, start, end); this.selectionStart = start; this.selectionEnd = end; SelectionScanner selectionScanner = (SelectionScanner)this.scanner; selectionScanner.selectionIdentifier = null; selectionScanner.selectionStart = start; selectionScanner.selectionEnd = end; return super.parse(sourceUnit, compilationResult, -1, -1/*parse without reseting the scanner*/); }
/** * Parse the block statements inside the given method declaration and try to complete at the * cursor location. */ public void parseBlockStatements(AbstractMethodDeclaration md, CompilationUnitDeclaration unit) { if (md instanceof MethodDeclaration) { parseBlockStatements((MethodDeclaration) md, unit); } else if (md instanceof ConstructorDeclaration) { parseBlockStatements((ConstructorDeclaration) md, unit); } } /**
/** * Initializing the assist options with external settings */ public AssistOptions(Map settings) { if (settings == null) return; set(settings); } public void set(Map optionsMap) {
protected TypeReference augmentTypeWithAdditionalDimensions(TypeReference typeRef, int additionalDimensions, Annotation[][] additionalAnnotations, boolean isVarargs) { if (this.assistNode == typeRef) { return typeRef; } TypeReference result = super.augmentTypeWithAdditionalDimensions(typeRef, additionalDimensions, additionalAnnotations, isVarargs); if (this.assistNodeParent == typeRef) { this.assistNodeParent = result; } return result; } public CompilationUnitDeclaration dietParse(ICompilationUnit sourceUnit, CompilationResult compilationResult, int cursorLoc) {
public void copyState(Parser from) { super.copyState(from); CompletionParser parser = (CompletionParser) from; this.invocationType = parser.invocationType; this.qualifier = parser.qualifier; this.inReferenceExpression = parser.inReferenceExpression; this.hasUnusedModifiers = parser.hasUnusedModifiers; this.canBeExplicitConstructor = parser.canBeExplicitConstructor; } /*
@Override protected void consumeQualifiedSuperReceiver() { // this is class literal access, so reset potential receiver this.invocationType = NO_RECEIVER; this.qualifier = -1; super.consumeQualifiedSuperReceiver(); } @Override
protected void consumeClassInstanceCreationExpressionName() { super.consumeClassInstanceCreationExpressionName(); this.invocationType = QUALIFIED_ALLOCATION; this.qualifier = this.expressionPtr; } protected void consumeClassTypeElt() {
protected void consumeBlockStatement() { super.consumeBlockStatement(); if (this.selectionNodeFound) { this.restartRecovery = true; } } protected void consumeMarkerAnnotation(boolean isTypeAnnotation) {
public void flushAssistState(){ this.assistNode = null; this.isOrphanCompletionNode = false; setAssistIdentifier(null); } protected void flushElementStack() {
protected void consumeSingleTypeImportDeclarationName() { super.consumeSingleTypeImportDeclarationName(); this.pendingAnnotation = null; // the pending annotation cannot be attached to next nodes } protected void consumeStatementBreakWithLabel() {
protected void consumeStaticImportOnDemandDeclarationName() { super.consumeStaticImportOnDemandDeclarationName(); this.pendingAnnotation = null; // the pending annotation cannot be attached to next nodes } protected void consumeStaticInitializer() {