本文整理了Java中org.eclipse.jdt.internal.compiler.lookup.BlockScope.getJavaLangThrowable()
方法的一些代码示例,展示了BlockScope.getJavaLangThrowable()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。BlockScope.getJavaLangThrowable()
方法的具体详情如下:
包路径:org.eclipse.jdt.internal.compiler.lookup.BlockScope
类名称:BlockScope
方法名:getJavaLangThrowable
暂无
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
resourceManagementScope = new BlockScope(this.scope);
this.primaryExceptionVariable =
new LocalVariableBinding(TryStatement.SECRET_PRIMARY_EXCEPTION_VARIABLE_NAME, this.scope.getJavaLangThrowable(), ClassFileConstants.AccDefault, false);
resourceManagementScope.addLocalVariable(this.primaryExceptionVariable);
this.primaryExceptionVariable.setConstant(Constant.NotAConstant); // not inlinable
this.caughtThrowableVariable =
new LocalVariableBinding(TryStatement.SECRET_CAUGHT_THROWABLE_VARIABLE_NAME, this.scope.getJavaLangThrowable(), ClassFileConstants.AccDefault, false);
resourceManagementScope.addLocalVariable(this.caughtThrowableVariable);
this.caughtThrowableVariable.setConstant(Constant.NotAConstant); // not inlinable
new LocalVariableBinding(TryStatement.SECRET_ANY_HANDLER_NAME, this.scope.getJavaLangThrowable(), ClassFileConstants.AccDefault, false);
finallyScope.addLocalVariable(this.anyExceptionVariable);
this.anyExceptionVariable.setConstant(Constant.NotAConstant); // not inlinable
代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core
new LocalVariableBinding(TryStatement.SECRET_ANY_HANDLER_NAME, this.scope.getJavaLangThrowable(), ClassFileConstants.AccDefault, false);
finallyScope.addLocalVariable(this.anyExceptionVariable);
this.anyExceptionVariable.setConstant(Constant.NotAConstant); // not inlinable
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
new LocalVariableBinding(TryStatement.SECRET_ANY_HANDLER_NAME, this.scope.getJavaLangThrowable(), ClassFileConstants.AccDefault, false);
finallyScope.addLocalVariable(this.anyExceptionVariable);
this.anyExceptionVariable.setConstant(Constant.NotAConstant); // not inlinable
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
codeStream.pushExceptionOnStack(this.scope.getJavaLangThrowable());
if (this.preSynchronizedInitStateIndex != -1) {
codeStream.removeNotDefinitelyAssignedVariables(currentScope, this.preSynchronizedInitStateIndex);
代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core
codeStream.pushExceptionOnStack(this.scope.getJavaLangThrowable());
if (this.preSynchronizedInitStateIndex != -1) {
codeStream.removeNotDefinitelyAssignedVariables(currentScope, this.preSynchronizedInitStateIndex);
代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core
codeStream.pushExceptionOnStack(this.scope.getJavaLangThrowable());
if (this.preSynchronizedInitStateIndex != -1) {
codeStream.removeNotDefinitelyAssignedVariables(currentScope, this.preSynchronizedInitStateIndex);
代码示例来源:origin: org.eclipse.jdt.core.compiler/ecj
codeStream.pushExceptionOnStack(this.scope.getJavaLangThrowable());
if (this.preSynchronizedInitStateIndex != -1) {
codeStream.removeNotDefinitelyAssignedVariables(currentScope, this.preSynchronizedInitStateIndex);
代码示例来源:origin: trylimits/Eclipse-Postfix-Code-Completion
codeStream.pushExceptionOnStack(this.scope.getJavaLangThrowable());
if (this.preSynchronizedInitStateIndex != -1) {
codeStream.removeNotDefinitelyAssignedVariables(currentScope, this.preSynchronizedInitStateIndex);
代码示例来源:origin: org.eclipse.jetty.orbit/org.eclipse.jdt.core
codeStream.pushExceptionOnStack(this.scope.getJavaLangThrowable());
if (this.preSynchronizedInitStateIndex != -1) {
codeStream.removeNotDefinitelyAssignedVariables(currentScope, this.preSynchronizedInitStateIndex);
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core
codeStream.pushExceptionOnStack(this.scope.getJavaLangThrowable());
if (this.preSynchronizedInitStateIndex != -1) {
codeStream.removeNotDefinitelyAssignedVariables(currentScope, this.preSynchronizedInitStateIndex);
代码示例来源:origin: org.eclipse.scout.sdk.deps/ecj
codeStream.pushExceptionOnStack(this.scope.getJavaLangThrowable());
if (this.preSynchronizedInitStateIndex != -1) {
codeStream.removeNotDefinitelyAssignedVariables(currentScope, this.preSynchronizedInitStateIndex);
代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core
codeStream.pushExceptionOnStack(this.scope.getJavaLangThrowable());
if (this.preSynchronizedInitStateIndex != -1) {
codeStream.removeNotDefinitelyAssignedVariables(currentScope, this.preSynchronizedInitStateIndex);
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
codeStream.pushExceptionOnStack(this.scope.getJavaLangThrowable());
if (this.preSynchronizedInitStateIndex != -1) {
codeStream.removeNotDefinitelyAssignedVariables(currentScope, this.preSynchronizedInitStateIndex);
代码示例来源:origin: com.vaadin/vaadin-client-compiler-deps
codeStream.pushExceptionOnStack(this.scope.getJavaLangThrowable());
if (this.preSynchronizedInitStateIndex != -1) {
codeStream.removeNotDefinitelyAssignedVariables(currentScope, this.preSynchronizedInitStateIndex);
代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core
public class CompletionProblemFactory extends DefaultProblemFactory {
private int lastErrorStart;
private boolean checkProblems = false;
public boolean hasForbiddenProblems = false;
public boolean hasAllowedProblems = false;
public CompletionProblemFactory(Locale loc) {
super(loc);
}
private CategorizedProblem checkProblem(CategorizedProblem pb,
char[] originatingFileName, int severity, int start) {
int id = pb.getID();
if (CompletionEngine.this.actualCompletionPosition > start
&& this.lastErrorStart < start
&& pb.isError()
&& (id & IProblem.Syntax) == 0
&& (CompletionEngine.this.fileName == null || CharOperation.equals(CompletionEngine.this.fileName, originatingFileName))) {
CompletionEngine.this.problem = pb;
this.lastErrorStart = start;
}
if (this.checkProblems && !this.hasForbiddenProblems) {
switch (id) {
case IProblem.UsingDeprecatedType:
this.hasForbiddenProblems =
CompletionEngine.this.options.checkDeprecation;
break;
case IProblem.NotVisibleType:
代码示例来源:origin: trylimits/Eclipse-Postfix-Code-Completion
public class CompletionProblemFactory extends DefaultProblemFactory {
private int lastErrorStart;
private boolean checkProblems = false;
public boolean hasForbiddenProblems = false;
public boolean hasAllowedProblems = false;
public CompletionProblemFactory(Locale loc) {
super(loc);
}
private CategorizedProblem checkProblem(CategorizedProblem pb,
char[] originatingFileName, int severity, int start) {
int id = pb.getID();
if (CompletionEngine.this.actualCompletionPosition > start
&& this.lastErrorStart < start
&& pb.isError()
&& (id & IProblem.Syntax) == 0
&& (CompletionEngine.this.fileName == null || CharOperation.equals(CompletionEngine.this.fileName, originatingFileName))) {
CompletionEngine.this.problem = pb;
this.lastErrorStart = start;
}
if (this.checkProblems && !this.hasForbiddenProblems) {
switch (id) {
case IProblem.UsingDeprecatedType:
this.hasForbiddenProblems =
CompletionEngine.this.options.checkDeprecation;
break;
case IProblem.NotVisibleType:
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
public class CompletionProblemFactory extends DefaultProblemFactory {
private int lastErrorStart;
private boolean checkProblems = false;
public boolean hasForbiddenProblems = false;
public boolean hasAllowedProblems = false;
public CompletionProblemFactory(Locale loc) {
super(loc);
}
private CategorizedProblem checkProblem(CategorizedProblem pb,
char[] originatingFileName, int severity, int start) {
int id = pb.getID();
if (CompletionEngine.this.actualCompletionPosition > start
&& this.lastErrorStart < start
&& pb.isError()
&& (id & IProblem.Syntax) == 0
&& (CompletionEngine.this.fileName == null || CharOperation.equals(CompletionEngine.this.fileName, originatingFileName))) {
CompletionEngine.this.problem = pb;
this.lastErrorStart = start;
}
if (this.checkProblems && !this.hasForbiddenProblems) {
switch (id) {
case IProblem.UsingDeprecatedType:
this.hasForbiddenProblems =
CompletionEngine.this.options.checkDeprecation;
break;
case IProblem.NotVisibleType:
代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core
public class CompletionProblemFactory extends DefaultProblemFactory {
private int lastErrorStart;
private boolean checkProblems = false;
public boolean hasForbiddenProblems = false;
public boolean hasAllowedProblems = false;
public CompletionProblemFactory(Locale loc) {
super(loc);
}
private CategorizedProblem checkProblem(CategorizedProblem pb,
char[] originatingFileName, int severity, int start) {
int id = pb.getID();
if (CompletionEngine.this.actualCompletionPosition > start
&& this.lastErrorStart < start
&& pb.isError()
&& (id & IProblem.Syntax) == 0
&& (CompletionEngine.this.fileName == null || CharOperation.equals(CompletionEngine.this.fileName, originatingFileName))) {
CompletionEngine.this.problem = pb;
this.lastErrorStart = start;
}
if (this.checkProblems && !this.hasForbiddenProblems) {
switch (id) {
case IProblem.UsingDeprecatedType:
this.hasForbiddenProblems =
CompletionEngine.this.options.checkDeprecation;
break;
case IProblem.NotVisibleType:
代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core
public class CompletionProblemFactory extends DefaultProblemFactory {
private int lastErrorStart;
private boolean checkProblems = false;
public boolean hasForbiddenProblems = false;
public boolean hasAllowedProblems = false;
public CompletionProblemFactory(Locale loc) {
super(loc);
}
private CategorizedProblem checkProblem(CategorizedProblem pb,
char[] originatingFileName, int severity, int start) {
int id = pb.getID();
if (CompletionEngine.this.actualCompletionPosition > start
&& this.lastErrorStart < start
&& pb.isError()
&& (id & IProblem.Syntax) == 0
&& (CompletionEngine.this.fileName == null || CharOperation.equals(CompletionEngine.this.fileName, originatingFileName))) {
CompletionEngine.this.problem = pb;
this.lastErrorStart = start;
}
if (this.checkProblems && !this.hasForbiddenProblems) {
switch (id) {
case IProblem.UsingDeprecatedType:
this.hasForbiddenProblems =
CompletionEngine.this.options.checkDeprecation;
break;
case IProblem.NotVisibleType:
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core
public class CompletionProblemFactory extends DefaultProblemFactory {
private int lastErrorStart;
private boolean checkProblems = false;
public boolean hasForbiddenProblems = false;
public boolean hasAllowedProblems = false;
public CompletionProblemFactory(Locale loc) {
super(loc);
}
private CategorizedProblem checkProblem(CategorizedProblem pb,
char[] originatingFileName, int severity, int start) {
int id = pb.getID();
if (CompletionEngine.this.actualCompletionPosition > start
&& this.lastErrorStart < start
&& pb.isError()
&& (id & IProblem.Syntax) == 0
&& (CompletionEngine.this.fileName == null || CharOperation.equals(CompletionEngine.this.fileName, originatingFileName))) {
CompletionEngine.this.problem = pb;
this.lastErrorStart = start;
}
if (this.checkProblems && !this.hasForbiddenProblems) {
switch (id) {
case IProblem.UsingDeprecatedType:
this.hasForbiddenProblems =
CompletionEngine.this.options.checkDeprecation;
break;
case IProblem.NotVisibleType:
内容来源于网络,如有侵权,请联系作者删除!