Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSarika Sinha2021-08-09 09:47:11 +0000
committerSarika Sinha2021-08-09 09:48:13 +0000
commit87e350400c3a7d43be13201711e30b6362530a5b (patch)
tree50acb4f184044e130bfa138c8f3a83ebe3b2a92f /org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/NullPattern.java
parent58e496e94689961fc9b268ef7314bda7fe578f4a (diff)
downloadeclipse.jdt.core-87e350400c3a7d43be13201711e30b6362530a5b.tar.gz
eclipse.jdt.core-87e350400c3a7d43be13201711e30b6362530a5b.tar.xz
eclipse.jdt.core-87e350400c3a7d43be13201711e30b6362530a5b.zip
Revert "Bug 573941 - [17][switch pattern][ast dom] AST DOM changes for JEP 406"
This reverts commit 58e496e94689961fc9b268ef7314bda7fe578f4a. Reason for revert: As Merge from master to Beta is blocked by this. https://git.eclipse.org/r/c/jdt/eclipse.jdt.core/+/183809 Change-Id: If011afe3bef6bb74ec9eb2ec7c2c0fee95a87d3d Reviewed-on: https://git.eclipse.org/r/c/jdt/eclipse.jdt.core/+/183765 Tested-by: Sarika Sinha <sarika.sinha@in.ibm.com> Reviewed-by: Sarika Sinha <sarika.sinha@in.ibm.com>
Diffstat (limited to 'org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/NullPattern.java')
-rw-r--r--org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/NullPattern.java117
1 files changed, 0 insertions, 117 deletions
diff --git a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/NullPattern.java b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/NullPattern.java
deleted file mode 100644
index 71f12afaf5..0000000000
--- a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/NullPattern.java
+++ /dev/null
@@ -1,117 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2021 IBM Corporation and others.
- *
- * This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License 2.0
- * which accompanies this distribution, and is available at
- * https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * This is an implementation of an early-draft specification developed under the Java
- * Community Process (JCP) and is made available for testing and evaluation purposes
- * only. The code is not compatible with any specification of the JCP.
- *
- * Contributors:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.jdt.core.dom;
-
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * Null Pattern node.
- *
- * @since 3.27 BETA_JAVA17
- * @noreference This class is not intended to be referenced by clients.
- * @noinstantiate This class is not intended to be instantiated by clients.
- */
-@SuppressWarnings("rawtypes")
-public class NullPattern extends Pattern {
-
- /**
- * A list of property descriptors (element type:
- * {@link StructuralPropertyDescriptor}),
- * or null if uninitialized.
- */
- private static final List PROPERTY_DESCRIPTORS;
-
- static {
- List propertyList = new ArrayList(1);
- createPropertyList(NullPattern.class, propertyList);
- PROPERTY_DESCRIPTORS = reapPropertyList(propertyList);
- }
-
- /**
- * Returns a list of structural property descriptors for this node type.
- * Clients must not modify the result.
- *
- * @param apiLevel the API level; one of the
- * <code>AST.JLS*</code> constants
-
- * @return a list of property descriptors (element type:
- * {@link StructuralPropertyDescriptor})
- */
- public static List propertyDescriptors(int apiLevel) {
- return PROPERTY_DESCRIPTORS;
- }
-
- /**
- * Creates a new unparented null literal node owned by the given AST.
- * <p>
- * N.B. This constructor is package-private.
- * </p>
- *
- * @param ast the AST that is to own this node
- */
- NullPattern(AST ast) {
- super(ast);
- }
-
- @Override
- final List internalStructuralPropertiesForType(int apiLevel) {
- return propertyDescriptors(apiLevel);
- }
-
- @Override
- final int getNodeType0() {
- return NULL_PATTERN;
- }
-
- @Override
- ASTNode clone0(AST target) {
- NullPattern result = new NullPattern(target);
- result.setSourceRange(getStartPosition(), getLength());
- return result;
- }
-
- @Override
- final boolean subtreeMatch0(ASTMatcher matcher, Object other) {
- // dispatch to correct overloaded match method
- return matcher.match(this, other);
- }
-
- @Override
- void accept0(ASTVisitor visitor) {
- visitor.visit(this);
- visitor.endVisit(this);
- }
-
- @Override
- int memSize() {
- return BASE_NODE_SIZE;
- }
-
- @Override
- int treeSize() {
- return memSize();
- }
-
- @Override
- public List<SingleVariableDeclaration> patternVariables() {
- return null;
- }
-}
-

Back to the top