本文整理了Java中org.eclipse.jdt.internal.compiler.ast.LocalDeclaration
类的一些代码示例,展示了LocalDeclaration
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。LocalDeclaration
类的具体详情如下:
包路径:org.eclipse.jdt.internal.compiler.ast.LocalDeclaration
类名称:LocalDeclaration
暂无
代码示例来源:origin: org.eclipse.jdt.core.compiler/ecj
protected LocalDeclaration createLocalDeclaration(char[] localDeclarationName, int sourceStart, int sourceEnd) {
return new LocalDeclaration(localDeclarationName, sourceStart, sourceEnd);
}
protected StringLiteral createStringLiteral(char[] token, int start, int end, int lineNumber) {
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
public void getAllAnnotationContexts(int targetType, int parameterIndex, List allAnnotationContexts) {
AnnotationCollector collector = new AnnotationCollector(this, targetType, parameterIndex, allAnnotationContexts);
this.traverse(collector, (BlockScope) null);
}
代码示例来源:origin: org.eclipse.jdt.core.compiler/ecj
public String toString(int tab) {
return tabString(tab) + "Recovered local variable:\n" + this.localDeclaration.print(tab + 1, new StringBuffer(10)); //$NON-NLS-1$
}
public Statement updatedStatement(int depth, Set knownTypes){
代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core
checkModifiers();
if (variableType != null) {
if (variableType == TypeBinding.VOID) {
CastExpression.checkNeedForAssignedCast(scope, variableType, (CastExpression) this.initialization);
} else if (isBoxingCompatible(initializationType, variableType, this.initialization, scope)) {
this.initialization.computeConversion(scope, variableType, initializationType);
if (this.initialization instanceof CastExpression
resolveAnnotations(scope, this.annotations, this.binding);
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
handleNonNullByDefault(scope, this.annotations, this);
boolean isTypeNameVar = isTypeNameVar(scope);
if (isTypeNameVar) {
if ((this.bits & ASTNode.IsForeachElementVariable) == 0) {
variableType = checkInferredLocalVariableInitializer(scope);
variableTypeInferenceError = variableType != null;
} else {
checkModifiers();
if (variableType != null) {
if (variableType == TypeBinding.VOID) {
variableType = patchType(this.initialization.resolvedType);
} else {
variableTypeInferenceError = true;
resolveAnnotations(scope, this.annotations, this.binding, true);
} else if (isBoxingCompatible(initializationType, variableType, this.initialization, scope)) {
this.initialization.computeConversion(scope, variableType, initializationType);
if (this.initialization instanceof CastExpression
resolveAnnotations(scope, this.annotations, this.binding, true);
Annotation.isTypeUseCompatible(this.type, scope, this.annotations);
validateNullAnnotations(scope);
代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core
handleNonNullByDefault(scope, this.annotations, this);
checkModifiers();
if (variableType != null) {
if (variableType == TypeBinding.VOID) {
CastExpression.checkNeedForAssignedCast(scope, variableType, (CastExpression) this.initialization);
} else if (isBoxingCompatible(initializationType, variableType, this.initialization, scope)) {
this.initialization.computeConversion(scope, variableType, initializationType);
if (this.initialization instanceof CastExpression
resolveAnnotations(scope, this.annotations, this.binding, true);
Annotation.isTypeUseCompatible(this.type, scope, this.annotations);
if (!scope.validateNullAnnotation(this.binding.tagBits, this.type, this.annotations))
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
@Override
public void resolve(BlockScope scope) {
super.resolve(scope);
throw new CompletionNodeFound(this, scope);
}
代码示例来源:origin: org.eclipse.jdt.core.compiler/ecj
public StringBuffer printStatement(int indent, StringBuffer output) {
printIndent(indent, output).append("for ("); //$NON-NLS-1$
this.elementVariable.printAsExpression(0, output);
output.append(" : ");//$NON-NLS-1$
if (this.collection != null) {
this.collection.print(0, output).append(") "); //$NON-NLS-1$
} else {
output.append(')');
}
//block
if (this.action == null) {
output.append(';');
} else {
output.append('\n');
this.action.printStatement(indent + 1, output);
}
return output;
}
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
flowInfo = this.elementVariable.analyseCode(this.scope, flowContext, flowInfo);
FlowInfo cOndInfo= this.collection.analyseCode(this.scope, flowContext, flowInfo.copy());
代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core
this.resourceExceptionLabels[i].placeStart();
if (i
代码示例来源:origin: org.eclipse.jetty.orbit/org.eclipse.jdt.core
flowInfo = this.elementVariable.analyseCode(this.scope, flowContext, flowInfo);
FlowInfo cOndInfo= this.collection.analyseCode(this.scope, flowContext, flowInfo.copy());
LocalVariableBinding elementVarBinding = this.elementVariable.binding;
if (currentScope.compilerOptions().isAnnotationBasedNullAnalysisEnabled) {
int nullStatus = this.elementVariable.checkAssignmentAgainstNullAnnotation(currentScope, flowContext,
elementVarBinding, FlowInfo.UNKNOWN, this.collection, this.collectionElementType);
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
checkModifiers();
if (variableType != null) {
if (variableType == TypeBinding.VOID) {
CastExpression.checkNeedForAssignedCast(scope, variableType, (CastExpression) this.initialization);
} else if (isBoxingCompatible(initializationType, variableType, this.initialization, scope)) {
this.initialization.computeConversion(scope, variableType, initializationType);
if (this.initialization instanceof CastExpression
resolveAnnotations(scope, this.annotations, this.binding);
代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core
public void resolve(BlockScope scope) {
super.resolve(scope);
throw new SelectionNodeFound(this.binding);
}
代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core
public StringBuffer printStatement(int indent, StringBuffer output) {
printIndent(indent, output).append("for ("); //$NON-NLS-1$
this.elementVariable.printAsExpression(0, output);
output.append(" : ");//$NON-NLS-1$
if (this.collection != null) {
this.collection.print(0, output).append(") "); //$NON-NLS-1$
} else {
output.append(')');
}
//block
if (this.action == null) {
output.append(';');
} else {
output.append('\n');
this.action.printStatement(indent + 1, output);
}
return output;
}
代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core
flowInfo = this.elementVariable.analyseCode(this.scope, flowContext, flowInfo);
FlowInfo cOndInfo= this.collection.analyseCode(this.scope, flowContext, flowInfo.copy());
代码示例来源:origin: org.eclipse.jetty.orbit/org.eclipse.jdt.core
this.resourceExceptionLabels[i].placeStart();
if (i
代码示例来源:origin: org.eclipse.jetty.orbit/org.eclipse.jdt.core
checkModifiers();
if (variableType != null) {
if (variableType == TypeBinding.VOID) {
CastExpression.checkNeedForAssignedCast(scope, variableType, (CastExpression) this.initialization);
} else if (isBoxingCompatible(initializationType, variableType, this.initialization, scope)) {
this.initialization.computeConversion(scope, variableType, initializationType);
if (this.initialization instanceof CastExpression
resolveAnnotations(scope, this.annotations, this.binding);
scope.validateNullAnnotation(this.binding.tagBits, this.type, this.annotations);
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
protected LocalDeclaration createLocalDeclaration(char[] localDeclarationName, int sourceStart, int sourceEnd) {
return new LocalDeclaration(localDeclarationName, sourceStart, sourceEnd);
}
protected StringLiteral createStringLiteral(char[] token, int start, int end, int lineNumber) {
代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core
public void getAllAnnotationContexts(int targetType, int parameterIndex, List allAnnotationContexts) {
AnnotationCollector collector = new AnnotationCollector(this, targetType, parameterIndex, allAnnotationContexts);
this.traverse(collector, (BlockScope) null);
}
代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core
public void resolve(BlockScope scope) {
super.resolve(scope);
throw new CompletionNodeFound(this, scope);
}