热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

org.eclipse.jdt.internal.compiler.ast.LocalDeclaration类的使用及代码示例

本文整理了Java中org.eclipse.jdt.internal.compiler.ast.LocalDeclaration类的一些代码示例,展示了Lo

本文整理了Java中org.eclipse.jdt.internal.compiler.ast.LocalDeclaration类的一些代码示例,展示了LocalDeclaration类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。LocalDeclaration类的具体详情如下:
包路径:org.eclipse.jdt.internal.compiler.ast.LocalDeclaration
类名称: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 this.resources[i].generateCode(this.scope, codeStream); // Initialize resources ...

代码示例来源: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 this.resources[i].generateCode(this.scope, codeStream); // Initialize resources ...

代码示例来源: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);
}

推荐阅读
author-avatar
丝兰郁香
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有