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


Java EmptyTypeDeclaration类代码示例

本文整理汇总了Java中com.github.javaparser.ast.body.EmptyTypeDeclaration的典型用法代码示例。如果您正苦于以下问题:Java EmptyTypeDeclaration类的具体用法?Java EmptyTypeDeclaration怎么用?Java EmptyTypeDeclaration使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


EmptyTypeDeclaration类属于com.github.javaparser.ast.body包,在下文中一共展示了EmptyTypeDeclaration类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: visit

import com.github.javaparser.ast.body.EmptyTypeDeclaration; //导入依赖的package包/类
@Override
  public JCTree visit(final EmptyTypeDeclaration n, final Object arg) {
       /* TODO - Check how to proceed here since an empty type should
       * be represented by an empty list
if (n.getJavaDoc() != null) {
   {
      JCTree result = n.getJavaDoc().accept(this, arg);
      if (result != null) {
  return result;
      }
   }
}
return new AJCEmptyTypeDeclaration( make.EmptyTypeDeclaration( ), ( (n.getComment()!=null)?n.getComment().getContent():null ) );
       */
      System.err.println("Assigning null at:" + Thread.currentThread().getStackTrace()[1].getLineNumber());
      return null;
  }
 
开发者ID:pcgomes,项目名称:javaparser2jctree,代码行数:18,代码来源:JavaParser2JCTree.java

示例2: visit

import com.github.javaparser.ast.body.EmptyTypeDeclaration; //导入依赖的package包/类
@Override
public void visit(final EmptyTypeDeclaration n, final Object arg) {
    printer.printLn("EmptyTypeDeclaration");
    printJavaComment(n.getComment(), arg);
    printJavadoc(n.getJavaDoc(), arg);
    printer.print(";");

    printOrphanCommentsEnding(n);
}
 
开发者ID:pcgomes,项目名称:javaparser2jctree,代码行数:10,代码来源:ASTDumpVisitor.java

示例3: doMerge

import com.github.javaparser.ast.body.EmptyTypeDeclaration; //导入依赖的package包/类
@Override
public EmptyTypeDeclaration doMerge(EmptyTypeDeclaration first, EmptyTypeDeclaration second) {
  EmptyTypeDeclaration etd = new EmptyTypeDeclaration();

  etd.setJavaDoc(mergeSingle(first.getJavaDoc(),second.getJavaDoc()));
  etd.setAnnotations(mergeCollections(first.getAnnotations(),second.getAnnotations()));
  etd.setModifiers(mergeModifiers(first.getModifiers(),second.getModifiers()));
  etd.setNameExpr(mergeSingle(first.getNameExpr(),second.getNameExpr()));
  etd.setMembers(mergeCollections(first.getMembers(),second.getMembers()));

  return etd;
}
 
开发者ID:beihaifeiwu,项目名称:dolphin,代码行数:13,代码来源:EmptyTypeDeclarationMerger.java

示例4: visit

import com.github.javaparser.ast.body.EmptyTypeDeclaration; //导入依赖的package包/类
@Override
public R visit(final EmptyTypeDeclaration n, final A arg) {
	if (n.getJavaDoc() != null) {
		{
			R result = n.getJavaDoc().accept(this, arg);
			if (result != null) {
				return result;
			}
		}
	}
	return null;
}
 
开发者ID:plum-umd,项目名称:java-sketch,代码行数:13,代码来源:GenericVisitorAdapter.java

示例5: visit

import com.github.javaparser.ast.body.EmptyTypeDeclaration; //导入依赖的package包/类
@Override
public Node visit(EmptyTypeDeclaration _n, Object _arg) {
	JavadocComment javaDoc = cloneNodes(_n.getJavaDoc(), _arg);
	Comment comment = cloneNodes(_n.getComment(), _arg);

	EmptyTypeDeclaration r = new EmptyTypeDeclaration(
			_n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn()
	);
	r.setComment(comment);
	return r;
}
 
开发者ID:plum-umd,项目名称:java-sketch,代码行数:12,代码来源:CloneVisitor.java

示例6: visit

import com.github.javaparser.ast.body.EmptyTypeDeclaration; //导入依赖的package包/类
@Override public void visit(final EmptyTypeDeclaration n, final Object arg) {
printJavaComment(n.getComment(), arg);
printJavadoc(n.getJavaDoc(), arg);
printer.print(";");

       printOrphanCommentsEnding(n);
   }
 
开发者ID:plum-umd,项目名称:java-sketch,代码行数:8,代码来源:DumpVisitor.java

示例7: visit

import com.github.javaparser.ast.body.EmptyTypeDeclaration; //导入依赖的package包/类
@Override public void visit(final EmptyTypeDeclaration n, final A arg) {
    jw.write(n); 
    visitComment(n.getComment(), arg);
    if (n.getJavaDoc() != null) {
        n.getJavaDoc().accept(this, arg);
    }
}
 
开发者ID:plum-umd,项目名称:java-sketch,代码行数:8,代码来源:JsonVisitorAdapter.java

示例8: visit

import com.github.javaparser.ast.body.EmptyTypeDeclaration; //导入依赖的package包/类
@Override
public Node visit(EmptyTypeDeclaration _n, Object _arg) {
	Comment comment = cloneNodes(_n.getComment(), _arg);

	EmptyTypeDeclaration r = new EmptyTypeDeclaration(
			_n.getRange()
	);
	r.setComment(comment);
	return r;
}
 
开发者ID:javaparser,项目名称:javasymbolsolver,代码行数:11,代码来源:CloneVisitor.java

示例9: visit

import com.github.javaparser.ast.body.EmptyTypeDeclaration; //导入依赖的package包/类
@Override public void visit(final EmptyTypeDeclaration n, final Object arg) {
	printJavaComment(n.getComment(), arg);
	printJavadoc(n.getJavaDoc(), arg);
	printer.print(";");

       printOrphanCommentsEnding(n);
}
 
开发者ID:javaparser,项目名称:javasymbolsolver,代码行数:8,代码来源:DumpVisitor.java

示例10: visit

import com.github.javaparser.ast.body.EmptyTypeDeclaration; //导入依赖的package包/类
@Override
public Node visit(
    EmptyTypeDeclaration n, Map<Node, Node> arg
) {
  if (arg.containsKey(n)) {
    return arg.get(n);
  }
  return super.visit(n, arg);
}
 
开发者ID:WeTheInternet,项目名称:xapi,代码行数:10,代码来源:ConcreteModifierVisitor.java

示例11: visit

import com.github.javaparser.ast.body.EmptyTypeDeclaration; //导入依赖的package包/类
@Override
public void visit(EmptyTypeDeclaration n, Script arg) {
}
 
开发者ID:Nosorog,项目名称:nosorog-core,代码行数:4,代码来源:NoOpVisitor.java

示例12: doIsEquals

import com.github.javaparser.ast.body.EmptyTypeDeclaration; //导入依赖的package包/类
@Override
public boolean doIsEquals(EmptyTypeDeclaration first, EmptyTypeDeclaration second) {
  return true;
}
 
开发者ID:beihaifeiwu,项目名称:dolphin,代码行数:5,代码来源:EmptyTypeDeclarationMerger.java

示例13: visit

import com.github.javaparser.ast.body.EmptyTypeDeclaration; //导入依赖的package包/类
@Override public Boolean visit(final EmptyTypeDeclaration n1, final Node arg) {
	return Boolean.TRUE;
}
 
开发者ID:plum-umd,项目名称:java-sketch,代码行数:4,代码来源:EqualsVisitor.java

示例14: visit

import com.github.javaparser.ast.body.EmptyTypeDeclaration; //导入依赖的package包/类
@Override public void visit(final EmptyTypeDeclaration n, final A arg) {
	visitComment(n.getComment(), arg);
	if (n.getJavaDoc() != null) {
		n.getJavaDoc().accept(this, arg);
	}
}
 
开发者ID:plum-umd,项目名称:java-sketch,代码行数:7,代码来源:VoidVisitorAdapter.java

示例15: visit

import com.github.javaparser.ast.body.EmptyTypeDeclaration; //导入依赖的package包/类
@Override public Node visit(final EmptyTypeDeclaration n, final A arg) {
	if (n.getJavaDoc() != null) {
		n.setJavaDoc((JavadocComment) n.getJavaDoc().accept(this, arg));
	}
	return n;
}
 
开发者ID:plum-umd,项目名称:java-sketch,代码行数:7,代码来源:ModifierVisitorAdapter.java


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