本文整理匯總了Java中org.eclipse.dltk.ast.Modifiers.AccPublic方法的典型用法代碼示例。如果您正苦於以下問題:Java Modifiers.AccPublic方法的具體用法?Java Modifiers.AccPublic怎麽用?Java Modifiers.AccPublic使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.eclipse.dltk.ast.Modifiers
的用法示例。
在下文中一共展示了Modifiers.AccPublic方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: reportMethod
import org.eclipse.dltk.ast.Modifiers; //導入方法依賴的package包/類
private String reportMethod(GnMethodDeclaration declaration) {
ASTNode nameNode = declaration.getRef();
if (declaration.getType() == Type.TEMPLATE_CALL) {
SimpleReference originalRef = declaration.getOriginalRef();
fRequestor.acceptMethodReference(originalRef.getName(), declaration.getArguments().size(),
originalRef.sourceStart(), originalRef.sourceEnd());
nameNode = declaration.getFirstArgument();
} else {
nameNode = declaration.getRef();
}
String name = nameNode.toString();
IElementRequestor.MethodInfo info = new IElementRequestor.MethodInfo();
info.declarationStart = nameNode.start();
info.name = name;
info.nameSourceStart = nameNode.start();
info.nameSourceEnd = nameNode.end() - 1;
info.modifiers =
declaration.getType() == Type.TEMPLATE ? Modifiers.AccPublic : Modifiers.AccPrivate;
fRequestor.enterMethod(info);
return name;
}
示例2: visitNamedTypedParam
import org.eclipse.dltk.ast.Modifiers; //導入方法依賴的package包/類
@Override
public ASTNode visitNamedTypedParam(NamedTypedParamContext ctx) {
SimpleReference type = (SimpleReference) visit(ctx.typeExpression());
return new Argument(type, start(ctx), stop(ctx), null, Modifiers.AccPublic);
}
示例3: visitNamedParam
import org.eclipse.dltk.ast.Modifiers; //導入方法依賴的package包/類
@Override
public ASTNode visitNamedParam(NamedParamContext ctx) {
final Token name = ctx.ID().getSymbol();
final SimpleReference reference = new SimpleReference(start(name), stop(name), name.getText());
return new Argument(reference, start(ctx), stop(ctx), null, Modifiers.AccPublic);
}
示例4: visitAnonymousTypedParam
import org.eclipse.dltk.ast.Modifiers; //導入方法依賴的package包/類
@Override
public ASTNode visitAnonymousTypedParam(AnonymousTypedParamContext ctx) {
SimpleReference type = (SimpleReference) visit(ctx.typeExpression());
return new Argument(type, start(ctx), stop(ctx), null, Modifiers.AccPublic);
}