本文整理了Java中org.eclipse.jdt.internal.compiler.parser.Parser.parse()
方法的一些代码示例,展示了Parser.parse()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Parser.parse()
方法的具体详情如下:
包路径:org.eclipse.jdt.internal.compiler.parser.Parser
类名称:Parser
方法名:parse
暂无
代码示例来源:origin: org.eclipse.jdt.core.compiler/ecj
public void parseStatements(
Parser parser,
TypeDeclaration typeDeclaration,
CompilationUnitDeclaration unit) {
//fill up the method body with statement
parser.parse(this, typeDeclaration, unit);
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
@Override
protected void parse() {
this.diet = true;
this.dietInt = 0;
super.parse();
}
/*
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
public void parseStatements(
Parser parser,
TypeDeclaration typeDeclaration,
CompilationUnitDeclaration unit) {
//fill up the method body with statement
parser.parse(this, typeDeclaration, unit);
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
@Override
public void parseStatements(Parser parser, CompilationUnitDeclaration unit) {
//fill up the method body with statement
parser.parse(this, unit);
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core
public void parseStatements(
Parser parser,
TypeDeclaration typeDeclaration,
CompilationUnitDeclaration unit) {
//fill up the method body with statement
parser.parse(this, typeDeclaration, unit);
}
代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core
public void parseStatements(
Parser parser,
TypeDeclaration typeDeclaration,
CompilationUnitDeclaration unit) {
//fill up the method body with statement
parser.parse(this, typeDeclaration, unit);
}
代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core
public CompilationUnitDeclaration dietParse(ICompilationUnit sourceUnit, CompilationResult compilationResult) {
CompilationUnitDeclaration parsedUnit;
boolean old = this.diet;
try {
this.diet = true;
parsedUnit = parse(sourceUnit, compilationResult);
} finally {
this.diet = old;
}
return parsedUnit;
}
protected void dispatchDeclarationInto(int length) {
代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core
protected void parse() {
this.diet = true;
super.parse();
}
/*
代码示例来源:origin: org.eclipse.scout.sdk.deps/ecj
public void parseStatements(
Parser parser,
TypeDeclaration typeDeclaration,
CompilationUnitDeclaration unit) {
//fill up the method body with statement
parser.parse(this, typeDeclaration, unit);
}
代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core
public CompilationUnitDeclaration dietParse(ICompilationUnit sourceUnit, CompilationResult compilationResult) {
CompilationUnitDeclaration parsedUnit;
boolean old = this.diet;
try {
this.diet = true;
parsedUnit = parse(sourceUnit, compilationResult);
} finally {
this.diet = old;
}
return parsedUnit;
}
protected void dispatchDeclarationInto(int length) {
代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core
public void parseStatements(
Parser parser,
TypeDeclaration typeDeclaration,
CompilationUnitDeclaration unit) {
//fill up the method body with statement
parser.parse(this, typeDeclaration, unit);
}
代码示例来源:origin: com.vaadin/vaadin-client-compiler-deps
protected void parse() {
this.diet = true;
super.parse();
}
/*
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
@Override
public void parseStatements(Parser parser, CompilationUnitDeclaration unit) {
//fill up the constructor body with its statements
if (((this.bits & ASTNode.IsDefaultConstructor) != 0) && this.constructorCall == null){
this.constructorCall = SuperReference.implicitSuperConstructorCall();
this.constructorCall.sourceStart = this.sourceStart;
this.constructorCall.sourceEnd = this.sourceEnd;
return;
}
parser.parse(this, unit, false);
}
代码示例来源:origin: org.eclipse.jdt.core.compiler/ecj
public void parseStatements(Parser parser, CompilationUnitDeclaration unit) {
//fill up the constructor body with its statements
if (((this.bits & ASTNode.IsDefaultConstructor) != 0) && this.constructorCall == null){
this.constructorCall = SuperReference.implicitSuperConstructorCall();
this.constructorCall.sourceStart = this.sourceStart;
this.constructorCall.sourceEnd = this.sourceEnd;
return;
}
parser.parse(this, unit, false);
}
代码示例来源:origin: org.eclipse.jetty.orbit/org.eclipse.jdt.core
public void parseStatements(Parser parser, CompilationUnitDeclaration unit) {
//fill up the constructor body with its statements
if (((this.bits & ASTNode.IsDefaultConstructor) != 0) && this.constructorCall == null){
this.constructorCall = SuperReference.implicitSuperConstructorCall();
this.constructorCall.sourceStart = this.sourceStart;
this.constructorCall.sourceEnd = this.sourceEnd;
return;
}
parser.parse(this, unit, false);
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/ecj
public void parseStatements(Parser parser, CompilationUnitDeclaration unit) {
//fill up the constructor body with its statements
if (((this.bits & ASTNode.IsDefaultConstructor) != 0) && this.constructorCall == null){
this.constructorCall = SuperReference.implicitSuperConstructorCall();
this.constructorCall.sourceStart = this.sourceStart;
this.constructorCall.sourceEnd = this.sourceEnd;
return;
}
parser.parse(this, unit, false);
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
public void acceptModuleInfo(ICompilationUnit cu, Parser parser) {
CompilationResult compilationResult = new CompilationResult(cu, 0, 1, 10);
CompilationUnitDeclaration unit = parser.parse(cu, compilationResult);
// Request could also come in when module-info has changed or removed.
if (unit.isModuleInfo() && unit.moduleDeclaration != null) {
this.module = new BasicModule(unit.moduleDeclaration, null);
}
}
@Override
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
private static IModule extractModuleFromSource(File file, Parser parser, Classpath pathEntry) {
ICompilationUnit cu = new CompilationUnit(null, file.getAbsolutePath(), null, pathEntry.getDestinationPath());
CompilationResult compilationResult = new CompilationResult(cu, 0, 1, 10);
CompilationUnitDeclaration unit = parser.parse(cu, compilationResult);
if (unit.isModuleInfo() && unit.moduleDeclaration != null) {
return new BasicModule(unit.moduleDeclaration, pathEntry);
}
return null;
}
}
代码示例来源:origin: org.eclipse.jdt.core.compiler/ecj
private static enum LocalTypeKind {
LOCAL,
METHOD_REFERENCE,
LAMBDA,
}
代码示例来源:origin: com.vaadin/vaadin-client-compiler-deps
private static enum LocalTypeKind {
LOCAL,
METHOD_REFERENCE,
LAMBDA,
}
内容来源于网络,如有侵权,请联系作者删除!