/** * Internal synonym for {@link TypeDeclarationStatement#getTypeDeclaration()}. Use to alleviate * deprecation warnings. * @deprecated * @since 3.4 */ private static TypeDeclaration getTypeDeclaration(TypeDeclarationStatement node) { return node.getTypeDeclaration(); }
/** * Internal synonym for {@link TypeDeclarationStatement#getTypeDeclaration()}. Use to alleviate * deprecation warnings. * @deprecated * @since 3.4 */ private static TypeDeclaration getTypeDeclaration(TypeDeclarationStatement node) { return node.getTypeDeclaration(); }
/** * Internal synonym for {@link TypeDeclarationStatement#getTypeDeclaration()}. Use to alleviate * deprecation warnings. * @deprecated * @since 3.4 */ private static TypeDeclaration getTypeDeclaration(TypeDeclarationStatement node) { return node.getTypeDeclaration(); }
/** * Internal synonym for {@link TypeDeclarationStatement#getTypeDeclaration()}. Use to alleviate * deprecation warnings. * @deprecated * @since 3.4 */ private static TypeDeclaration getTypeDeclaration(TypeDeclarationStatement node) { return node.getTypeDeclaration(); }
/** * Internal synonym for {@link TypeDeclarationStatement#getTypeDeclaration()}. Use to alleviate * deprecation warnings. * @deprecated * @since 3.4 */ private TypeDeclaration getTypeDeclaration(TypeDeclarationStatement node) { return node.getTypeDeclaration(); }
/** * Internal synonym for {@link TypeDeclarationStatement#getTypeDeclaration()}. Use to alleviate * deprecation warnings. * @deprecated * @since 3.4 */ private static TypeDeclaration getTypeDeclaration(TypeDeclarationStatement node) { return node.getTypeDeclaration(); }
final ASTNode internalGetSetChildProperty(ChildPropertyDescriptor property, boolean get, ASTNode child) { if (property == TYPE_DECLARATION_PROPERTY) { if (get) { return getTypeDeclaration(); } else { setTypeDeclaration((TypeDeclaration) child); return null; } } if (property == DECLARATION_PROPERTY) { if (get) { return getDeclaration(); } else { setDeclaration((AbstractTypeDeclaration) child); return null; } } // allow default implementation to flag the error return super.internalGetSetChildProperty(property, get, child); }
final ASTNode internalGetSetChildProperty(ChildPropertyDescriptor property, boolean get, ASTNode child) { if (property == TYPE_DECLARATION_PROPERTY) { if (get) { return getTypeDeclaration(); } else { setTypeDeclaration((TypeDeclaration) child); return null; } } if (property == DECLARATION_PROPERTY) { if (get) { return getDeclaration(); } else { setDeclaration((AbstractTypeDeclaration) child); return null; } } // allow default implementation to flag the error return super.internalGetSetChildProperty(property, get, child); }
final ASTNode internalGetSetChildProperty(ChildPropertyDescriptor property, boolean get, ASTNode child) { if (property == TYPE_DECLARATION_PROPERTY) { if (get) { return getTypeDeclaration(); } else { setTypeDeclaration((TypeDeclaration) child); return null; } } if (property == DECLARATION_PROPERTY) { if (get) { return getDeclaration(); } else { setDeclaration((AbstractTypeDeclaration) child); return null; } } // allow default implementation to flag the error return super.internalGetSetChildProperty(property, get, child); }
final ASTNode internalGetSetChildProperty(ChildPropertyDescriptor property, boolean get, ASTNode child) { if (property == TYPE_DECLARATION_PROPERTY) { if (get) { return getTypeDeclaration(); } else { setTypeDeclaration((TypeDeclaration) child); return null; } } if (property == DECLARATION_PROPERTY) { if (get) { return getDeclaration(); } else { setDeclaration((AbstractTypeDeclaration) child); return null; } } // allow default implementation to flag the error return super.internalGetSetChildProperty(property, get, child); }
@Override final ASTNode internalGetSetChildProperty(ChildPropertyDescriptor property, boolean get, ASTNode child) { if (property == TYPE_DECLARATION_PROPERTY) { if (get) { return getTypeDeclaration(); } else { setTypeDeclaration((TypeDeclaration) child); return null; } } if (property == DECLARATION_PROPERTY) { if (get) { return getDeclaration(); } else { setDeclaration((AbstractTypeDeclaration) child); return null; } } // allow default implementation to flag the error return super.internalGetSetChildProperty(property, get, child); }
final ASTNode internalGetSetChildProperty(ChildPropertyDescriptor property, boolean get, ASTNode child) { if (property == TYPE_DECLARATION_PROPERTY) { if (get) { return getTypeDeclaration(); } else { setTypeDeclaration((TypeDeclaration) child); return null; } } if (property == DECLARATION_PROPERTY) { if (get) { return getDeclaration(); } else { setDeclaration((AbstractTypeDeclaration) child); return null; } } // allow default implementation to flag the error return super.internalGetSetChildProperty(property, get, child); }
public boolean visit(TypeDeclarationStatement node) { IValue typeDeclaration; if (node.getAST().apiLevel() == AST.JLS2) { typeDeclaration = visitChild(node.getTypeDeclaration()); } else { typeDeclaration = visitChild(node.getDeclaration()); } ownValue = constructStatementNode("declarationStatement", typeDeclaration); return false; }
public boolean visit(TypeDeclarationStatement node) { if (node.getAST().apiLevel() == AST.JLS2) { fScope.addName(node.getTypeDeclaration().getName().getIdentifier()); } else { fScope.addName(node.getDeclaration().getName().getIdentifier()); } return false; }
public boolean visit(TypeDeclarationStatement node) { if (node.getAST().apiLevel() == AST.JLS2) { node.getTypeDeclaration().accept(this); } if (node.getAST().apiLevel() >= AST.JLS3) { node.getDeclaration().accept(this); } return false; }