本文整理汇总了Java中com.sun.mirror.util.DeclarationVisitor类的典型用法代码示例。如果您正苦于以下问题:Java DeclarationVisitor类的具体用法?Java DeclarationVisitor怎么用?Java DeclarationVisitor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DeclarationVisitor类属于com.sun.mirror.util包,在下文中一共展示了DeclarationVisitor类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: process
import com.sun.mirror.util.DeclarationVisitor; //导入依赖的package包/类
public void process() {
Collection<TypeDeclaration> declarations = environment.getTypeDeclarations();
DeclarationVisitor scanner = DeclarationVisitors.getSourceOrderDeclarationScanner( declarationVisitor,
DeclarationVisitors.NO_OP );
for ( TypeDeclaration declaration : declarations ) {
// invoke the processing on the scanner.
declaration.accept( scanner );
}
}
示例2: accept
import com.sun.mirror.util.DeclarationVisitor; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
public void accept(DeclarationVisitor v) {
v.visitMethodDeclaration(this);
}
示例3: accept
import com.sun.mirror.util.DeclarationVisitor; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
public void accept(DeclarationVisitor v) {
v.visitMemberDeclaration(this);
}
示例4: accept
import com.sun.mirror.util.DeclarationVisitor; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
public void accept(DeclarationVisitor v) {
v.visitInterfaceDeclaration(this);
}
示例5: accept
import com.sun.mirror.util.DeclarationVisitor; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
public void accept(DeclarationVisitor v) {
v.visitConstructorDeclaration(this);
}
示例6: accept
import com.sun.mirror.util.DeclarationVisitor; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
public void accept(DeclarationVisitor v) {
v.visitTypeParameterDeclaration(this);
}
示例7: accept
import com.sun.mirror.util.DeclarationVisitor; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
public void accept(DeclarationVisitor v) {
v.visitParameterDeclaration(this);
}
示例8: accept
import com.sun.mirror.util.DeclarationVisitor; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
public void accept(DeclarationVisitor v) {
v.visitAnnotationTypeElementDeclaration(this);
}
示例9: accept
import com.sun.mirror.util.DeclarationVisitor; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
public void accept(DeclarationVisitor v) {
v.visitTypeDeclaration(this);
}
示例10: accept
import com.sun.mirror.util.DeclarationVisitor; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
public void accept(DeclarationVisitor v) {
v.visitFieldDeclaration(this);
}
示例11: accept
import com.sun.mirror.util.DeclarationVisitor; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
public void accept(DeclarationVisitor v) {
v.visitEnumConstantDeclaration(this);
}
示例12: accept
import com.sun.mirror.util.DeclarationVisitor; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
public void accept(DeclarationVisitor v) {
v.visitClassDeclaration(this);
}
示例13: accept
import com.sun.mirror.util.DeclarationVisitor; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
public void accept(DeclarationVisitor v) {
v.visitAnnotationTypeDeclaration(this);
}