当前位置: 首页>>代码示例>>Java>>正文


Java MemberEnter.instance方法代码示例

本文整理汇总了Java中com.sun.tools.javac.comp.MemberEnter.instance方法的典型用法代码示例。如果您正苦于以下问题:Java MemberEnter.instance方法的具体用法?Java MemberEnter.instance怎么用?Java MemberEnter.instance使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.sun.tools.javac.comp.MemberEnter的用法示例。


在下文中一共展示了MemberEnter.instance方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: init

import com.sun.tools.javac.comp.MemberEnter; //导入方法依赖的package包/类
private void init(Context context) {
    modules = Modules.instance(context);
    attr = Attr.instance(context);
    enter = Enter.instance(context);
    elements = JavacElements.instance(context);
    log = Log.instance(context);
    resolve = Resolve.instance(context);
    treeMaker = TreeMaker.instance(context);
    memberEnter = MemberEnter.instance(context);
    names = Names.instance(context);
    types = Types.instance(context);
    docTreeMaker = DocTreeMaker.instance(context);
    parser = ParserFactory.instance(context);
    syms = Symtab.instance(context);
    fileManager = context.get(JavaFileManager.class);
    JavacTask t = context.get(JavacTask.class);
    if (t instanceof JavacTaskImpl)
        javacTaskImpl = (JavacTaskImpl) t;
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:20,代码来源:JavacTrees.java

示例2: TreeScannerStateful

import com.sun.tools.javac.comp.MemberEnter; //导入方法依赖的package包/类
public TreeScannerStateful(CompilationTask task, JCCompilationUnit jcc) {
  	this.jcc = jcc ;
      trees = Trees.instance(task);
      treesC = (JavacTrees)trees;
              
      //Rabbit hole to Wonderland
      context = ((BasicJavacTask)task).getContext() ;
this.task = ((BasicJavacTask)task) ;
      
      //Initialize magical classes !
      make = TreeMaker.instance(context) ;
      names = Names.instance(context) ;
      syms = Symtab.instance(context);
      types = Types.instance(context) ;
      typesC = JavacTypes.instance(context) ;
      attr = Attr.instance(context) ;
      enter = Enter.instance(context) ;
      resolve = Resolve.instance(context) ;
      memberEnter = MemberEnter.instance(context) ;
javacElements = JavacElements.instance(context) ;
info = TreeInfo.instance(context) ;

      sourcePositions = trees.getSourcePositions();
      elements = ((JavacTask)task).getElements();
      elementsC = (JavacElements)elements;
}
 
开发者ID:metabrain,项目名称:java8-plugin-persitent-local-vars,代码行数:27,代码来源:TreeScannerStateful.java

示例3: init

import com.sun.tools.javac.comp.MemberEnter; //导入方法依赖的package包/类
private void init(Context context) {
    attr = Attr.instance(context);
    enter = Enter.instance(context);
    elements = JavacElements.instance(context);
    log = Log.instance(context);
    resolve = Resolve.instance(context);
    treeMaker = TreeMaker.instance(context);
    memberEnter = MemberEnter.instance(context);
    javacTaskImpl = context.get(JavacTaskImpl.class);
}
 
开发者ID:tranleduy2000,项目名称:javaide,代码行数:11,代码来源:JavacTrees.java

示例4: init

import com.sun.tools.javac.comp.MemberEnter; //导入方法依赖的package包/类
private void init(Context context) {
    attr = Attr.instance(context);
    enter = Enter.instance(context);
    elements = JavacElements.instance(context);
    log = Log.instance(context);
    resolve = Resolve.instance(context);
    treeMaker = TreeMaker.instance(context);
    memberEnter = MemberEnter.instance(context);
    names = Names.instance(context);
    types = Types.instance(context);

    JavacTask t = context.get(JavacTask.class);
    if (t instanceof JavacTaskImpl)
        javacTaskImpl = (JavacTaskImpl) t;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:16,代码来源:JavacTrees.java

示例5: memberEnterAndAttribute

import com.sun.tools.javac.comp.MemberEnter; //导入方法依赖的package包/类
private void memberEnterAndAttribute(JCTree copy, Env<AttrContext> env, Context context) {
	MemberEnter memberEnter = MemberEnter.instance(context);
	Env<AttrContext> oldEnv = getEnvOfMemberEnter(memberEnter);
	setEnvOfMemberEnter(memberEnter, env);
	try {
		copy.accept(memberEnter);
	} catch (Exception ignore) {
		// intentionally ignored; usually even if this step fails, val will work (but not for val in method local inner classes and anonymous inner classes).
		AssertionLogger.assertLog("member enter failed.", ignore);
	} finally {
		setEnvOfMemberEnter(memberEnter, oldEnv);
	}
	attrib(copy, env);
}
 
开发者ID:git03394538,项目名称:lombok-ianchiu,代码行数:15,代码来源:JavacResolution.java

示例6: JavacTrees

import com.sun.tools.javac.comp.MemberEnter; //导入方法依赖的package包/类
private JavacTrees(Context context) {
    context.put(JavacTrees.class, this);
    attr = Attr.instance(context);
    enter = Enter.instance(context);
    elements = JavacElements.instance(context);
    log = Log.instance(context);
    resolve = Resolve.instance(context);
    treeMaker = TreeMaker.instance(context);
    memberEnter = MemberEnter.instance(context);
    javacTaskImpl = context.get(JavacTaskImpl.class);
}
 
开发者ID:unktomi,项目名称:form-follows-function,代码行数:12,代码来源:JavacTrees.java

示例7: EnvFinder

import com.sun.tools.javac.comp.MemberEnter; //导入方法依赖的package包/类
EnvFinder(Context context) {
	this.enter = Enter.instance(context);
	this.memberEnter = MemberEnter.instance(context);
}
 
开发者ID:git03394538,项目名称:lombok-ianchiu,代码行数:5,代码来源:JavacResolution.java


注:本文中的com.sun.tools.javac.comp.MemberEnter.instance方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。