if (dimensionable.isArray()) { StringBuilder extra = new StringBuilder("array"); for (int i = 0; i < dimensionable.getArrayDepth(); i++) { extra.append('[');
public int getArrayDepth() { ASTVariableDeclaratorId astVariableDeclaratorId = (ASTVariableDeclaratorId) node; ASTType typeNode = astVariableDeclaratorId.getTypeNode(); if (typeNode != null) { return ((Dimensionable) typeNode.jjtGetParent()).getArrayDepth(); } else { return 0; } }
public boolean isArray() { ASTVariableDeclaratorId astVariableDeclaratorId = (ASTVariableDeclaratorId) node; ASTType typeNode = astVariableDeclaratorId.getTypeNode(); if (typeNode != null) { return ((Dimensionable) typeNode.jjtGetParent()).isArray(); } else { return false; } }
@Deprecated public int getArrayDepth() { if (jjtGetNumChildren() != 0 && (jjtGetChild(0) instanceof ASTReferenceType || jjtGetChild(0) instanceof ASTPrimitiveType)) { return ((Dimensionable) jjtGetChild(0)).getArrayDepth(); } return 0; // this is not an array }
public boolean isArray() { ASTVariableDeclaratorId astVariableDeclaratorId = (ASTVariableDeclaratorId) node; ASTType typeNode = astVariableDeclaratorId.getTypeNode(); if (typeNode != null) { return ((Dimensionable) typeNode.jjtGetParent()).isArray(); } else { return false; } }
if (dimensionable.isArray()) { StringBuilder extra = new StringBuilder("array"); for (int i = 0; i < dimensionable.getArrayDepth(); i++) { extra.append('[');
public int getArrayDepth() { ASTVariableDeclaratorId astVariableDeclaratorId = (ASTVariableDeclaratorId) node; ASTType typeNode = astVariableDeclaratorId.getTypeNode(); if (typeNode != null) { return ((Dimensionable) typeNode.jjtGetParent()).getArrayDepth(); } else { return 0; } }
@Deprecated public int getArrayDepth() { if (jjtGetNumChildren() != 0 && (jjtGetChild(0) instanceof ASTReferenceType || jjtGetChild(0) instanceof ASTPrimitiveType)) { return ((Dimensionable) jjtGetChild(0)).getArrayDepth(); } return 0; // this is not an array }