本文整理汇总了Java中org.walkmod.javalang.ast.stmt.ExplicitConstructorInvocationStmt.getExpr方法的典型用法代码示例。如果您正苦于以下问题:Java ExplicitConstructorInvocationStmt.getExpr方法的具体用法?Java ExplicitConstructorInvocationStmt.getExpr怎么用?Java ExplicitConstructorInvocationStmt.getExpr使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.walkmod.javalang.ast.stmt.ExplicitConstructorInvocationStmt
的用法示例。
在下文中一共展示了ExplicitConstructorInvocationStmt.getExpr方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: visit
import org.walkmod.javalang.ast.stmt.ExplicitConstructorInvocationStmt; //导入方法依赖的package包/类
@Override
public void visit(ExplicitConstructorInvocationStmt n, A arg) {
if (!n.isThis()) {
if (n.getExpr() != null) {
n.getExpr().accept(expressionTypeAnalyzer, arg);
n.setSymbolData(n.getExpr().getSymbolData());
}
}
// resolve constructor symbol data
n.accept(expressionTypeAnalyzer, arg);
if (n.getTypeArgs() != null) {
for (Type t : n.getTypeArgs()) {
t.accept(this, arg);
}
}
if (n.getArgs() != null) {
for (Expression e : n.getArgs()) {
e.accept(expressionTypeAnalyzer, arg);
}
}
}
示例2: visit
import org.walkmod.javalang.ast.stmt.ExplicitConstructorInvocationStmt; //导入方法依赖的package包/类
public R visit(ExplicitConstructorInvocationStmt n, A arg) {
if (!n.isThis()) {
if (n.getExpr() != null) {
n.getExpr().accept(this, arg);
}
}
if (n.getTypeArgs() != null) {
for (Type t : n.getTypeArgs()) {
t.accept(this, arg);
}
}
if (n.getArgs() != null) {
for (Expression e : n.getArgs()) {
e.accept(this, arg);
}
}
return null;
}
示例3: visit
import org.walkmod.javalang.ast.stmt.ExplicitConstructorInvocationStmt; //导入方法依赖的package包/类
public void visit(ExplicitConstructorInvocationStmt n, Object arg) {
prepareComments(n);
printPreviousComments(n, arg);
if (n.isThis()) {
printTypeArgs(n.getTypeArgs(), arg);
printer.print("this");
} else {
if (n.getExpr() != null) {
n.getExpr().accept(this, arg);
printer.print(".");
}
printTypeArgs(n.getTypeArgs(), arg);
printer.print("super");
}
printArguments(n.getArgs(), arg);
printer.print(";");
}
示例4: visit
import org.walkmod.javalang.ast.stmt.ExplicitConstructorInvocationStmt; //导入方法依赖的package包/类
public void visit(ExplicitConstructorInvocationStmt n, A arg) {
if (!n.isThis()) {
if (n.getExpr() != null) {
n.getExpr().accept(this, arg);
}
}
if (n.getTypeArgs() != null) {
for (Type t : n.getTypeArgs()) {
t.accept(this, arg);
}
}
if (n.getArgs() != null) {
for (Expression e : n.getArgs()) {
e.accept(this, arg);
}
}
}
示例5: visit
import org.walkmod.javalang.ast.stmt.ExplicitConstructorInvocationStmt; //导入方法依赖的package包/类
public Node visit(ExplicitConstructorInvocationStmt n, A arg) {
if (!n.isThis()) {
if (n.getExpr() != null) {
n.setExpr((Expression) n.getExpr().accept(this, arg));
}
}
List<Type> typeArgs = n.getTypeArgs();
if (typeArgs != null) {
for (int i = 0; i < typeArgs.size(); i++) {
typeArgs.set(i, (Type) typeArgs.get(i).accept(this, arg));
}
removeNulls(typeArgs);
}
List<Expression> args = n.getArgs();
if (args != null) {
for (int i = 0; i < args.size(); i++) {
args.set(i, (Expression) args.get(i).accept(this, arg));
}
removeNulls(args);
}
return n;
}