repo stringlengths 1 191 ⌀ | file stringlengths 23 351 | code stringlengths 0 5.32M | file_length int64 0 5.32M | avg_line_length float64 0 2.9k | max_line_length int64 0 288k | extension_type stringclasses 1 value |
|---|---|---|---|---|---|---|
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/UnionType.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
import columbus.java.asg.*;
/**
* Interface UnionType, which represents the {@link columbus.java.asg.type.UnionType UnionType} node.
* @columbus.node (missing)
* @columbus.edge alternatives ({@link columbus.java.asg.type.Type Type}, multiple) : (missing)
*/
public interface UnionType extends Type {
/**
* Gives back iterator for the {@link columbus.java.asg.type.UnionType#edgeAlternatives alternatives} edges.
* @return Returns an iterator for the alternatives edges.
*/
public EdgeIterator<Type> getAlternativesIterator();
/**
* Tells whether the node has {@link columbus.java.asg.type.UnionType#edgeAlternatives alternatives} edges or not.
* @return Returns true if the node doesn't have any alternatives edge.
*/
public boolean getAlternativesIsEmpty();
/**
* Gives back how many {@link columbus.java.asg.type.UnionType#edgeAlternatives alternatives} edges the node has.
* @return Returns with the number of alternatives edges.
*/
public int getAlternativesSize();
/**
* Adds a new {@link columbus.java.asg.type.UnionType#edgeAlternatives alternatives} edge to the node.
* @param id The end point of the new alternatives edge.
*/
public void addAlternatives(int id);
/**
* Adds a new {@link columbus.java.asg.type.UnionType#edgeAlternatives alternatives} edge to the node.
* @param node The end point of the new alternatives edge.
*/
public void addAlternatives(Type node);
}
| 2,197 | 33.34375 | 115 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/LowerBoundedWildcardType.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
/**
* Interface LowerBoundedWildcardType, which represents the {@link columbus.java.asg.type.LowerBoundedWildcardType LowerBoundedWildcardType} node.
* @columbus.node (missing)
*/
public interface LowerBoundedWildcardType extends BoundedWildcardType {
}
| 1,024 | 31.03125 | 146 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/FloatType.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
/**
* Interface FloatType, which represents the {@link columbus.java.asg.type.FloatType FloatType} node.
* @columbus.node (missing)
*/
public interface FloatType extends PrimitiveType {
}
| 958 | 28.96875 | 101 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/TypeVariable.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
import columbus.java.asg.struc.TypeParameter;
/**
* Interface TypeVariable, which represents the {@link columbus.java.asg.type.TypeVariable TypeVariable} node.
* @columbus.node (missing)
* @columbus.edge refersTo ({@link columbus.java.asg.struc.TypeParameter TypeParameter}, single) : (missing)
*/
public interface TypeVariable extends Type {
/**
* Gives back the reference of the node the {@link columbus.java.asg.type.TypeVariable#edgeRefersTo refersTo} edge points to.
* @return Returns the end point of the refersTo edge.
*/
public TypeParameter getRefersTo();
/**
* Sets the {@link columbus.java.asg.type.TypeVariable#edgeRefersTo refersTo} edge.
* @param id The new end point of the refersTo edge.
*/
public void setRefersTo(int id);
/**
* Sets the {@link columbus.java.asg.type.TypeVariable#edgeRefersTo refersTo} edge.
* @param node The new end point of the refersTo edge.
*/
public void setRefersTo(TypeParameter node);
}
| 1,729 | 32.269231 | 126 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/ModuleType.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
import columbus.java.asg.struc.Module;
/**
* Interface ModuleType, which represents the {@link columbus.java.asg.type.ModuleType ModuleType} node.
* @columbus.node (missing)
* @columbus.edge refersTo ({@link columbus.java.asg.struc.Module Module}, single) : (missing)
*/
public interface ModuleType extends Type {
/**
* Gives back the reference of the node the {@link columbus.java.asg.type.ModuleType#edgeRefersTo refersTo} edge points to.
* @return Returns the end point of the refersTo edge.
*/
public Module getRefersTo();
/**
* Sets the {@link columbus.java.asg.type.ModuleType#edgeRefersTo refersTo} edge.
* @param id The new end point of the refersTo edge.
*/
public void setRefersTo(int id);
/**
* Sets the {@link columbus.java.asg.type.ModuleType#edgeRefersTo refersTo} edge.
* @param node The new end point of the refersTo edge.
*/
public void setRefersTo(Module node);
}
| 1,680 | 31.326923 | 124 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/VoidType.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
/**
* Interface VoidType, which represents the {@link columbus.java.asg.type.VoidType VoidType} node.
* @columbus.node (missing)
*/
public interface VoidType extends PrimitiveType {
}
| 954 | 28.84375 | 98 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/NoType.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
/**
* Interface NoType, which represents the {@link columbus.java.asg.type.NoType NoType} node.
* @columbus.node (missing)
*/
public interface NoType extends Type {
}
| 937 | 28.3125 | 92 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/ClassType.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
import columbus.java.asg.struc.TypeDeclaration;
/**
* Interface ClassType, which represents the {@link columbus.java.asg.type.ClassType ClassType} node.
* @columbus.node (missing)
* @columbus.edge refersTo ({@link columbus.java.asg.struc.TypeDeclaration TypeDeclaration}, single) : (missing)
*/
public interface ClassType extends ScopedType {
/**
* Gives back the reference of the node the {@link columbus.java.asg.type.ClassType#edgeRefersTo refersTo} edge points to.
* @return Returns the end point of the refersTo edge.
*/
public TypeDeclaration getRefersTo();
/**
* Sets the {@link columbus.java.asg.type.ClassType#edgeRefersTo refersTo} edge.
* @param id The new end point of the refersTo edge.
*/
public void setRefersTo(int id);
/**
* Sets the {@link columbus.java.asg.type.ClassType#edgeRefersTo refersTo} edge.
* @param node The new end point of the refersTo edge.
*/
public void setRefersTo(TypeDeclaration node);
}
| 1,724 | 32.173077 | 123 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/UnboundedWildcardTypeImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.base.Base;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.type.UnboundedWildcardType UnboundedWildcardType} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class UnboundedWildcardTypeImpl extends BaseImpl implements UnboundedWildcardType {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(UnboundedWildcardTypeImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
protected int _bound;
public UnboundedWildcardTypeImpl(int id, Factory factory) {
super(id, factory);
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkUnboundedWildcardType;
}
@Override
public Type getBound() {
if (_bound == 0)
return null;
if (factory.getIsFiltered(_bound))
return null;
return (Type)factory.getRef(_bound);
}
@Override
public void setBound(int _id) {
if (_bound != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","bound" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkType)) {
_bound = _id;
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setBound(Type _node) {
if (_bound != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","bound" ));
_bound = _node.getId();
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
io.writeInt4(!factory.getIsFiltered(_bound) ? _bound : 0);
}
// ---------- Load ----------
@Override
public void load(IO io) {
_bound = io.readInt4();
}
}
| 3,065 | 24.55 | 143 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/UpperBoundedWildcardTypeImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.base.Base;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.type.UpperBoundedWildcardType UpperBoundedWildcardType} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class UpperBoundedWildcardTypeImpl extends BaseImpl implements UpperBoundedWildcardType {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(UpperBoundedWildcardTypeImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
protected int _bound;
public UpperBoundedWildcardTypeImpl(int id, Factory factory) {
super(id, factory);
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkUpperBoundedWildcardType;
}
@Override
public Type getBound() {
if (_bound == 0)
return null;
if (factory.getIsFiltered(_bound))
return null;
return (Type)factory.getRef(_bound);
}
@Override
public void setBound(int _id) {
if (_bound != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","bound" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkType)) {
_bound = _id;
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setBound(Type _node) {
if (_bound != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","bound" ));
_bound = _node.getId();
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
io.writeInt4(!factory.getIsFiltered(_bound) ? _bound : 0);
}
// ---------- Load ----------
@Override
public void load(IO io) {
_bound = io.readInt4();
}
}
| 3,086 | 24.725 | 146 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/ShortType.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
/**
* Interface ShortType, which represents the {@link columbus.java.asg.type.ShortType ShortType} node.
* @columbus.node (missing)
*/
public interface ShortType extends PrimitiveType {
}
| 958 | 28.96875 | 101 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/DoubleTypeImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.type.DoubleType DoubleType} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class DoubleTypeImpl extends BaseImpl implements DoubleType {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(DoubleTypeImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
public DoubleTypeImpl(int id, Factory factory) {
super(id, factory);
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkDoubleType;
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
}
// ---------- Load ----------
@Override
public void load(IO io) {
}
}
| 1,950 | 23.696203 | 132 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/PackageTypeImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.base.Base;
import columbus.java.asg.struc.Package;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.type.PackageType PackageType} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class PackageTypeImpl extends BaseImpl implements PackageType {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(PackageTypeImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
protected int _refersTo;
public PackageTypeImpl(int id, Factory factory) {
super(id, factory);
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkPackageType;
}
@Override
public Package getRefersTo() {
if (_refersTo == 0)
return null;
if (factory.getIsFiltered(_refersTo))
return null;
return (Package)factory.getRef(_refersTo);
}
@Override
public void setRefersTo(int _id) {
if (_refersTo != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","refersTo" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (_node.getNodeKind() == NodeKind.ndkPackage) {
_refersTo = _id;
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setRefersTo(Package _node) {
if (_refersTo != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","refersTo" ));
_refersTo = _node.getId();
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
io.writeInt4(!factory.getIsFiltered(_refersTo) ? _refersTo : 0);
}
// ---------- Load ----------
@Override
public void load(IO io) {
_refersTo = io.readInt4();
}
}
| 3,070 | 24.380165 | 133 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/NullType.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
/**
* Interface NullType, which represents the {@link columbus.java.asg.type.NullType NullType} node.
* @columbus.node (missing)
*/
public interface NullType extends Type {
}
| 945 | 28.5625 | 98 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/ClassTypeImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.base.Base;
import columbus.java.asg.struc.TypeDeclaration;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.type.ClassType ClassType} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class ClassTypeImpl extends BaseImpl implements ClassType {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(ClassTypeImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
protected int _owner;
protected int _refersTo;
public ClassTypeImpl(int id, Factory factory) {
super(id, factory);
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkClassType;
}
@Override
public Type getOwner() {
if (_owner == 0)
return null;
if (factory.getIsFiltered(_owner))
return null;
return (Type)factory.getRef(_owner);
}
@Override
public void setOwner(int _id) {
if (_owner != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","owner" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkType)) {
_owner = _id;
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setOwner(Type _node) {
if (_owner != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","owner" ));
_owner = _node.getId();
}
@Override
public TypeDeclaration getRefersTo() {
if (_refersTo == 0)
return null;
if (factory.getIsFiltered(_refersTo))
return null;
return (TypeDeclaration)factory.getRef(_refersTo);
}
@Override
public void setRefersTo(int _id) {
if (_refersTo != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","refersTo" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkTypeDeclaration)) {
_refersTo = _id;
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setRefersTo(TypeDeclaration _node) {
if (_refersTo != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","refersTo" ));
_refersTo = _node.getId();
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
io.writeInt4(!factory.getIsFiltered(_owner) ? _owner : 0);
io.writeInt4(!factory.getIsFiltered(_refersTo) ? _refersTo : 0);
}
// ---------- Load ----------
@Override
public void load(IO io) {
_owner = io.readInt4();
_refersTo = io.readInt4();
}
}
| 4,123 | 24.614907 | 131 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/ShortTypeImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.type.ShortType ShortType} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class ShortTypeImpl extends BaseImpl implements ShortType {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(ShortTypeImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
public ShortTypeImpl(int id, Factory factory) {
super(id, factory);
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkShortType;
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
}
// ---------- Load ----------
@Override
public void load(IO io) {
}
}
| 1,943 | 23.607595 | 131 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/ArrayTypeImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.base.Base;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.type.ArrayType ArrayType} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class ArrayTypeImpl extends BaseImpl implements ArrayType {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(ArrayTypeImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
protected int size;
protected int _componentType;
public ArrayTypeImpl(int id, Factory factory) {
super(id, factory);
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkArrayType;
}
@Override
public int getSize() {
return size;
}
@Override
public void setSize(int _size) {
size = _size;
}
@Override
public Type getComponentType() {
if (_componentType == 0)
return null;
if (factory.getIsFiltered(_componentType))
return null;
return (Type)factory.getRef(_componentType);
}
@Override
public void setComponentType(int _id) {
if (_componentType != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","componentType" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkType)) {
_componentType = _id;
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setComponentType(Type _node) {
if (_componentType != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","componentType" ));
_componentType = _node.getId();
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
io.writeInt4(size);
io.writeInt4(!factory.getIsFiltered(_componentType) ? _componentType : 0);
}
// ---------- Load ----------
@Override
public void load(IO io) {
size = io.readInt4();
_componentType = io.readInt4();
}
}
| 3,298 | 23.257353 | 131 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/BooleanType.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
/**
* Interface BooleanType, which represents the {@link columbus.java.asg.type.BooleanType BooleanType} node.
* @columbus.node (missing)
*/
public interface BooleanType extends PrimitiveType {
}
| 966 | 29.21875 | 107 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/ScopedType.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
/**
* Interface ScopedType, which represents the {@link columbus.java.asg.type.ScopedType ScopedType} node.
* @columbus.node (missing)
* @columbus.edge owner ({@link columbus.java.asg.type.Type Type}, single) : (missing)
*/
public interface ScopedType extends Type {
/**
* Gives back the reference of the node the {@link columbus.java.asg.type.ScopedType#edgeOwner owner} edge points to.
* @return Returns the end point of the owner edge.
*/
public Type getOwner();
/**
* Sets the {@link columbus.java.asg.type.ScopedType#edgeOwner owner} edge.
* @param id The new end point of the owner edge.
*/
public void setOwner(int id);
/**
* Sets the {@link columbus.java.asg.type.ScopedType#edgeOwner owner} edge.
* @param node The new end point of the owner edge.
*/
public void setOwner(Type node);
}
| 1,593 | 30.254902 | 118 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/LowerBoundedWildcardTypeImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.base.Base;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.type.LowerBoundedWildcardType LowerBoundedWildcardType} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class LowerBoundedWildcardTypeImpl extends BaseImpl implements LowerBoundedWildcardType {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(LowerBoundedWildcardTypeImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
protected int _bound;
public LowerBoundedWildcardTypeImpl(int id, Factory factory) {
super(id, factory);
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkLowerBoundedWildcardType;
}
@Override
public Type getBound() {
if (_bound == 0)
return null;
if (factory.getIsFiltered(_bound))
return null;
return (Type)factory.getRef(_bound);
}
@Override
public void setBound(int _id) {
if (_bound != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","bound" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkType)) {
_bound = _id;
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setBound(Type _node) {
if (_bound != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","bound" ));
_bound = _node.getId();
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
io.writeInt4(!factory.getIsFiltered(_bound) ? _bound : 0);
}
// ---------- Load ----------
@Override
public void load(IO io) {
_bound = io.readInt4();
}
}
| 3,086 | 24.725 | 146 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/VoidTypeImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.type.VoidType VoidType} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class VoidTypeImpl extends BaseImpl implements VoidType {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(VoidTypeImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
public VoidTypeImpl(int id, Factory factory) {
super(id, factory);
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkVoidType;
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
}
// ---------- Load ----------
@Override
public void load(IO io) {
}
}
| 1,936 | 23.518987 | 130 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/IntersectionTypeImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.base.Base;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.type.IntersectionType IntersectionType} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class IntersectionTypeImpl extends BaseImpl implements IntersectionType {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(IntersectionTypeImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
protected EdgeList<Type> _bounds;
public IntersectionTypeImpl(int id, Factory factory) {
super(id, factory);
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkIntersectionType;
}
@Override
public EdgeIterator<Type> getBoundsIterator() {
if (_bounds == null)
return EdgeList.<Type>emptyList().iterator();
else
return _bounds.iterator();
}
@Override
public boolean getBoundsIsEmpty() {
if (_bounds == null)
return true;
else
return _bounds.isEmpty();
}
@Override
public int getBoundsSize() {
if (_bounds == null)
return 0;
else
return _bounds.size();
}
@Override
public void addBounds(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkType)) {
if (_bounds == null)
_bounds = new EdgeList<Type>(factory);
_bounds.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void addBounds(Type _node) {
if (_bounds == null)
_bounds = new EdgeList<Type>(factory);
_bounds.add(_node);
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
if (_bounds != null) {
EdgeIterator<Type> it = getBoundsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
}
// ---------- Load ----------
@Override
public void load(IO io) {
int _id;
_id = io.readInt4();
if (_id != 0) {
_bounds = new EdgeList<Type>(factory);
while (_id != 0) {
_bounds.add(_id);
_id = io.readInt4();
}
}
}
}
| 3,435 | 22.37415 | 138 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/UnboundedWildcardType.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
/**
* Interface UnboundedWildcardType, which represents the {@link columbus.java.asg.type.UnboundedWildcardType UnboundedWildcardType} node.
* @columbus.node (missing)
*/
public interface UnboundedWildcardType extends WildcardType {
}
| 1,005 | 30.4375 | 137 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/IntType.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
/**
* Interface IntType, which represents the {@link columbus.java.asg.type.IntType IntType} node.
* @columbus.node (missing)
*/
public interface IntType extends PrimitiveType {
}
| 950 | 28.71875 | 95 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/MethodType.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
import columbus.java.asg.*;
/**
* Interface MethodType, which represents the {@link columbus.java.asg.type.MethodType MethodType} node.
* @columbus.node (missing)
* @columbus.edge returnType ({@link columbus.java.asg.type.Type Type}, single) : (missing)
* @columbus.edge parameterTypes ({@link columbus.java.asg.type.Type Type}, multiple) : (missing)
* @columbus.edge thrownTypes ({@link columbus.java.asg.type.Type Type}, multiple) : (missing)
*/
public interface MethodType extends Type {
/**
* Gives back the reference of the node the {@link columbus.java.asg.type.MethodType#edgeReturnType returnType} edge points to.
* @return Returns the end point of the returnType edge.
*/
public Type getReturnType();
/**
* Sets the {@link columbus.java.asg.type.MethodType#edgeReturnType returnType} edge.
* @param id The new end point of the returnType edge.
*/
public void setReturnType(int id);
/**
* Sets the {@link columbus.java.asg.type.MethodType#edgeReturnType returnType} edge.
* @param node The new end point of the returnType edge.
*/
public void setReturnType(Type node);
/**
* Gives back iterator for the {@link columbus.java.asg.type.MethodType#edgeParameterTypes parameterTypes} edges.
* @return Returns an iterator for the parameterTypes edges.
*/
public EdgeIterator<Type> getParameterTypesIterator();
/**
* Tells whether the node has {@link columbus.java.asg.type.MethodType#edgeParameterTypes parameterTypes} edges or not.
* @return Returns true if the node doesn't have any parameterTypes edge.
*/
public boolean getParameterTypesIsEmpty();
/**
* Gives back how many {@link columbus.java.asg.type.MethodType#edgeParameterTypes parameterTypes} edges the node has.
* @return Returns with the number of parameterTypes edges.
*/
public int getParameterTypesSize();
/**
* Adds a new {@link columbus.java.asg.type.MethodType#edgeParameterTypes parameterTypes} edge to the node.
* @param id The end point of the new parameterTypes edge.
*/
public void addParameterTypes(int id);
/**
* Adds a new {@link columbus.java.asg.type.MethodType#edgeParameterTypes parameterTypes} edge to the node.
* @param node The end point of the new parameterTypes edge.
*/
public void addParameterTypes(Type node);
/**
* Gives back iterator for the {@link columbus.java.asg.type.MethodType#edgeThrownTypes thrownTypes} edges.
* @return Returns an iterator for the thrownTypes edges.
*/
public EdgeIterator<Type> getThrownTypesIterator();
/**
* Tells whether the node has {@link columbus.java.asg.type.MethodType#edgeThrownTypes thrownTypes} edges or not.
* @return Returns true if the node doesn't have any thrownTypes edge.
*/
public boolean getThrownTypesIsEmpty();
/**
* Gives back how many {@link columbus.java.asg.type.MethodType#edgeThrownTypes thrownTypes} edges the node has.
* @return Returns with the number of thrownTypes edges.
*/
public int getThrownTypesSize();
/**
* Adds a new {@link columbus.java.asg.type.MethodType#edgeThrownTypes thrownTypes} edge to the node.
* @param id The end point of the new thrownTypes edge.
*/
public void addThrownTypes(int id);
/**
* Adds a new {@link columbus.java.asg.type.MethodType#edgeThrownTypes thrownTypes} edge to the node.
* @param node The end point of the new thrownTypes edge.
*/
public void addThrownTypes(Type node);
}
| 4,157 | 35.473684 | 128 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/BooleanTypeImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.type.BooleanType BooleanType} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class BooleanTypeImpl extends BaseImpl implements BooleanType {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(BooleanTypeImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
public BooleanTypeImpl(int id, Factory factory) {
super(id, factory);
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkBooleanType;
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
}
// ---------- Load ----------
@Override
public void load(IO io) {
}
}
| 1,957 | 23.78481 | 133 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/DoubleType.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
/**
* Interface DoubleType, which represents the {@link columbus.java.asg.type.DoubleType DoubleType} node.
* @columbus.node (missing)
*/
public interface DoubleType extends PrimitiveType {
}
| 962 | 29.09375 | 104 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/TypeVariableImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.base.Base;
import columbus.java.asg.struc.TypeParameter;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.type.TypeVariable TypeVariable} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class TypeVariableImpl extends BaseImpl implements TypeVariable {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(TypeVariableImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
protected int _refersTo;
public TypeVariableImpl(int id, Factory factory) {
super(id, factory);
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkTypeVariable;
}
@Override
public TypeParameter getRefersTo() {
if (_refersTo == 0)
return null;
if (factory.getIsFiltered(_refersTo))
return null;
return (TypeParameter)factory.getRef(_refersTo);
}
@Override
public void setRefersTo(int _id) {
if (_refersTo != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","refersTo" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (_node.getNodeKind() == NodeKind.ndkTypeParameter) {
_refersTo = _id;
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setRefersTo(TypeParameter _node) {
if (_refersTo != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","refersTo" ));
_refersTo = _node.getId();
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
io.writeInt4(!factory.getIsFiltered(_refersTo) ? _refersTo : 0);
}
// ---------- Load ----------
@Override
public void load(IO io) {
_refersTo = io.readInt4();
}
}
| 3,107 | 24.68595 | 134 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/CharTypeImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.type.CharType CharType} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class CharTypeImpl extends BaseImpl implements CharType {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(CharTypeImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
public CharTypeImpl(int id, Factory factory) {
super(id, factory);
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkCharType;
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
}
// ---------- Load ----------
@Override
public void load(IO io) {
}
}
| 1,936 | 23.518987 | 130 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/CharType.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
/**
* Interface CharType, which represents the {@link columbus.java.asg.type.CharType CharType} node.
* @columbus.node (missing)
*/
public interface CharType extends PrimitiveType {
}
| 954 | 28.84375 | 98 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/NullTypeImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.type.NullType NullType} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class NullTypeImpl extends BaseImpl implements NullType {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(NullTypeImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
public NullTypeImpl(int id, Factory factory) {
super(id, factory);
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkNullType;
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
}
// ---------- Load ----------
@Override
public void load(IO io) {
}
}
| 1,936 | 23.518987 | 130 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/LongTypeImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.type.LongType LongType} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class LongTypeImpl extends BaseImpl implements LongType {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(LongTypeImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
public LongTypeImpl(int id, Factory factory) {
super(id, factory);
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkLongType;
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
}
// ---------- Load ----------
@Override
public void load(IO io) {
}
}
| 1,936 | 23.518987 | 130 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/IntersectionType.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
import columbus.java.asg.*;
/**
* Interface IntersectionType, which represents the {@link columbus.java.asg.type.IntersectionType IntersectionType} node.
* @columbus.node (missing)
* @columbus.edge bounds ({@link columbus.java.asg.type.Type Type}, multiple) : (missing)
*/
public interface IntersectionType extends Type {
/**
* Gives back iterator for the {@link columbus.java.asg.type.IntersectionType#edgeBounds bounds} edges.
* @return Returns an iterator for the bounds edges.
*/
public EdgeIterator<Type> getBoundsIterator();
/**
* Tells whether the node has {@link columbus.java.asg.type.IntersectionType#edgeBounds bounds} edges or not.
* @return Returns true if the node doesn't have any bounds edge.
*/
public boolean getBoundsIsEmpty();
/**
* Gives back how many {@link columbus.java.asg.type.IntersectionType#edgeBounds bounds} edges the node has.
* @return Returns with the number of bounds edges.
*/
public int getBoundsSize();
/**
* Adds a new {@link columbus.java.asg.type.IntersectionType#edgeBounds bounds} edge to the node.
* @param id The end point of the new bounds edge.
*/
public void addBounds(int id);
/**
* Adds a new {@link columbus.java.asg.type.IntersectionType#edgeBounds bounds} edge to the node.
* @param node The end point of the new bounds edge.
*/
public void addBounds(Type node);
}
| 2,134 | 32.359375 | 122 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/ParameterizedType.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
import columbus.java.asg.*;
/**
* Interface ParameterizedType, which represents the {@link columbus.java.asg.type.ParameterizedType ParameterizedType} node.
* @columbus.node (missing)
* @columbus.edge rawType ({@link columbus.java.asg.type.Type Type}, single) : (missing)
* @columbus.edge argumentTypes ({@link columbus.java.asg.type.Type Type}, multiple) : (missing)
*/
public interface ParameterizedType extends ScopedType {
/**
* Gives back the reference of the node the {@link columbus.java.asg.type.ParameterizedType#edgeRawType rawType} edge points to.
* @return Returns the end point of the rawType edge.
*/
public Type getRawType();
/**
* Sets the {@link columbus.java.asg.type.ParameterizedType#edgeRawType rawType} edge.
* @param id The new end point of the rawType edge.
*/
public void setRawType(int id);
/**
* Sets the {@link columbus.java.asg.type.ParameterizedType#edgeRawType rawType} edge.
* @param node The new end point of the rawType edge.
*/
public void setRawType(Type node);
/**
* Gives back iterator for the {@link columbus.java.asg.type.ParameterizedType#edgeArgumentTypes argumentTypes} edges.
* @return Returns an iterator for the argumentTypes edges.
*/
public EdgeIterator<Type> getArgumentTypesIterator();
/**
* Tells whether the node has {@link columbus.java.asg.type.ParameterizedType#edgeArgumentTypes argumentTypes} edges or not.
* @return Returns true if the node doesn't have any argumentTypes edge.
*/
public boolean getArgumentTypesIsEmpty();
/**
* Gives back how many {@link columbus.java.asg.type.ParameterizedType#edgeArgumentTypes argumentTypes} edges the node has.
* @return Returns with the number of argumentTypes edges.
*/
public int getArgumentTypesSize();
/**
* Adds a new {@link columbus.java.asg.type.ParameterizedType#edgeArgumentTypes argumentTypes} edge to the node.
* @param id The end point of the new argumentTypes edge.
*/
public void addArgumentTypes(int id);
/**
* Adds a new {@link columbus.java.asg.type.ParameterizedType#edgeArgumentTypes argumentTypes} edge to the node.
* @param node The end point of the new argumentTypes edge.
*/
public void addArgumentTypes(Type node);
}
| 2,983 | 34.951807 | 129 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/Type.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
import columbus.java.asg.base.Base;
/**
* Interface Type, which represents the {@link columbus.java.asg.type.Type Type} node.
* @columbus.node (missing)
*/
public interface Type extends Base {
}
| 965 | 28.272727 | 86 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/FloatTypeImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.type.FloatType FloatType} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class FloatTypeImpl extends BaseImpl implements FloatType {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(FloatTypeImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
public FloatTypeImpl(int id, Factory factory) {
super(id, factory);
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkFloatType;
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
}
// ---------- Load ----------
@Override
public void load(IO io) {
}
}
| 1,943 | 23.607595 | 131 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/LongType.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
/**
* Interface LongType, which represents the {@link columbus.java.asg.type.LongType LongType} node.
* @columbus.node (missing)
*/
public interface LongType extends PrimitiveType {
}
| 954 | 28.84375 | 98 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/ArrayType.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
/**
* Interface ArrayType, which represents the {@link columbus.java.asg.type.ArrayType ArrayType} node.
* @columbus.node (missing)
* @columbus.attr size (int) : (missing)
* @columbus.edge componentType ({@link columbus.java.asg.type.Type Type}, single) : (missing)
*/
public interface ArrayType extends Type {
/**
* Gives back the {@link columbus.java.asg.type.ArrayType#attributeSize size} of the node.
* @return Returns with the size.
*/
public int getSize();
/**
* Sets the {@link columbus.java.asg.type.ArrayType#attributeSize size} of the node.
* @param value The new value of the size.
*/
public void setSize(int value);
/**
* Gives back the reference of the node the {@link columbus.java.asg.type.ArrayType#edgeComponentType componentType} edge points to.
* @return Returns the end point of the componentType edge.
*/
public Type getComponentType();
/**
* Sets the {@link columbus.java.asg.type.ArrayType#edgeComponentType componentType} edge.
* @param id The new end point of the componentType edge.
*/
public void setComponentType(int id);
/**
* Sets the {@link columbus.java.asg.type.ArrayType#edgeComponentType componentType} edge.
* @param node The new end point of the componentType edge.
*/
public void setComponentType(Type node);
}
| 2,066 | 31.296875 | 133 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/IntTypeImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.type.IntType IntType} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class IntTypeImpl extends BaseImpl implements IntType {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(IntTypeImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
public IntTypeImpl(int id, Factory factory) {
super(id, factory);
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkIntType;
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
}
// ---------- Load ----------
@Override
public void load(IO io) {
}
}
| 1,929 | 23.43038 | 129 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/PackageType.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
import columbus.java.asg.struc.Package;
/**
* Interface PackageType, which represents the {@link columbus.java.asg.type.PackageType PackageType} node.
* @columbus.node (missing)
* @columbus.edge refersTo ({@link columbus.java.asg.struc.Package Package}, single) : (missing)
*/
public interface PackageType extends Type {
/**
* Gives back the reference of the node the {@link columbus.java.asg.type.PackageType#edgeRefersTo refersTo} edge points to.
* @return Returns the end point of the refersTo edge.
*/
public Package getRefersTo();
/**
* Sets the {@link columbus.java.asg.type.PackageType#edgeRefersTo refersTo} edge.
* @param id The new end point of the refersTo edge.
*/
public void setRefersTo(int id);
/**
* Sets the {@link columbus.java.asg.type.PackageType#edgeRefersTo refersTo} edge.
* @param node The new end point of the refersTo edge.
*/
public void setRefersTo(Package node);
}
| 1,692 | 31.557692 | 125 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/MethodTypeImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.base.Base;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.type.MethodType MethodType} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class MethodTypeImpl extends BaseImpl implements MethodType {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(MethodTypeImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
protected int _returnType;
protected EdgeList<Type> _parameterTypes;
protected EdgeList<Type> _thrownTypes;
public MethodTypeImpl(int id, Factory factory) {
super(id, factory);
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkMethodType;
}
@Override
public Type getReturnType() {
if (_returnType == 0)
return null;
if (factory.getIsFiltered(_returnType))
return null;
return (Type)factory.getRef(_returnType);
}
@Override
public EdgeIterator<Type> getParameterTypesIterator() {
if (_parameterTypes == null)
return EdgeList.<Type>emptyList().iterator();
else
return _parameterTypes.iterator();
}
@Override
public boolean getParameterTypesIsEmpty() {
if (_parameterTypes == null)
return true;
else
return _parameterTypes.isEmpty();
}
@Override
public int getParameterTypesSize() {
if (_parameterTypes == null)
return 0;
else
return _parameterTypes.size();
}
@Override
public EdgeIterator<Type> getThrownTypesIterator() {
if (_thrownTypes == null)
return EdgeList.<Type>emptyList().iterator();
else
return _thrownTypes.iterator();
}
@Override
public boolean getThrownTypesIsEmpty() {
if (_thrownTypes == null)
return true;
else
return _thrownTypes.isEmpty();
}
@Override
public int getThrownTypesSize() {
if (_thrownTypes == null)
return 0;
else
return _thrownTypes.size();
}
@Override
public void setReturnType(int _id) {
if (_returnType != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","returnType" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkType)) {
_returnType = _id;
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setReturnType(Type _node) {
if (_returnType != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","returnType" ));
_returnType = _node.getId();
}
@Override
public void addParameterTypes(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkType)) {
if (_parameterTypes == null)
_parameterTypes = new EdgeList<Type>(factory);
_parameterTypes.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void addParameterTypes(Type _node) {
if (_parameterTypes == null)
_parameterTypes = new EdgeList<Type>(factory);
_parameterTypes.add(_node);
}
@Override
public void addThrownTypes(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkType)) {
if (_thrownTypes == null)
_thrownTypes = new EdgeList<Type>(factory);
_thrownTypes.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void addThrownTypes(Type _node) {
if (_thrownTypes == null)
_thrownTypes = new EdgeList<Type>(factory);
_thrownTypes.add(_node);
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
io.writeInt4(!factory.getIsFiltered(_returnType) ? _returnType : 0);
if (_parameterTypes != null) {
EdgeIterator<Type> it = getParameterTypesIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
if (_thrownTypes != null) {
EdgeIterator<Type> it = getThrownTypesIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
}
// ---------- Load ----------
@Override
public void load(IO io) {
int _id;
_returnType = io.readInt4();
_id = io.readInt4();
if (_id != 0) {
_parameterTypes = new EdgeList<Type>(factory);
while (_id != 0) {
_parameterTypes.add(_id);
_id = io.readInt4();
}
}
_id = io.readInt4();
if (_id != 0) {
_thrownTypes = new EdgeList<Type>(factory);
while (_id != 0) {
_thrownTypes.add(_id);
_id = io.readInt4();
}
}
}
}
| 6,156 | 23.43254 | 132 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/ModuleTypeImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.base.Base;
import columbus.java.asg.struc.Module;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.type.ModuleType ModuleType} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class ModuleTypeImpl extends BaseImpl implements ModuleType {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(ModuleTypeImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
protected int _refersTo;
public ModuleTypeImpl(int id, Factory factory) {
super(id, factory);
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkModuleType;
}
@Override
public Module getRefersTo() {
if (_refersTo == 0)
return null;
if (factory.getIsFiltered(_refersTo))
return null;
return (Module)factory.getRef(_refersTo);
}
@Override
public void setRefersTo(int _id) {
if (_refersTo != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","refersTo" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (_node.getNodeKind() == NodeKind.ndkModule) {
_refersTo = _id;
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setRefersTo(Module _node) {
if (_refersTo != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","refersTo" ));
_refersTo = _node.getId();
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
io.writeInt4(!factory.getIsFiltered(_refersTo) ? _refersTo : 0);
}
// ---------- Load ----------
@Override
public void load(IO io) {
_refersTo = io.readInt4();
}
}
| 3,058 | 24.280992 | 132 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/UnionTypeImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.base.Base;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.type.UnionType UnionType} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class UnionTypeImpl extends BaseImpl implements UnionType {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(UnionTypeImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
protected EdgeList<Type> _alternatives;
public UnionTypeImpl(int id, Factory factory) {
super(id, factory);
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkUnionType;
}
@Override
public EdgeIterator<Type> getAlternativesIterator() {
if (_alternatives == null)
return EdgeList.<Type>emptyList().iterator();
else
return _alternatives.iterator();
}
@Override
public boolean getAlternativesIsEmpty() {
if (_alternatives == null)
return true;
else
return _alternatives.isEmpty();
}
@Override
public int getAlternativesSize() {
if (_alternatives == null)
return 0;
else
return _alternatives.size();
}
@Override
public void addAlternatives(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkType)) {
if (_alternatives == null)
_alternatives = new EdgeList<Type>(factory);
_alternatives.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void addAlternatives(Type _node) {
if (_alternatives == null)
_alternatives = new EdgeList<Type>(factory);
_alternatives.add(_node);
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
if (_alternatives != null) {
EdgeIterator<Type> it = getAlternativesIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
}
// ---------- Load ----------
@Override
public void load(IO io) {
int _id;
_id = io.readInt4();
if (_id != 0) {
_alternatives = new EdgeList<Type>(factory);
while (_id != 0) {
_alternatives.add(_id);
_id = io.readInt4();
}
}
}
}
| 3,518 | 22.938776 | 131 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/ByteTypeImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.type.ByteType ByteType} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class ByteTypeImpl extends BaseImpl implements ByteType {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(ByteTypeImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
public ByteTypeImpl(int id, Factory factory) {
super(id, factory);
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkByteType;
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
}
// ---------- Load ----------
@Override
public void load(IO io) {
}
}
| 1,936 | 23.518987 | 130 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/BoundedWildcardType.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
/**
* Interface BoundedWildcardType, which represents the {@link columbus.java.asg.type.BoundedWildcardType BoundedWildcardType} node.
* @columbus.node (missing)
*/
public interface BoundedWildcardType extends WildcardType {
}
| 997 | 30.1875 | 131 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/ParameterizedTypeImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.base.Base;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.type.ParameterizedType ParameterizedType} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class ParameterizedTypeImpl extends BaseImpl implements ParameterizedType {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(ParameterizedTypeImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
protected int _owner;
protected int _rawType;
protected EdgeList<Type> _argumentTypes;
public ParameterizedTypeImpl(int id, Factory factory) {
super(id, factory);
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkParameterizedType;
}
@Override
public Type getOwner() {
if (_owner == 0)
return null;
if (factory.getIsFiltered(_owner))
return null;
return (Type)factory.getRef(_owner);
}
@Override
public void setOwner(int _id) {
if (_owner != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","owner" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkType)) {
_owner = _id;
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setOwner(Type _node) {
if (_owner != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","owner" ));
_owner = _node.getId();
}
@Override
public Type getRawType() {
if (_rawType == 0)
return null;
if (factory.getIsFiltered(_rawType))
return null;
return (Type)factory.getRef(_rawType);
}
@Override
public EdgeIterator<Type> getArgumentTypesIterator() {
if (_argumentTypes == null)
return EdgeList.<Type>emptyList().iterator();
else
return _argumentTypes.iterator();
}
@Override
public boolean getArgumentTypesIsEmpty() {
if (_argumentTypes == null)
return true;
else
return _argumentTypes.isEmpty();
}
@Override
public int getArgumentTypesSize() {
if (_argumentTypes == null)
return 0;
else
return _argumentTypes.size();
}
@Override
public void setRawType(int _id) {
if (_rawType != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","rawType" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkType)) {
_rawType = _id;
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setRawType(Type _node) {
if (_rawType != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","rawType" ));
_rawType = _node.getId();
}
@Override
public void addArgumentTypes(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkType)) {
if (_argumentTypes == null)
_argumentTypes = new EdgeList<Type>(factory);
_argumentTypes.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void addArgumentTypes(Type _node) {
if (_argumentTypes == null)
_argumentTypes = new EdgeList<Type>(factory);
_argumentTypes.add(_node);
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
io.writeInt4(!factory.getIsFiltered(_owner) ? _owner : 0);
io.writeInt4(!factory.getIsFiltered(_rawType) ? _rawType : 0);
if (_argumentTypes != null) {
EdgeIterator<Type> it = getArgumentTypesIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
}
// ---------- Load ----------
@Override
public void load(IO io) {
int _id;
_owner = io.readInt4();
_rawType = io.readInt4();
_id = io.readInt4();
if (_id != 0) {
_argumentTypes = new EdgeList<Type>(factory);
while (_id != 0) {
_argumentTypes.add(_id);
_id = io.readInt4();
}
}
}
}
| 5,632 | 23.814978 | 139 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/ErrorTypeImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.type.ErrorType ErrorType} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class ErrorTypeImpl extends BaseImpl implements ErrorType {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(ErrorTypeImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
public ErrorTypeImpl(int id, Factory factory) {
super(id, factory);
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkErrorType;
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
}
// ---------- Load ----------
@Override
public void load(IO io) {
}
}
| 1,943 | 23.607595 | 131 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/WildcardType.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
/**
* Interface WildcardType, which represents the {@link columbus.java.asg.type.WildcardType WildcardType} node.
* @columbus.node (missing)
* @columbus.edge bound ({@link columbus.java.asg.type.Type Type}, single) : (missing)
*/
public interface WildcardType extends Type {
/**
* Gives back the reference of the node the {@link columbus.java.asg.type.WildcardType#edgeBound bound} edge points to.
* @return Returns the end point of the bound edge.
*/
public Type getBound();
/**
* Sets the {@link columbus.java.asg.type.WildcardType#edgeBound bound} edge.
* @param id The new end point of the bound edge.
*/
public void setBound(int id);
/**
* Sets the {@link columbus.java.asg.type.WildcardType#edgeBound bound} edge.
* @param node The new end point of the bound edge.
*/
public void setBound(Type node);
}
| 1,607 | 30.529412 | 120 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/type/ErrorType.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.type;
/**
* Interface ErrorType, which represents the {@link columbus.java.asg.type.ErrorType ErrorType} node.
* @columbus.node (missing)
*/
public interface ErrorType extends Type {
}
| 949 | 28.6875 | 101 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/visitors/Visitor.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.visitors;
/**
* Visitor for each non-abstract nodes and all edges of the graph.
*/
public class Visitor {
/** Stores the depth position. */
protected int depth;
/**
* Constructor for Visitor.
*/
public Visitor() {
}
/**
* Gives back the the actual position's depth.
* @return The depth of the actual position.
*/
public int getDepth() {
return depth;
}
/**
* Increasing the depth by one.
*/
public void incDepth() {
++depth;
}
/**
* Decreasing the depth by one.
*/
public void decDepth() {
--depth;
}
/**
* This method is called before the beginning of visiting process.
*/
public void beginVisit() {
}
/**
* This method is called when the visiting process has finished.
*/
public void finishVisit() {
}
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.base.BlockComment BlockComment} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.base.BlockComment node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.base.BlockComment BlockComment} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.base.BlockComment node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.base.JavadocComment JavadocComment} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.base.JavadocComment node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.base.JavadocComment JavadocComment} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.base.JavadocComment node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.base.LineComment LineComment} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.base.LineComment node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.base.LineComment LineComment} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.base.LineComment node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.AnnotatedTypeExpression AnnotatedTypeExpression} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.AnnotatedTypeExpression node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.AnnotatedTypeExpression AnnotatedTypeExpression} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.AnnotatedTypeExpression node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.ArrayAccess ArrayAccess} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.ArrayAccess node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.ArrayAccess ArrayAccess} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.ArrayAccess node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.ArrayTypeExpression ArrayTypeExpression} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.ArrayTypeExpression node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.ArrayTypeExpression ArrayTypeExpression} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.ArrayTypeExpression node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.Assignment Assignment} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.Assignment node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.Assignment Assignment} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.Assignment node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.BooleanLiteral BooleanLiteral} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.BooleanLiteral node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.BooleanLiteral BooleanLiteral} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.BooleanLiteral node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.CharacterLiteral CharacterLiteral} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.CharacterLiteral node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.CharacterLiteral CharacterLiteral} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.CharacterLiteral node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.ClassLiteral ClassLiteral} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.ClassLiteral node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.ClassLiteral ClassLiteral} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.ClassLiteral node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.Conditional Conditional} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.Conditional node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.Conditional Conditional} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.Conditional node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.DoubleLiteral DoubleLiteral} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.DoubleLiteral node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.DoubleLiteral DoubleLiteral} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.DoubleLiteral node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.Erroneous Erroneous} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.Erroneous node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.Erroneous Erroneous} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.Erroneous node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.ErroneousTypeExpression ErroneousTypeExpression} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.ErroneousTypeExpression node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.ErroneousTypeExpression ErroneousTypeExpression} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.ErroneousTypeExpression node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.ExternalTypeExpression ExternalTypeExpression} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.ExternalTypeExpression node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.ExternalTypeExpression ExternalTypeExpression} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.ExternalTypeExpression node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.FieldAccess FieldAccess} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.FieldAccess node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.FieldAccess FieldAccess} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.FieldAccess node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.FloatLiteral FloatLiteral} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.FloatLiteral node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.FloatLiteral FloatLiteral} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.FloatLiteral node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.Identifier Identifier} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.Identifier node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.Identifier Identifier} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.Identifier node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.InfixExpression InfixExpression} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.InfixExpression node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.InfixExpression InfixExpression} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.InfixExpression node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.InstanceOf InstanceOf} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.InstanceOf node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.InstanceOf InstanceOf} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.InstanceOf node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.IntegerLiteral IntegerLiteral} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.IntegerLiteral node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.IntegerLiteral IntegerLiteral} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.IntegerLiteral node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.Lambda Lambda} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.Lambda node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.Lambda Lambda} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.Lambda node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.LongLiteral LongLiteral} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.LongLiteral node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.LongLiteral LongLiteral} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.LongLiteral node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.MarkerAnnotation MarkerAnnotation} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.MarkerAnnotation node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.MarkerAnnotation MarkerAnnotation} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.MarkerAnnotation node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.MemberReference MemberReference} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.MemberReference node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.MemberReference MemberReference} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.MemberReference node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.MethodInvocation MethodInvocation} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.MethodInvocation node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.MethodInvocation MethodInvocation} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.MethodInvocation node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.NewArray NewArray} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.NewArray node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.NewArray NewArray} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.NewArray node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.NewClass NewClass} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.NewClass node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.NewClass NewClass} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.NewClass node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.NormalAnnotation NormalAnnotation} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.NormalAnnotation node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.NormalAnnotation NormalAnnotation} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.NormalAnnotation node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.NullLiteral NullLiteral} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.NullLiteral node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.NullLiteral NullLiteral} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.NullLiteral node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.ParenthesizedExpression ParenthesizedExpression} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.ParenthesizedExpression node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.ParenthesizedExpression ParenthesizedExpression} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.ParenthesizedExpression node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.PostfixExpression PostfixExpression} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.PostfixExpression node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.PostfixExpression PostfixExpression} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.PostfixExpression node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.PrefixExpression PrefixExpression} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.PrefixExpression node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.PrefixExpression PrefixExpression} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.PrefixExpression node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.PrimitiveTypeExpression PrimitiveTypeExpression} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.PrimitiveTypeExpression node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.PrimitiveTypeExpression PrimitiveTypeExpression} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.PrimitiveTypeExpression node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.QualifiedTypeExpression QualifiedTypeExpression} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.QualifiedTypeExpression node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.QualifiedTypeExpression QualifiedTypeExpression} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.QualifiedTypeExpression node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.SimpleTypeExpression SimpleTypeExpression} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.SimpleTypeExpression node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.SimpleTypeExpression SimpleTypeExpression} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.SimpleTypeExpression node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.SingleElementAnnotation SingleElementAnnotation} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.SingleElementAnnotation node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.SingleElementAnnotation SingleElementAnnotation} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.SingleElementAnnotation node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.StringLiteral StringLiteral} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.StringLiteral node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.StringLiteral StringLiteral} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.StringLiteral node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.Super Super} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.Super node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.Super Super} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.Super node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.This This} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.This node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.This This} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.This node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.TypeApplyExpression TypeApplyExpression} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.TypeApplyExpression node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.TypeApplyExpression TypeApplyExpression} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.TypeApplyExpression node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.TypeCast TypeCast} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.TypeCast node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.TypeCast TypeCast} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.TypeCast node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.TypeIntersectionExpression TypeIntersectionExpression} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.TypeIntersectionExpression node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.TypeIntersectionExpression TypeIntersectionExpression} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.TypeIntersectionExpression node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.TypeUnionExpression TypeUnionExpression} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.TypeUnionExpression node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.TypeUnionExpression TypeUnionExpression} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.TypeUnionExpression node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.expr.WildcardExpression WildcardExpression} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.expr.WildcardExpression node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.expr.WildcardExpression WildcardExpression} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.expr.WildcardExpression node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.module.Exports Exports} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.module.Exports node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.module.Exports Exports} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.module.Exports node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.module.Opens Opens} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.module.Opens node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.module.Opens Opens} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.module.Opens node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.module.Provides Provides} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.module.Provides node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.module.Provides Provides} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.module.Provides node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.module.Requires Requires} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.module.Requires node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.module.Requires Requires} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.module.Requires node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.module.Uses Uses} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.module.Uses node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.module.Uses Uses} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.module.Uses node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.statm.Assert Assert} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.statm.Assert node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.statm.Assert Assert} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.statm.Assert node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.statm.BasicFor BasicFor} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.statm.BasicFor node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.statm.BasicFor BasicFor} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.statm.BasicFor node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.statm.Block Block} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.statm.Block node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.statm.Block Block} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.statm.Block node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.statm.Break Break} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.statm.Break node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.statm.Break Break} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.statm.Break node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.statm.Case Case} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.statm.Case node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.statm.Case Case} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.statm.Case node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.statm.Continue Continue} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.statm.Continue node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.statm.Continue Continue} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.statm.Continue node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.statm.Default Default} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.statm.Default node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.statm.Default Default} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.statm.Default node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.statm.Do Do} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.statm.Do node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.statm.Do Do} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.statm.Do node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.statm.Empty Empty} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.statm.Empty node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.statm.Empty Empty} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.statm.Empty node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.statm.EnhancedFor EnhancedFor} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.statm.EnhancedFor node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.statm.EnhancedFor EnhancedFor} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.statm.EnhancedFor node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.statm.ExpressionStatement ExpressionStatement} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.statm.ExpressionStatement node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.statm.ExpressionStatement ExpressionStatement} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.statm.ExpressionStatement node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.statm.Handler Handler} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.statm.Handler node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.statm.Handler Handler} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.statm.Handler node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.statm.If If} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.statm.If node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.statm.If If} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.statm.If node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.statm.LabeledStatement LabeledStatement} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.statm.LabeledStatement node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.statm.LabeledStatement LabeledStatement} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.statm.LabeledStatement node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.statm.Return Return} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.statm.Return node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.statm.Return Return} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.statm.Return node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.statm.Switch Switch} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.statm.Switch node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.statm.Switch Switch} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.statm.Switch node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.statm.Synchronized Synchronized} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.statm.Synchronized node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.statm.Synchronized Synchronized} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.statm.Synchronized node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.statm.Throw Throw} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.statm.Throw node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.statm.Throw Throw} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.statm.Throw node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.statm.Try Try} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.statm.Try node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.statm.Try Try} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.statm.Try node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.statm.While While} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.statm.While node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.statm.While While} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.statm.While node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.struc.AnnotationType AnnotationType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.struc.AnnotationType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.struc.AnnotationType AnnotationType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.struc.AnnotationType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.struc.AnnotationTypeElement AnnotationTypeElement} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.struc.AnnotationTypeElement node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.struc.AnnotationTypeElement AnnotationTypeElement} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.struc.AnnotationTypeElement node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.struc.AnonymousClass AnonymousClass} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.struc.AnonymousClass node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.struc.AnonymousClass AnonymousClass} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.struc.AnonymousClass node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.struc.Class Class} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.struc.Class node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.struc.Class Class} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.struc.Class node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.struc.ClassGeneric ClassGeneric} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.struc.ClassGeneric node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.struc.ClassGeneric ClassGeneric} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.struc.ClassGeneric node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.struc.CompilationUnit CompilationUnit} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.struc.CompilationUnit node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.struc.CompilationUnit CompilationUnit} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.struc.CompilationUnit node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.struc.Enum Enum} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.struc.Enum node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.struc.Enum Enum} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.struc.Enum node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.struc.EnumConstant EnumConstant} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.struc.EnumConstant node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.struc.EnumConstant EnumConstant} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.struc.EnumConstant node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.struc.Import Import} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.struc.Import node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.struc.Import Import} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.struc.Import node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.struc.InstanceInitializerBlock InstanceInitializerBlock} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.struc.InstanceInitializerBlock node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.struc.InstanceInitializerBlock InstanceInitializerBlock} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.struc.InstanceInitializerBlock node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.struc.Interface Interface} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.struc.Interface node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.struc.Interface Interface} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.struc.Interface node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.struc.InterfaceGeneric InterfaceGeneric} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.struc.InterfaceGeneric node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.struc.InterfaceGeneric InterfaceGeneric} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.struc.InterfaceGeneric node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.struc.Method Method} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.struc.Method node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.struc.Method Method} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.struc.Method node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.struc.MethodGeneric MethodGeneric} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.struc.MethodGeneric node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.struc.MethodGeneric MethodGeneric} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.struc.MethodGeneric node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.struc.Module Module} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.struc.Module node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.struc.Module Module} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.struc.Module node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.struc.ModuleDeclaration ModuleDeclaration} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.struc.ModuleDeclaration node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.struc.ModuleDeclaration ModuleDeclaration} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.struc.ModuleDeclaration node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.struc.Package Package} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.struc.Package node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.struc.Package Package} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.struc.Package node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.struc.PackageDeclaration PackageDeclaration} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.struc.PackageDeclaration node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.struc.PackageDeclaration PackageDeclaration} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.struc.PackageDeclaration node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.struc.Parameter Parameter} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.struc.Parameter node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.struc.Parameter Parameter} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.struc.Parameter node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.struc.StaticInitializerBlock StaticInitializerBlock} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.struc.StaticInitializerBlock node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.struc.StaticInitializerBlock StaticInitializerBlock} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.struc.StaticInitializerBlock node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.struc.TypeParameter TypeParameter} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.struc.TypeParameter node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.struc.TypeParameter TypeParameter} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.struc.TypeParameter node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.struc.Variable Variable} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.struc.Variable node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.struc.Variable Variable} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.struc.Variable node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.type.ArrayType ArrayType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.type.ArrayType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.type.ArrayType ArrayType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.type.ArrayType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.type.BooleanType BooleanType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.type.BooleanType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.type.BooleanType BooleanType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.type.BooleanType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.type.ByteType ByteType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.type.ByteType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.type.ByteType ByteType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.type.ByteType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.type.CharType CharType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.type.CharType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.type.CharType CharType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.type.CharType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.type.ClassType ClassType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.type.ClassType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.type.ClassType ClassType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.type.ClassType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.type.DoubleType DoubleType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.type.DoubleType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.type.DoubleType DoubleType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.type.DoubleType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.type.ErrorType ErrorType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.type.ErrorType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.type.ErrorType ErrorType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.type.ErrorType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.type.FloatType FloatType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.type.FloatType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.type.FloatType FloatType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.type.FloatType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.type.IntType IntType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.type.IntType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.type.IntType IntType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.type.IntType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.type.IntersectionType IntersectionType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.type.IntersectionType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.type.IntersectionType IntersectionType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.type.IntersectionType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.type.LongType LongType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.type.LongType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.type.LongType LongType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.type.LongType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.type.LowerBoundedWildcardType LowerBoundedWildcardType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.type.LowerBoundedWildcardType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.type.LowerBoundedWildcardType LowerBoundedWildcardType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.type.LowerBoundedWildcardType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.type.MethodType MethodType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.type.MethodType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.type.MethodType MethodType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.type.MethodType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.type.ModuleType ModuleType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.type.ModuleType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.type.ModuleType ModuleType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.type.ModuleType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.type.NoType NoType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.type.NoType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.type.NoType NoType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.type.NoType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.type.NullType NullType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.type.NullType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.type.NullType NullType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.type.NullType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.type.PackageType PackageType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.type.PackageType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.type.PackageType PackageType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.type.PackageType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.type.ParameterizedType ParameterizedType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.type.ParameterizedType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.type.ParameterizedType ParameterizedType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.type.ParameterizedType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.type.ShortType ShortType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.type.ShortType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.type.ShortType ShortType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.type.ShortType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.type.TypeVariable TypeVariable} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.type.TypeVariable node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.type.TypeVariable TypeVariable} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.type.TypeVariable node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.type.UnboundedWildcardType UnboundedWildcardType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.type.UnboundedWildcardType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.type.UnboundedWildcardType UnboundedWildcardType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.type.UnboundedWildcardType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.type.UnionType UnionType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.type.UnionType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.type.UnionType UnionType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.type.UnionType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.type.UpperBoundedWildcardType UpperBoundedWildcardType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.type.UpperBoundedWildcardType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.type.UpperBoundedWildcardType UpperBoundedWildcardType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.type.UpperBoundedWildcardType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the beginning of the {@link columbus.java.asg.type.VoidType VoidType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit (columbus.java.asg.type.VoidType node, boolean callVirtualBase) { }
/**
* Visitor which is called at the end of the {@link columbus.java.asg.type.VoidType VoidType} node visiting.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(columbus.java.asg.type.VoidType node, boolean callVirtualBase) { }
/**
* Edge visitor for 'comments' edge which is called when this edge is visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitCommentable_Comments (columbus.java.asg.base.Commentable begin, columbus.java.asg.base.Comment end) { }
/**
* Edge end visitor for 'comments' edge which is called after this edge has been visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndCommentable_Comments(columbus.java.asg.base.Commentable begin, columbus.java.asg.base.Comment end) { }
/**
* Edge visitor for 'hasAnnotations' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitAnnotatedTypeExpression_HasAnnotations (columbus.java.asg.expr.AnnotatedTypeExpression begin, columbus.java.asg.expr.Annotation end) { }
/**
* Edge end visitor for 'hasAnnotations' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndAnnotatedTypeExpression_HasAnnotations(columbus.java.asg.expr.AnnotatedTypeExpression begin, columbus.java.asg.expr.Annotation end) { }
/**
* Edge visitor for 'hasUnderlyingType' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitAnnotatedTypeExpression_HasUnderlyingType (columbus.java.asg.expr.AnnotatedTypeExpression begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge end visitor for 'hasUnderlyingType' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndAnnotatedTypeExpression_HasUnderlyingType(columbus.java.asg.expr.AnnotatedTypeExpression begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge visitor for 'hasAnnotationName' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitAnnotation_HasAnnotationName (columbus.java.asg.expr.Annotation begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge end visitor for 'hasAnnotationName' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndAnnotation_HasAnnotationName(columbus.java.asg.expr.Annotation begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge visitor for 'hasComponentType' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitArrayTypeExpression_HasComponentType (columbus.java.asg.expr.ArrayTypeExpression begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge end visitor for 'hasComponentType' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndArrayTypeExpression_HasComponentType(columbus.java.asg.expr.ArrayTypeExpression begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge visitor for 'hasLeftOperand' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitBinary_HasLeftOperand (columbus.java.asg.expr.Binary begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge end visitor for 'hasLeftOperand' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndBinary_HasLeftOperand(columbus.java.asg.expr.Binary begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge visitor for 'hasRightOperand' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitBinary_HasRightOperand (columbus.java.asg.expr.Binary begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge end visitor for 'hasRightOperand' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndBinary_HasRightOperand(columbus.java.asg.expr.Binary begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge visitor for 'hasComponentType' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitClassLiteral_HasComponentType (columbus.java.asg.expr.ClassLiteral begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge end visitor for 'hasComponentType' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndClassLiteral_HasComponentType(columbus.java.asg.expr.ClassLiteral begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge visitor for 'hasCondition' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitConditional_HasCondition (columbus.java.asg.expr.Conditional begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge end visitor for 'hasCondition' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndConditional_HasCondition(columbus.java.asg.expr.Conditional begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge visitor for 'hasTrueExpression' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitConditional_HasTrueExpression (columbus.java.asg.expr.Conditional begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge end visitor for 'hasTrueExpression' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndConditional_HasTrueExpression(columbus.java.asg.expr.Conditional begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge visitor for 'hasFalseExpression' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitConditional_HasFalseExpression (columbus.java.asg.expr.Conditional begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge end visitor for 'hasFalseExpression' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndConditional_HasFalseExpression(columbus.java.asg.expr.Conditional begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge visitor for 'hasErrors' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitErroneous_HasErrors (columbus.java.asg.expr.Erroneous begin, columbus.java.asg.base.Positioned end) { }
/**
* Edge end visitor for 'hasErrors' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndErroneous_HasErrors(columbus.java.asg.expr.Erroneous begin, columbus.java.asg.base.Positioned end) { }
/**
* Edge visitor for 'hasErrors' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitErroneousTypeExpression_HasErrors (columbus.java.asg.expr.ErroneousTypeExpression begin, columbus.java.asg.base.Positioned end) { }
/**
* Edge end visitor for 'hasErrors' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndErroneousTypeExpression_HasErrors(columbus.java.asg.expr.ErroneousTypeExpression begin, columbus.java.asg.base.Positioned end) { }
/**
* Edge visitor for 'type' edge which is called when this edge is visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitExpression_Type (columbus.java.asg.expr.Expression begin, columbus.java.asg.type.Type end) { }
/**
* Edge end visitor for 'type' edge which is called after this edge has been visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndExpression_Type(columbus.java.asg.expr.Expression begin, columbus.java.asg.type.Type end) { }
/**
* Edge visitor for 'target' edge which is called when this edge is visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitFunctionalExpression_Target (columbus.java.asg.expr.FunctionalExpression begin, columbus.java.asg.type.Type end) { }
/**
* Edge end visitor for 'target' edge which is called after this edge has been visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndFunctionalExpression_Target(columbus.java.asg.expr.FunctionalExpression begin, columbus.java.asg.type.Type end) { }
/**
* Edge visitor for 'refersTo' edge which is called when this edge is visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitIdentifier_RefersTo (columbus.java.asg.expr.Identifier begin, columbus.java.asg.base.Named end) { }
/**
* Edge end visitor for 'refersTo' edge which is called after this edge has been visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndIdentifier_RefersTo(columbus.java.asg.expr.Identifier begin, columbus.java.asg.base.Named end) { }
/**
* Edge visitor for 'hasTypeOperand' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitInstanceOf_HasTypeOperand (columbus.java.asg.expr.InstanceOf begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge end visitor for 'hasTypeOperand' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndInstanceOf_HasTypeOperand(columbus.java.asg.expr.InstanceOf begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge visitor for 'hasParameters' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitLambda_HasParameters (columbus.java.asg.expr.Lambda begin, columbus.java.asg.struc.Parameter end) { }
/**
* Edge end visitor for 'hasParameters' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndLambda_HasParameters(columbus.java.asg.expr.Lambda begin, columbus.java.asg.struc.Parameter end) { }
/**
* Edge visitor for 'hasBody' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitLambda_HasBody (columbus.java.asg.expr.Lambda begin, columbus.java.asg.base.Positioned end) { }
/**
* Edge end visitor for 'hasBody' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndLambda_HasBody(columbus.java.asg.expr.Lambda begin, columbus.java.asg.base.Positioned end) { }
/**
* Edge visitor for 'hasQualifierExpression' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitMemberReference_HasQualifierExpression (columbus.java.asg.expr.MemberReference begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge end visitor for 'hasQualifierExpression' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndMemberReference_HasQualifierExpression(columbus.java.asg.expr.MemberReference begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge visitor for 'hasTypeArguments' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitMemberReference_HasTypeArguments (columbus.java.asg.expr.MemberReference begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge end visitor for 'hasTypeArguments' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndMemberReference_HasTypeArguments(columbus.java.asg.expr.MemberReference begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge visitor for 'referredMethod' edge which is called when this edge is visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitMemberReference_ReferredMethod (columbus.java.asg.expr.MemberReference begin, columbus.java.asg.struc.MethodDeclaration end) { }
/**
* Edge end visitor for 'referredMethod' edge which is called after this edge has been visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndMemberReference_ReferredMethod(columbus.java.asg.expr.MemberReference begin, columbus.java.asg.struc.MethodDeclaration end) { }
/**
* Edge visitor for 'hasTypeArguments' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitMethodInvocation_HasTypeArguments (columbus.java.asg.expr.MethodInvocation begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge end visitor for 'hasTypeArguments' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndMethodInvocation_HasTypeArguments(columbus.java.asg.expr.MethodInvocation begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge visitor for 'hasArguments' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitMethodInvocation_HasArguments (columbus.java.asg.expr.MethodInvocation begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge end visitor for 'hasArguments' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndMethodInvocation_HasArguments(columbus.java.asg.expr.MethodInvocation begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge visitor for 'invokes' edge which is called when this edge is visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitMethodInvocation_Invokes (columbus.java.asg.expr.MethodInvocation begin, columbus.java.asg.struc.MethodDeclaration end) { }
/**
* Edge end visitor for 'invokes' edge which is called after this edge has been visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndMethodInvocation_Invokes(columbus.java.asg.expr.MethodInvocation begin, columbus.java.asg.struc.MethodDeclaration end) { }
/**
* Edge visitor for 'hasComponentType' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitNewArray_HasComponentType (columbus.java.asg.expr.NewArray begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge end visitor for 'hasComponentType' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndNewArray_HasComponentType(columbus.java.asg.expr.NewArray begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge visitor for 'hasDimensions' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitNewArray_HasDimensions (columbus.java.asg.expr.NewArray begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge end visitor for 'hasDimensions' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndNewArray_HasDimensions(columbus.java.asg.expr.NewArray begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge visitor for 'hasInitializers' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitNewArray_HasInitializers (columbus.java.asg.expr.NewArray begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge end visitor for 'hasInitializers' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndNewArray_HasInitializers(columbus.java.asg.expr.NewArray begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge visitor for 'hasEnclosingExpression' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitNewClass_HasEnclosingExpression (columbus.java.asg.expr.NewClass begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge end visitor for 'hasEnclosingExpression' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndNewClass_HasEnclosingExpression(columbus.java.asg.expr.NewClass begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge visitor for 'hasTypeArguments' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitNewClass_HasTypeArguments (columbus.java.asg.expr.NewClass begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge end visitor for 'hasTypeArguments' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndNewClass_HasTypeArguments(columbus.java.asg.expr.NewClass begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge visitor for 'hasTypeName' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitNewClass_HasTypeName (columbus.java.asg.expr.NewClass begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge end visitor for 'hasTypeName' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndNewClass_HasTypeName(columbus.java.asg.expr.NewClass begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge visitor for 'hasArguments' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitNewClass_HasArguments (columbus.java.asg.expr.NewClass begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge end visitor for 'hasArguments' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndNewClass_HasArguments(columbus.java.asg.expr.NewClass begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge visitor for 'hasAnonymousClass' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitNewClass_HasAnonymousClass (columbus.java.asg.expr.NewClass begin, columbus.java.asg.struc.AnonymousClass end) { }
/**
* Edge end visitor for 'hasAnonymousClass' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndNewClass_HasAnonymousClass(columbus.java.asg.expr.NewClass begin, columbus.java.asg.struc.AnonymousClass end) { }
/**
* Edge visitor for 'constructor' edge which is called when this edge is visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitNewClass_Constructor (columbus.java.asg.expr.NewClass begin, columbus.java.asg.struc.NormalMethod end) { }
/**
* Edge end visitor for 'constructor' edge which is called after this edge has been visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndNewClass_Constructor(columbus.java.asg.expr.NewClass begin, columbus.java.asg.struc.NormalMethod end) { }
/**
* Edge visitor for 'hasArguments' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitNormalAnnotation_HasArguments (columbus.java.asg.expr.NormalAnnotation begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge end visitor for 'hasArguments' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndNormalAnnotation_HasArguments(columbus.java.asg.expr.NormalAnnotation begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge visitor for 'hasQualifierType' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitQualifiedTypeExpression_HasQualifierType (columbus.java.asg.expr.QualifiedTypeExpression begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge end visitor for 'hasQualifierType' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndQualifiedTypeExpression_HasQualifierType(columbus.java.asg.expr.QualifiedTypeExpression begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge visitor for 'hasSimpleType' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitQualifiedTypeExpression_HasSimpleType (columbus.java.asg.expr.QualifiedTypeExpression begin, columbus.java.asg.expr.SimpleTypeExpression end) { }
/**
* Edge end visitor for 'hasSimpleType' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndQualifiedTypeExpression_HasSimpleType(columbus.java.asg.expr.QualifiedTypeExpression begin, columbus.java.asg.expr.SimpleTypeExpression end) { }
/**
* Edge visitor for 'hasArgument' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitSingleElementAnnotation_HasArgument (columbus.java.asg.expr.SingleElementAnnotation begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge end visitor for 'hasArgument' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndSingleElementAnnotation_HasArgument(columbus.java.asg.expr.SingleElementAnnotation begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge visitor for 'hasRawType' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitTypeApplyExpression_HasRawType (columbus.java.asg.expr.TypeApplyExpression begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge end visitor for 'hasRawType' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndTypeApplyExpression_HasRawType(columbus.java.asg.expr.TypeApplyExpression begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge visitor for 'hasTypeArguments' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitTypeApplyExpression_HasTypeArguments (columbus.java.asg.expr.TypeApplyExpression begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge end visitor for 'hasTypeArguments' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndTypeApplyExpression_HasTypeArguments(columbus.java.asg.expr.TypeApplyExpression begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge visitor for 'hasTypeOperand' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitTypeCast_HasTypeOperand (columbus.java.asg.expr.TypeCast begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge end visitor for 'hasTypeOperand' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndTypeCast_HasTypeOperand(columbus.java.asg.expr.TypeCast begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge visitor for 'hasBounds' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitTypeIntersectionExpression_HasBounds (columbus.java.asg.expr.TypeIntersectionExpression begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge end visitor for 'hasBounds' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndTypeIntersectionExpression_HasBounds(columbus.java.asg.expr.TypeIntersectionExpression begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge visitor for 'hasAlternatives' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitTypeUnionExpression_HasAlternatives (columbus.java.asg.expr.TypeUnionExpression begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge end visitor for 'hasAlternatives' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndTypeUnionExpression_HasAlternatives(columbus.java.asg.expr.TypeUnionExpression begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge visitor for 'hasOperand' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitUnary_HasOperand (columbus.java.asg.expr.Unary begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge end visitor for 'hasOperand' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndUnary_HasOperand(columbus.java.asg.expr.Unary begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge visitor for 'hasBound' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitWildcardExpression_HasBound (columbus.java.asg.expr.WildcardExpression begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge end visitor for 'hasBound' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndWildcardExpression_HasBound(columbus.java.asg.expr.WildcardExpression begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge visitor for 'hasPackageName' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitExports_HasPackageName (columbus.java.asg.module.Exports begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge end visitor for 'hasPackageName' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndExports_HasPackageName(columbus.java.asg.module.Exports begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge visitor for 'hasModuleNames' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitExports_HasModuleNames (columbus.java.asg.module.Exports begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge end visitor for 'hasModuleNames' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndExports_HasModuleNames(columbus.java.asg.module.Exports begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge visitor for 'hasPackageName' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitOpens_HasPackageName (columbus.java.asg.module.Opens begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge end visitor for 'hasPackageName' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndOpens_HasPackageName(columbus.java.asg.module.Opens begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge visitor for 'hasModuleNames' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitOpens_HasModuleNames (columbus.java.asg.module.Opens begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge end visitor for 'hasModuleNames' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndOpens_HasModuleNames(columbus.java.asg.module.Opens begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge visitor for 'hasServiceName' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitProvides_HasServiceName (columbus.java.asg.module.Provides begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge end visitor for 'hasServiceName' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndProvides_HasServiceName(columbus.java.asg.module.Provides begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge visitor for 'hasImplementationNames' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitProvides_HasImplementationNames (columbus.java.asg.module.Provides begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge end visitor for 'hasImplementationNames' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndProvides_HasImplementationNames(columbus.java.asg.module.Provides begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge visitor for 'hasModuleName' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitRequires_HasModuleName (columbus.java.asg.module.Requires begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge end visitor for 'hasModuleName' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndRequires_HasModuleName(columbus.java.asg.module.Requires begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge visitor for 'hasServiceName' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitUses_HasServiceName (columbus.java.asg.module.Uses begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge end visitor for 'hasServiceName' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndUses_HasServiceName(columbus.java.asg.module.Uses begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge visitor for 'hasCondition' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitAssert_HasCondition (columbus.java.asg.statm.Assert begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge end visitor for 'hasCondition' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndAssert_HasCondition(columbus.java.asg.statm.Assert begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge visitor for 'hasDetail' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitAssert_HasDetail (columbus.java.asg.statm.Assert begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge end visitor for 'hasDetail' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndAssert_HasDetail(columbus.java.asg.statm.Assert begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge visitor for 'hasInitializers' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitBasicFor_HasInitializers (columbus.java.asg.statm.BasicFor begin, columbus.java.asg.statm.Statement end) { }
/**
* Edge end visitor for 'hasInitializers' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndBasicFor_HasInitializers(columbus.java.asg.statm.BasicFor begin, columbus.java.asg.statm.Statement end) { }
/**
* Edge visitor for 'hasCondition' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitBasicFor_HasCondition (columbus.java.asg.statm.BasicFor begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge end visitor for 'hasCondition' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndBasicFor_HasCondition(columbus.java.asg.statm.BasicFor begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge visitor for 'hasUpdates' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitBasicFor_HasUpdates (columbus.java.asg.statm.BasicFor begin, columbus.java.asg.statm.Statement end) { }
/**
* Edge end visitor for 'hasUpdates' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndBasicFor_HasUpdates(columbus.java.asg.statm.BasicFor begin, columbus.java.asg.statm.Statement end) { }
/**
* Edge visitor for 'hasStatements' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitBlock_HasStatements (columbus.java.asg.statm.Block begin, columbus.java.asg.statm.Statement end) { }
/**
* Edge end visitor for 'hasStatements' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndBlock_HasStatements(columbus.java.asg.statm.Block begin, columbus.java.asg.statm.Statement end) { }
/**
* Edge visitor for 'hasExpression' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitCase_HasExpression (columbus.java.asg.statm.Case begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge end visitor for 'hasExpression' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndCase_HasExpression(columbus.java.asg.statm.Case begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge visitor for 'hasCondition' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitDo_HasCondition (columbus.java.asg.statm.Do begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge end visitor for 'hasCondition' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndDo_HasCondition(columbus.java.asg.statm.Do begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge visitor for 'hasParameter' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEnhancedFor_HasParameter (columbus.java.asg.statm.EnhancedFor begin, columbus.java.asg.struc.Parameter end) { }
/**
* Edge end visitor for 'hasParameter' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndEnhancedFor_HasParameter(columbus.java.asg.statm.EnhancedFor begin, columbus.java.asg.struc.Parameter end) { }
/**
* Edge visitor for 'hasExpression' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEnhancedFor_HasExpression (columbus.java.asg.statm.EnhancedFor begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge end visitor for 'hasExpression' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndEnhancedFor_HasExpression(columbus.java.asg.statm.EnhancedFor begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge visitor for 'hasExpression' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitExpressionStatement_HasExpression (columbus.java.asg.statm.ExpressionStatement begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge end visitor for 'hasExpression' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndExpressionStatement_HasExpression(columbus.java.asg.statm.ExpressionStatement begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge visitor for 'hasParameter' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitHandler_HasParameter (columbus.java.asg.statm.Handler begin, columbus.java.asg.struc.Parameter end) { }
/**
* Edge end visitor for 'hasParameter' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndHandler_HasParameter(columbus.java.asg.statm.Handler begin, columbus.java.asg.struc.Parameter end) { }
/**
* Edge visitor for 'hasBlock' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitHandler_HasBlock (columbus.java.asg.statm.Handler begin, columbus.java.asg.statm.Block end) { }
/**
* Edge end visitor for 'hasBlock' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndHandler_HasBlock(columbus.java.asg.statm.Handler begin, columbus.java.asg.statm.Block end) { }
/**
* Edge visitor for 'hasSubstatement' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitIf_HasSubstatement (columbus.java.asg.statm.If begin, columbus.java.asg.statm.Statement end) { }
/**
* Edge end visitor for 'hasSubstatement' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndIf_HasSubstatement(columbus.java.asg.statm.If begin, columbus.java.asg.statm.Statement end) { }
/**
* Edge visitor for 'hasFalseSubstatement' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitIf_HasFalseSubstatement (columbus.java.asg.statm.If begin, columbus.java.asg.statm.Statement end) { }
/**
* Edge end visitor for 'hasFalseSubstatement' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndIf_HasFalseSubstatement(columbus.java.asg.statm.If begin, columbus.java.asg.statm.Statement end) { }
/**
* Edge visitor for 'hasSubstatement' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitIteration_HasSubstatement (columbus.java.asg.statm.Iteration begin, columbus.java.asg.statm.Statement end) { }
/**
* Edge end visitor for 'hasSubstatement' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndIteration_HasSubstatement(columbus.java.asg.statm.Iteration begin, columbus.java.asg.statm.Statement end) { }
/**
* Edge visitor for 'target' edge which is called when this edge is visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitJump_Target (columbus.java.asg.statm.Jump begin, columbus.java.asg.statm.Statement end) { }
/**
* Edge end visitor for 'target' edge which is called after this edge has been visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndJump_Target(columbus.java.asg.statm.Jump begin, columbus.java.asg.statm.Statement end) { }
/**
* Edge visitor for 'hasStatement' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitLabeledStatement_HasStatement (columbus.java.asg.statm.LabeledStatement begin, columbus.java.asg.statm.Statement end) { }
/**
* Edge end visitor for 'hasStatement' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndLabeledStatement_HasStatement(columbus.java.asg.statm.LabeledStatement begin, columbus.java.asg.statm.Statement end) { }
/**
* Edge visitor for 'hasExpression' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitReturn_HasExpression (columbus.java.asg.statm.Return begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge end visitor for 'hasExpression' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndReturn_HasExpression(columbus.java.asg.statm.Return begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge visitor for 'hasCondition' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitSelection_HasCondition (columbus.java.asg.statm.Selection begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge end visitor for 'hasCondition' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndSelection_HasCondition(columbus.java.asg.statm.Selection begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge visitor for 'hasCases' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitSwitch_HasCases (columbus.java.asg.statm.Switch begin, columbus.java.asg.statm.SwitchLabel end) { }
/**
* Edge end visitor for 'hasCases' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndSwitch_HasCases(columbus.java.asg.statm.Switch begin, columbus.java.asg.statm.SwitchLabel end) { }
/**
* Edge visitor for 'hasStatements' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitSwitchLabel_HasStatements (columbus.java.asg.statm.SwitchLabel begin, columbus.java.asg.statm.Statement end) { }
/**
* Edge end visitor for 'hasStatements' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndSwitchLabel_HasStatements(columbus.java.asg.statm.SwitchLabel begin, columbus.java.asg.statm.Statement end) { }
/**
* Edge visitor for 'hasLock' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitSynchronized_HasLock (columbus.java.asg.statm.Synchronized begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge end visitor for 'hasLock' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndSynchronized_HasLock(columbus.java.asg.statm.Synchronized begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge visitor for 'hasBlock' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitSynchronized_HasBlock (columbus.java.asg.statm.Synchronized begin, columbus.java.asg.statm.Block end) { }
/**
* Edge end visitor for 'hasBlock' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndSynchronized_HasBlock(columbus.java.asg.statm.Synchronized begin, columbus.java.asg.statm.Block end) { }
/**
* Edge visitor for 'hasExpression' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitThrow_HasExpression (columbus.java.asg.statm.Throw begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge end visitor for 'hasExpression' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndThrow_HasExpression(columbus.java.asg.statm.Throw begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge visitor for 'hasResources' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitTry_HasResources (columbus.java.asg.statm.Try begin, columbus.java.asg.base.Base end) { }
/**
* Edge end visitor for 'hasResources' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndTry_HasResources(columbus.java.asg.statm.Try begin, columbus.java.asg.base.Base end) { }
/**
* Edge visitor for 'hasBlock' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitTry_HasBlock (columbus.java.asg.statm.Try begin, columbus.java.asg.statm.Block end) { }
/**
* Edge end visitor for 'hasBlock' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndTry_HasBlock(columbus.java.asg.statm.Try begin, columbus.java.asg.statm.Block end) { }
/**
* Edge visitor for 'hasHandlers' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitTry_HasHandlers (columbus.java.asg.statm.Try begin, columbus.java.asg.statm.Handler end) { }
/**
* Edge end visitor for 'hasHandlers' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndTry_HasHandlers(columbus.java.asg.statm.Try begin, columbus.java.asg.statm.Handler end) { }
/**
* Edge visitor for 'hasFinallyBlock' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitTry_HasFinallyBlock (columbus.java.asg.statm.Try begin, columbus.java.asg.statm.Block end) { }
/**
* Edge end visitor for 'hasFinallyBlock' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndTry_HasFinallyBlock(columbus.java.asg.statm.Try begin, columbus.java.asg.statm.Block end) { }
/**
* Edge visitor for 'hasCondition' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitWhile_HasCondition (columbus.java.asg.statm.While begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge end visitor for 'hasCondition' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndWhile_HasCondition(columbus.java.asg.statm.While begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge visitor for 'hasAnnotations' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitAnnotatedElement_HasAnnotations (columbus.java.asg.struc.AnnotatedElement begin, columbus.java.asg.expr.Annotation end) { }
/**
* Edge end visitor for 'hasAnnotations' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndAnnotatedElement_HasAnnotations(columbus.java.asg.struc.AnnotatedElement begin, columbus.java.asg.expr.Annotation end) { }
/**
* Edge visitor for 'hasDefaultValue' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitAnnotationTypeElement_HasDefaultValue (columbus.java.asg.struc.AnnotationTypeElement begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge end visitor for 'hasDefaultValue' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndAnnotationTypeElement_HasDefaultValue(columbus.java.asg.struc.AnnotationTypeElement begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge visitor for 'hasPackageDeclaration' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitCompilationUnit_HasPackageDeclaration (columbus.java.asg.struc.CompilationUnit begin, columbus.java.asg.struc.PackageDeclaration end) { }
/**
* Edge end visitor for 'hasPackageDeclaration' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndCompilationUnit_HasPackageDeclaration(columbus.java.asg.struc.CompilationUnit begin, columbus.java.asg.struc.PackageDeclaration end) { }
/**
* Edge visitor for 'hasImports' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitCompilationUnit_HasImports (columbus.java.asg.struc.CompilationUnit begin, columbus.java.asg.struc.Import end) { }
/**
* Edge end visitor for 'hasImports' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndCompilationUnit_HasImports(columbus.java.asg.struc.CompilationUnit begin, columbus.java.asg.struc.Import end) { }
/**
* Edge visitor for 'hasOthers' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitCompilationUnit_HasOthers (columbus.java.asg.struc.CompilationUnit begin, columbus.java.asg.base.Positioned end) { }
/**
* Edge end visitor for 'hasOthers' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndCompilationUnit_HasOthers(columbus.java.asg.struc.CompilationUnit begin, columbus.java.asg.base.Positioned end) { }
/**
* Edge visitor for 'hasModuleDeclaration' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitCompilationUnit_HasModuleDeclaration (columbus.java.asg.struc.CompilationUnit begin, columbus.java.asg.struc.ModuleDeclaration end) { }
/**
* Edge end visitor for 'hasModuleDeclaration' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndCompilationUnit_HasModuleDeclaration(columbus.java.asg.struc.CompilationUnit begin, columbus.java.asg.struc.ModuleDeclaration end) { }
/**
* Edge visitor for 'typeDeclarations' edge which is called when this edge is visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitCompilationUnit_TypeDeclarations (columbus.java.asg.struc.CompilationUnit begin, columbus.java.asg.struc.TypeDeclaration end) { }
/**
* Edge end visitor for 'typeDeclarations' edge which is called after this edge has been visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndCompilationUnit_TypeDeclarations(columbus.java.asg.struc.CompilationUnit begin, columbus.java.asg.struc.TypeDeclaration end) { }
/**
* Edge visitor for 'isInModule' edge which is called when this edge is visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitCompilationUnit_IsInModule (columbus.java.asg.struc.CompilationUnit begin, columbus.java.asg.struc.Module end) { }
/**
* Edge end visitor for 'isInModule' edge which is called after this edge has been visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndCompilationUnit_IsInModule(columbus.java.asg.struc.CompilationUnit begin, columbus.java.asg.struc.Module end) { }
/**
* Edge visitor for 'hasNewClass' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEnumConstant_HasNewClass (columbus.java.asg.struc.EnumConstant begin, columbus.java.asg.expr.NewClass end) { }
/**
* Edge end visitor for 'hasNewClass' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndEnumConstant_HasNewClass(columbus.java.asg.struc.EnumConstant begin, columbus.java.asg.expr.NewClass end) { }
/**
* Edge visitor for 'hasTypeParameters' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitGenericDeclaration_HasTypeParameters (columbus.java.asg.struc.GenericDeclaration begin, columbus.java.asg.struc.TypeParameter end) { }
/**
* Edge end visitor for 'hasTypeParameters' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndGenericDeclaration_HasTypeParameters(columbus.java.asg.struc.GenericDeclaration begin, columbus.java.asg.struc.TypeParameter end) { }
/**
* Edge visitor for 'hasTarget' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitImport_HasTarget (columbus.java.asg.struc.Import begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge end visitor for 'hasTarget' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndImport_HasTarget(columbus.java.asg.struc.Import begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge visitor for 'hasBody' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitInitializerBlock_HasBody (columbus.java.asg.struc.InitializerBlock begin, columbus.java.asg.statm.Block end) { }
/**
* Edge end visitor for 'hasBody' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndInitializerBlock_HasBody(columbus.java.asg.struc.InitializerBlock begin, columbus.java.asg.statm.Block end) { }
/**
* Edge visitor for 'hasReturnType' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitMethodDeclaration_HasReturnType (columbus.java.asg.struc.MethodDeclaration begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge end visitor for 'hasReturnType' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndMethodDeclaration_HasReturnType(columbus.java.asg.struc.MethodDeclaration begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge visitor for 'methodType' edge which is called when this edge is visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitMethodDeclaration_MethodType (columbus.java.asg.struc.MethodDeclaration begin, columbus.java.asg.type.MethodType end) { }
/**
* Edge end visitor for 'methodType' edge which is called after this edge has been visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndMethodDeclaration_MethodType(columbus.java.asg.struc.MethodDeclaration begin, columbus.java.asg.type.MethodType end) { }
/**
* Edge visitor for 'overrides' edge which is called when this edge is visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitMethodDeclaration_Overrides (columbus.java.asg.struc.MethodDeclaration begin, columbus.java.asg.struc.MethodDeclaration end) { }
/**
* Edge end visitor for 'overrides' edge which is called after this edge has been visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndMethodDeclaration_Overrides(columbus.java.asg.struc.MethodDeclaration begin, columbus.java.asg.struc.MethodDeclaration end) { }
/**
* Edge visitor for 'packages' edge which is called when this edge is visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitModule_Packages (columbus.java.asg.struc.Module begin, columbus.java.asg.struc.Package end) { }
/**
* Edge end visitor for 'packages' edge which is called after this edge has been visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndModule_Packages(columbus.java.asg.struc.Module begin, columbus.java.asg.struc.Package end) { }
/**
* Edge visitor for 'hasName' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitModuleDeclaration_HasName (columbus.java.asg.struc.ModuleDeclaration begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge end visitor for 'hasName' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndModuleDeclaration_HasName(columbus.java.asg.struc.ModuleDeclaration begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge visitor for 'hasDirectives' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitModuleDeclaration_HasDirectives (columbus.java.asg.struc.ModuleDeclaration begin, columbus.java.asg.module.ModuleDirective end) { }
/**
* Edge end visitor for 'hasDirectives' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndModuleDeclaration_HasDirectives(columbus.java.asg.struc.ModuleDeclaration begin, columbus.java.asg.module.ModuleDirective end) { }
/**
* Edge visitor for 'moduleType' edge which is called when this edge is visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitModuleDeclaration_ModuleType (columbus.java.asg.struc.ModuleDeclaration begin, columbus.java.asg.type.ModuleType end) { }
/**
* Edge end visitor for 'moduleType' edge which is called after this edge has been visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndModuleDeclaration_ModuleType(columbus.java.asg.struc.ModuleDeclaration begin, columbus.java.asg.type.ModuleType end) { }
/**
* Edge visitor for 'refersTo' edge which is called when this edge is visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitModuleDeclaration_RefersTo (columbus.java.asg.struc.ModuleDeclaration begin, columbus.java.asg.struc.Module end) { }
/**
* Edge end visitor for 'refersTo' edge which is called after this edge has been visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndModuleDeclaration_RefersTo(columbus.java.asg.struc.ModuleDeclaration begin, columbus.java.asg.struc.Module end) { }
/**
* Edge visitor for 'hasParameters' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitNormalMethod_HasParameters (columbus.java.asg.struc.NormalMethod begin, columbus.java.asg.struc.Parameter end) { }
/**
* Edge end visitor for 'hasParameters' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndNormalMethod_HasParameters(columbus.java.asg.struc.NormalMethod begin, columbus.java.asg.struc.Parameter end) { }
/**
* Edge visitor for 'hasBody' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitNormalMethod_HasBody (columbus.java.asg.struc.NormalMethod begin, columbus.java.asg.statm.Block end) { }
/**
* Edge end visitor for 'hasBody' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndNormalMethod_HasBody(columbus.java.asg.struc.NormalMethod begin, columbus.java.asg.statm.Block end) { }
/**
* Edge visitor for 'hasThrownExceptions' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitNormalMethod_HasThrownExceptions (columbus.java.asg.struc.NormalMethod begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge end visitor for 'hasThrownExceptions' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndNormalMethod_HasThrownExceptions(columbus.java.asg.struc.NormalMethod begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge visitor for 'hasCompilationUnits' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitPackage_HasCompilationUnits (columbus.java.asg.struc.Package begin, columbus.java.asg.struc.CompilationUnit end) { }
/**
* Edge end visitor for 'hasCompilationUnits' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndPackage_HasCompilationUnits(columbus.java.asg.struc.Package begin, columbus.java.asg.struc.CompilationUnit end) { }
/**
* Edge visitor for 'isInModule' edge which is called when this edge is visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitPackage_IsInModule (columbus.java.asg.struc.Package begin, columbus.java.asg.struc.Module end) { }
/**
* Edge end visitor for 'isInModule' edge which is called after this edge has been visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndPackage_IsInModule(columbus.java.asg.struc.Package begin, columbus.java.asg.struc.Module end) { }
/**
* Edge visitor for 'hasPackageName' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitPackageDeclaration_HasPackageName (columbus.java.asg.struc.PackageDeclaration begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge end visitor for 'hasPackageName' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndPackageDeclaration_HasPackageName(columbus.java.asg.struc.PackageDeclaration begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge visitor for 'refersTo' edge which is called when this edge is visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitPackageDeclaration_RefersTo (columbus.java.asg.struc.PackageDeclaration begin, columbus.java.asg.struc.Package end) { }
/**
* Edge end visitor for 'refersTo' edge which is called after this edge has been visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndPackageDeclaration_RefersTo(columbus.java.asg.struc.PackageDeclaration begin, columbus.java.asg.struc.Package end) { }
/**
* Edge visitor for 'hasMembers' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitScope_HasMembers (columbus.java.asg.struc.Scope begin, columbus.java.asg.struc.Member end) { }
/**
* Edge end visitor for 'hasMembers' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndScope_HasMembers(columbus.java.asg.struc.Scope begin, columbus.java.asg.struc.Member end) { }
/**
* Edge visitor for 'hasSuperClass' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitTypeDeclaration_HasSuperClass (columbus.java.asg.struc.TypeDeclaration begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge end visitor for 'hasSuperClass' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndTypeDeclaration_HasSuperClass(columbus.java.asg.struc.TypeDeclaration begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge visitor for 'hasSuperInterfaces' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitTypeDeclaration_HasSuperInterfaces (columbus.java.asg.struc.TypeDeclaration begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge end visitor for 'hasSuperInterfaces' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndTypeDeclaration_HasSuperInterfaces(columbus.java.asg.struc.TypeDeclaration begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge visitor for 'hasOthers' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitTypeDeclaration_HasOthers (columbus.java.asg.struc.TypeDeclaration begin, columbus.java.asg.base.Positioned end) { }
/**
* Edge end visitor for 'hasOthers' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndTypeDeclaration_HasOthers(columbus.java.asg.struc.TypeDeclaration begin, columbus.java.asg.base.Positioned end) { }
/**
* Edge visitor for 'isInCompilationUnit' edge which is called when this edge is visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitTypeDeclaration_IsInCompilationUnit (columbus.java.asg.struc.TypeDeclaration begin, columbus.java.asg.struc.CompilationUnit end) { }
/**
* Edge end visitor for 'isInCompilationUnit' edge which is called after this edge has been visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndTypeDeclaration_IsInCompilationUnit(columbus.java.asg.struc.TypeDeclaration begin, columbus.java.asg.struc.CompilationUnit end) { }
/**
* Edge visitor for 'isInModule' edge which is called when this edge is visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitTypeDeclaration_IsInModule (columbus.java.asg.struc.TypeDeclaration begin, columbus.java.asg.struc.Module end) { }
/**
* Edge end visitor for 'isInModule' edge which is called after this edge has been visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndTypeDeclaration_IsInModule(columbus.java.asg.struc.TypeDeclaration begin, columbus.java.asg.struc.Module end) { }
/**
* Edge visitor for 'hasBounds' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitTypeParameter_HasBounds (columbus.java.asg.struc.TypeParameter begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge end visitor for 'hasBounds' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndTypeParameter_HasBounds(columbus.java.asg.struc.TypeParameter begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge visitor for 'hasInitialValue' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitVariable_HasInitialValue (columbus.java.asg.struc.Variable begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge end visitor for 'hasInitialValue' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndVariable_HasInitialValue(columbus.java.asg.struc.Variable begin, columbus.java.asg.expr.Expression end) { }
/**
* Edge visitor for 'hasType' edge which is called when the subtree of this edge is started.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitVariableDeclaration_HasType (columbus.java.asg.struc.VariableDeclaration begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge end visitor for 'hasType' edge which is called after the subtree of this edge is finished.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndVariableDeclaration_HasType(columbus.java.asg.struc.VariableDeclaration begin, columbus.java.asg.expr.TypeExpression end) { }
/**
* Edge visitor for 'componentType' edge which is called when this edge is visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitArrayType_ComponentType (columbus.java.asg.type.ArrayType begin, columbus.java.asg.type.Type end) { }
/**
* Edge end visitor for 'componentType' edge which is called after this edge has been visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndArrayType_ComponentType(columbus.java.asg.type.ArrayType begin, columbus.java.asg.type.Type end) { }
/**
* Edge visitor for 'refersTo' edge which is called when this edge is visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitClassType_RefersTo (columbus.java.asg.type.ClassType begin, columbus.java.asg.struc.TypeDeclaration end) { }
/**
* Edge end visitor for 'refersTo' edge which is called after this edge has been visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndClassType_RefersTo(columbus.java.asg.type.ClassType begin, columbus.java.asg.struc.TypeDeclaration end) { }
/**
* Edge visitor for 'bounds' edge which is called when this edge is visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitIntersectionType_Bounds (columbus.java.asg.type.IntersectionType begin, columbus.java.asg.type.Type end) { }
/**
* Edge end visitor for 'bounds' edge which is called after this edge has been visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndIntersectionType_Bounds(columbus.java.asg.type.IntersectionType begin, columbus.java.asg.type.Type end) { }
/**
* Edge visitor for 'returnType' edge which is called when this edge is visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitMethodType_ReturnType (columbus.java.asg.type.MethodType begin, columbus.java.asg.type.Type end) { }
/**
* Edge end visitor for 'returnType' edge which is called after this edge has been visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndMethodType_ReturnType(columbus.java.asg.type.MethodType begin, columbus.java.asg.type.Type end) { }
/**
* Edge visitor for 'parameterTypes' edge which is called when this edge is visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitMethodType_ParameterTypes (columbus.java.asg.type.MethodType begin, columbus.java.asg.type.Type end) { }
/**
* Edge end visitor for 'parameterTypes' edge which is called after this edge has been visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndMethodType_ParameterTypes(columbus.java.asg.type.MethodType begin, columbus.java.asg.type.Type end) { }
/**
* Edge visitor for 'thrownTypes' edge which is called when this edge is visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitMethodType_ThrownTypes (columbus.java.asg.type.MethodType begin, columbus.java.asg.type.Type end) { }
/**
* Edge end visitor for 'thrownTypes' edge which is called after this edge has been visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndMethodType_ThrownTypes(columbus.java.asg.type.MethodType begin, columbus.java.asg.type.Type end) { }
/**
* Edge visitor for 'refersTo' edge which is called when this edge is visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitModuleType_RefersTo (columbus.java.asg.type.ModuleType begin, columbus.java.asg.struc.Module end) { }
/**
* Edge end visitor for 'refersTo' edge which is called after this edge has been visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndModuleType_RefersTo(columbus.java.asg.type.ModuleType begin, columbus.java.asg.struc.Module end) { }
/**
* Edge visitor for 'refersTo' edge which is called when this edge is visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitPackageType_RefersTo (columbus.java.asg.type.PackageType begin, columbus.java.asg.struc.Package end) { }
/**
* Edge end visitor for 'refersTo' edge which is called after this edge has been visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndPackageType_RefersTo(columbus.java.asg.type.PackageType begin, columbus.java.asg.struc.Package end) { }
/**
* Edge visitor for 'rawType' edge which is called when this edge is visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitParameterizedType_RawType (columbus.java.asg.type.ParameterizedType begin, columbus.java.asg.type.Type end) { }
/**
* Edge end visitor for 'rawType' edge which is called after this edge has been visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndParameterizedType_RawType(columbus.java.asg.type.ParameterizedType begin, columbus.java.asg.type.Type end) { }
/**
* Edge visitor for 'argumentTypes' edge which is called when this edge is visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitParameterizedType_ArgumentTypes (columbus.java.asg.type.ParameterizedType begin, columbus.java.asg.type.Type end) { }
/**
* Edge end visitor for 'argumentTypes' edge which is called after this edge has been visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndParameterizedType_ArgumentTypes(columbus.java.asg.type.ParameterizedType begin, columbus.java.asg.type.Type end) { }
/**
* Edge visitor for 'owner' edge which is called when this edge is visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitScopedType_Owner (columbus.java.asg.type.ScopedType begin, columbus.java.asg.type.Type end) { }
/**
* Edge end visitor for 'owner' edge which is called after this edge has been visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndScopedType_Owner(columbus.java.asg.type.ScopedType begin, columbus.java.asg.type.Type end) { }
/**
* Edge visitor for 'refersTo' edge which is called when this edge is visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitTypeVariable_RefersTo (columbus.java.asg.type.TypeVariable begin, columbus.java.asg.struc.TypeParameter end) { }
/**
* Edge end visitor for 'refersTo' edge which is called after this edge has been visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndTypeVariable_RefersTo(columbus.java.asg.type.TypeVariable begin, columbus.java.asg.struc.TypeParameter end) { }
/**
* Edge visitor for 'alternatives' edge which is called when this edge is visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitUnionType_Alternatives (columbus.java.asg.type.UnionType begin, columbus.java.asg.type.Type end) { }
/**
* Edge end visitor for 'alternatives' edge which is called after this edge has been visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndUnionType_Alternatives(columbus.java.asg.type.UnionType begin, columbus.java.asg.type.Type end) { }
/**
* Edge visitor for 'bound' edge which is called when this edge is visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitWildcardType_Bound (columbus.java.asg.type.WildcardType begin, columbus.java.asg.type.Type end) { }
/**
* Edge end visitor for 'bound' edge which is called after this edge has been visited.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
public void visitEndWildcardType_Bound(columbus.java.asg.type.WildcardType begin, columbus.java.asg.type.Type end) { }
}
| 203,215 | 56.115233 | 174 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/visitors/VisitorSave.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.visitors;
import columbus.IO;
import columbus.java.asg.base.Base;
/**
* Visitor for saving the graph.
*/
public class VisitorSave extends VisitorAbstractNodes {
/** Reference to the "output". */
protected IO io;
/**
* Constructor for VisitorSave.
* @param io The graph is save into this IO.
*/
public VisitorSave(IO io) {
this.io = io;
}
/**
* Visitor for saving node.
* @param node This node is being saved.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Base node, boolean callVirtualBase) {
node.save(io);
}
}
| 1,465 | 26.660377 | 174 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/visitors/VisitorFilter.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.visitors;
import columbus.java.asg.base.BlockComment;
import columbus.java.asg.base.JavadocComment;
import columbus.java.asg.base.LineComment;
import columbus.java.asg.expr.AnnotatedTypeExpression;
import columbus.java.asg.expr.ArrayAccess;
import columbus.java.asg.expr.ArrayTypeExpression;
import columbus.java.asg.expr.Assignment;
import columbus.java.asg.expr.BooleanLiteral;
import columbus.java.asg.expr.CharacterLiteral;
import columbus.java.asg.expr.ClassLiteral;
import columbus.java.asg.expr.Conditional;
import columbus.java.asg.expr.DoubleLiteral;
import columbus.java.asg.expr.Erroneous;
import columbus.java.asg.expr.ErroneousTypeExpression;
import columbus.java.asg.expr.ExternalTypeExpression;
import columbus.java.asg.expr.FieldAccess;
import columbus.java.asg.expr.FloatLiteral;
import columbus.java.asg.expr.Identifier;
import columbus.java.asg.expr.InfixExpression;
import columbus.java.asg.expr.InstanceOf;
import columbus.java.asg.expr.IntegerLiteral;
import columbus.java.asg.expr.Lambda;
import columbus.java.asg.expr.LongLiteral;
import columbus.java.asg.expr.MarkerAnnotation;
import columbus.java.asg.expr.MemberReference;
import columbus.java.asg.expr.MethodInvocation;
import columbus.java.asg.expr.NewArray;
import columbus.java.asg.expr.NewClass;
import columbus.java.asg.expr.NormalAnnotation;
import columbus.java.asg.expr.NullLiteral;
import columbus.java.asg.expr.ParenthesizedExpression;
import columbus.java.asg.expr.PostfixExpression;
import columbus.java.asg.expr.PrefixExpression;
import columbus.java.asg.expr.PrimitiveTypeExpression;
import columbus.java.asg.expr.QualifiedTypeExpression;
import columbus.java.asg.expr.SimpleTypeExpression;
import columbus.java.asg.expr.SingleElementAnnotation;
import columbus.java.asg.expr.StringLiteral;
import columbus.java.asg.expr.Super;
import columbus.java.asg.expr.This;
import columbus.java.asg.expr.TypeApplyExpression;
import columbus.java.asg.expr.TypeCast;
import columbus.java.asg.expr.TypeIntersectionExpression;
import columbus.java.asg.expr.TypeUnionExpression;
import columbus.java.asg.expr.WildcardExpression;
import columbus.java.asg.module.Exports;
import columbus.java.asg.module.Opens;
import columbus.java.asg.module.Provides;
import columbus.java.asg.module.Requires;
import columbus.java.asg.module.Uses;
import columbus.java.asg.statm.Assert;
import columbus.java.asg.statm.BasicFor;
import columbus.java.asg.statm.Block;
import columbus.java.asg.statm.Break;
import columbus.java.asg.statm.Case;
import columbus.java.asg.statm.Continue;
import columbus.java.asg.statm.Default;
import columbus.java.asg.statm.Do;
import columbus.java.asg.statm.Empty;
import columbus.java.asg.statm.EnhancedFor;
import columbus.java.asg.statm.ExpressionStatement;
import columbus.java.asg.statm.Handler;
import columbus.java.asg.statm.If;
import columbus.java.asg.statm.LabeledStatement;
import columbus.java.asg.statm.Return;
import columbus.java.asg.statm.Switch;
import columbus.java.asg.statm.Synchronized;
import columbus.java.asg.statm.Throw;
import columbus.java.asg.statm.Try;
import columbus.java.asg.statm.While;
import columbus.java.asg.struc.AnnotationType;
import columbus.java.asg.struc.AnnotationTypeElement;
import columbus.java.asg.struc.AnonymousClass;
import columbus.java.asg.struc.Class;
import columbus.java.asg.struc.ClassGeneric;
import columbus.java.asg.struc.CompilationUnit;
import columbus.java.asg.struc.Enum;
import columbus.java.asg.struc.EnumConstant;
import columbus.java.asg.struc.Import;
import columbus.java.asg.struc.InstanceInitializerBlock;
import columbus.java.asg.struc.Interface;
import columbus.java.asg.struc.InterfaceGeneric;
import columbus.java.asg.struc.Method;
import columbus.java.asg.struc.MethodGeneric;
import columbus.java.asg.struc.Module;
import columbus.java.asg.struc.ModuleDeclaration;
import columbus.java.asg.struc.Package;
import columbus.java.asg.struc.PackageDeclaration;
import columbus.java.asg.struc.Parameter;
import columbus.java.asg.struc.StaticInitializerBlock;
import columbus.java.asg.struc.TypeParameter;
import columbus.java.asg.struc.Variable;
import columbus.java.asg.type.ArrayType;
import columbus.java.asg.type.BooleanType;
import columbus.java.asg.type.ByteType;
import columbus.java.asg.type.CharType;
import columbus.java.asg.type.ClassType;
import columbus.java.asg.type.DoubleType;
import columbus.java.asg.type.ErrorType;
import columbus.java.asg.type.FloatType;
import columbus.java.asg.type.IntType;
import columbus.java.asg.type.IntersectionType;
import columbus.java.asg.type.LongType;
import columbus.java.asg.type.LowerBoundedWildcardType;
import columbus.java.asg.type.MethodType;
import columbus.java.asg.type.ModuleType;
import columbus.java.asg.type.NoType;
import columbus.java.asg.type.NullType;
import columbus.java.asg.type.PackageType;
import columbus.java.asg.type.ParameterizedType;
import columbus.java.asg.type.ShortType;
import columbus.java.asg.type.TypeVariable;
import columbus.java.asg.type.UnboundedWildcardType;
import columbus.java.asg.type.UnionType;
import columbus.java.asg.type.UpperBoundedWildcardType;
import columbus.java.asg.type.VoidType;
/**
* VisitorFilter class filters out nodes from the graph.
*/
public class VisitorFilter extends Visitor {
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(BlockComment node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(JavadocComment node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(LineComment node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(AnnotatedTypeExpression node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ArrayAccess node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ArrayTypeExpression node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Assignment node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(BooleanLiteral node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(CharacterLiteral node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ClassLiteral node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Conditional node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(DoubleLiteral node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Erroneous node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ErroneousTypeExpression node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ExternalTypeExpression node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(FieldAccess node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(FloatLiteral node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Identifier node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(InfixExpression node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(InstanceOf node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(IntegerLiteral node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Lambda node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(LongLiteral node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(MarkerAnnotation node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(MemberReference node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(MethodInvocation node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(NewArray node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(NewClass node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(NormalAnnotation node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(NullLiteral node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ParenthesizedExpression node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(PostfixExpression node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(PrefixExpression node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(PrimitiveTypeExpression node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(QualifiedTypeExpression node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(SimpleTypeExpression node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(SingleElementAnnotation node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(StringLiteral node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Super node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(This node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(TypeApplyExpression node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(TypeCast node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(TypeIntersectionExpression node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(TypeUnionExpression node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(WildcardExpression node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Exports node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Opens node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Provides node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Requires node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Uses node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Assert node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(BasicFor node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Block node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Break node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Case node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Continue node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Default node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Do node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Empty node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(EnhancedFor node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ExpressionStatement node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Handler node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(If node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(LabeledStatement node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Return node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Switch node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Synchronized node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Throw node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Try node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(While node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(AnnotationType node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(AnnotationTypeElement node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(AnonymousClass node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Class node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ClassGeneric node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(CompilationUnit node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Enum node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(EnumConstant node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Import node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(InstanceInitializerBlock node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Interface node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(InterfaceGeneric node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Method node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(MethodGeneric node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Module node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ModuleDeclaration node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Package node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(PackageDeclaration node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Parameter node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(StaticInitializerBlock node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(TypeParameter node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Variable node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ArrayType node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(BooleanType node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ByteType node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(CharType node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ClassType node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(DoubleType node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ErrorType node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(FloatType node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(IntType node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(IntersectionType node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(LongType node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(LowerBoundedWildcardType node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(MethodType node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ModuleType node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(NoType node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(NullType node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(PackageType node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ParameterizedType node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ShortType node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(TypeVariable node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(UnboundedWildcardType node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(UnionType node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(UpperBoundedWildcardType node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
/**
* Deselects the actual node (and only this).
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(VoidType node, boolean callVirtualBase) {
node.getFactory().setFilteredThisNodeOnly(node.getId());
}
}
| 54,374 | 40.634763 | 174 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/visitors/VisitorAbstractNodes.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.visitors;
import columbus.java.asg.base.Base;
import columbus.java.asg.base.BlockComment;
import columbus.java.asg.base.Comment;
import columbus.java.asg.base.Commentable;
import columbus.java.asg.base.JavadocComment;
import columbus.java.asg.base.LineComment;
import columbus.java.asg.base.Named;
import columbus.java.asg.base.NonJavadocComment;
import columbus.java.asg.base.Positioned;
import columbus.java.asg.base.PositionedWithoutComment;
import columbus.java.asg.expr.AnnotatedTypeExpression;
import columbus.java.asg.expr.Annotation;
import columbus.java.asg.expr.ArrayAccess;
import columbus.java.asg.expr.ArrayTypeExpression;
import columbus.java.asg.expr.Assignment;
import columbus.java.asg.expr.Binary;
import columbus.java.asg.expr.BooleanLiteral;
import columbus.java.asg.expr.CharacterLiteral;
import columbus.java.asg.expr.ClassLiteral;
import columbus.java.asg.expr.Conditional;
import columbus.java.asg.expr.DoubleLiteral;
import columbus.java.asg.expr.Erroneous;
import columbus.java.asg.expr.ErroneousTypeExpression;
import columbus.java.asg.expr.Expression;
import columbus.java.asg.expr.ExternalTypeExpression;
import columbus.java.asg.expr.FieldAccess;
import columbus.java.asg.expr.FloatLiteral;
import columbus.java.asg.expr.FunctionalExpression;
import columbus.java.asg.expr.Identifier;
import columbus.java.asg.expr.InfixExpression;
import columbus.java.asg.expr.InstanceOf;
import columbus.java.asg.expr.IntegerLiteral;
import columbus.java.asg.expr.Lambda;
import columbus.java.asg.expr.Literal;
import columbus.java.asg.expr.LongLiteral;
import columbus.java.asg.expr.MarkerAnnotation;
import columbus.java.asg.expr.MemberReference;
import columbus.java.asg.expr.MethodInvocation;
import columbus.java.asg.expr.NewArray;
import columbus.java.asg.expr.NewClass;
import columbus.java.asg.expr.NormalAnnotation;
import columbus.java.asg.expr.NullLiteral;
import columbus.java.asg.expr.NumberLiteral;
import columbus.java.asg.expr.ParenthesizedExpression;
import columbus.java.asg.expr.PolyExpression;
import columbus.java.asg.expr.PostfixExpression;
import columbus.java.asg.expr.PrefixExpression;
import columbus.java.asg.expr.PrimitiveTypeExpression;
import columbus.java.asg.expr.QualifiedTypeExpression;
import columbus.java.asg.expr.SimpleTypeExpression;
import columbus.java.asg.expr.SingleElementAnnotation;
import columbus.java.asg.expr.StringLiteral;
import columbus.java.asg.expr.Super;
import columbus.java.asg.expr.This;
import columbus.java.asg.expr.TypeApplyExpression;
import columbus.java.asg.expr.TypeCast;
import columbus.java.asg.expr.TypeExpression;
import columbus.java.asg.expr.TypeIntersectionExpression;
import columbus.java.asg.expr.TypeUnionExpression;
import columbus.java.asg.expr.Unary;
import columbus.java.asg.expr.WildcardExpression;
import columbus.java.asg.module.Exports;
import columbus.java.asg.module.ModuleDirective;
import columbus.java.asg.module.Opens;
import columbus.java.asg.module.Provides;
import columbus.java.asg.module.Requires;
import columbus.java.asg.module.Uses;
import columbus.java.asg.statm.Assert;
import columbus.java.asg.statm.BasicFor;
import columbus.java.asg.statm.Block;
import columbus.java.asg.statm.Break;
import columbus.java.asg.statm.Case;
import columbus.java.asg.statm.Continue;
import columbus.java.asg.statm.Default;
import columbus.java.asg.statm.Do;
import columbus.java.asg.statm.Empty;
import columbus.java.asg.statm.EnhancedFor;
import columbus.java.asg.statm.ExpressionStatement;
import columbus.java.asg.statm.For;
import columbus.java.asg.statm.Handler;
import columbus.java.asg.statm.If;
import columbus.java.asg.statm.Iteration;
import columbus.java.asg.statm.Jump;
import columbus.java.asg.statm.LabeledStatement;
import columbus.java.asg.statm.Return;
import columbus.java.asg.statm.Selection;
import columbus.java.asg.statm.Statement;
import columbus.java.asg.statm.Switch;
import columbus.java.asg.statm.SwitchLabel;
import columbus.java.asg.statm.Synchronized;
import columbus.java.asg.statm.Throw;
import columbus.java.asg.statm.Try;
import columbus.java.asg.statm.While;
import columbus.java.asg.struc.AnnotatedElement;
import columbus.java.asg.struc.AnnotationType;
import columbus.java.asg.struc.AnnotationTypeElement;
import columbus.java.asg.struc.AnonymousClass;
import columbus.java.asg.struc.Class;
import columbus.java.asg.struc.ClassDeclaration;
import columbus.java.asg.struc.ClassGeneric;
import columbus.java.asg.struc.CompilationUnit;
import columbus.java.asg.struc.Declaration;
import columbus.java.asg.struc.Enum;
import columbus.java.asg.struc.EnumConstant;
import columbus.java.asg.struc.GenericDeclaration;
import columbus.java.asg.struc.Import;
import columbus.java.asg.struc.InitializerBlock;
import columbus.java.asg.struc.InstanceInitializerBlock;
import columbus.java.asg.struc.Interface;
import columbus.java.asg.struc.InterfaceDeclaration;
import columbus.java.asg.struc.InterfaceGeneric;
import columbus.java.asg.struc.Member;
import columbus.java.asg.struc.Method;
import columbus.java.asg.struc.MethodDeclaration;
import columbus.java.asg.struc.MethodGeneric;
import columbus.java.asg.struc.Module;
import columbus.java.asg.struc.ModuleDeclaration;
import columbus.java.asg.struc.NamedDeclaration;
import columbus.java.asg.struc.NormalMethod;
import columbus.java.asg.struc.Package;
import columbus.java.asg.struc.PackageDeclaration;
import columbus.java.asg.struc.Parameter;
import columbus.java.asg.struc.Scope;
import columbus.java.asg.struc.StaticInitializerBlock;
import columbus.java.asg.struc.TypeDeclaration;
import columbus.java.asg.struc.TypeParameter;
import columbus.java.asg.struc.Variable;
import columbus.java.asg.struc.VariableDeclaration;
import columbus.java.asg.type.ArrayType;
import columbus.java.asg.type.BooleanType;
import columbus.java.asg.type.BoundedWildcardType;
import columbus.java.asg.type.ByteType;
import columbus.java.asg.type.CharType;
import columbus.java.asg.type.ClassType;
import columbus.java.asg.type.DoubleType;
import columbus.java.asg.type.ErrorType;
import columbus.java.asg.type.FloatType;
import columbus.java.asg.type.IntType;
import columbus.java.asg.type.IntersectionType;
import columbus.java.asg.type.LongType;
import columbus.java.asg.type.LowerBoundedWildcardType;
import columbus.java.asg.type.MethodType;
import columbus.java.asg.type.ModuleType;
import columbus.java.asg.type.NoType;
import columbus.java.asg.type.NullType;
import columbus.java.asg.type.PackageType;
import columbus.java.asg.type.ParameterizedType;
import columbus.java.asg.type.PrimitiveType;
import columbus.java.asg.type.ScopedType;
import columbus.java.asg.type.ShortType;
import columbus.java.asg.type.Type;
import columbus.java.asg.type.TypeVariable;
import columbus.java.asg.type.UnboundedWildcardType;
import columbus.java.asg.type.UnionType;
import columbus.java.asg.type.UpperBoundedWildcardType;
import columbus.java.asg.type.VoidType;
import columbus.java.asg.type.WildcardType;
/**
* Visitor class for all edges and nodes (including abstract nodes as well).
*/
public class VisitorAbstractNodes extends Visitor {
/**
* Empty abstract visitor for {@link columbus.java.asg.base.Base Base} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(Base node, boolean callVirtualBase) {
}
/**
* Empty abstract end visitor for {@link columbus.java.asg.base.Base Base} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(Base node, boolean callVirtualBase) {
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.base.BlockComment BlockComment} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(BlockComment node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
visit((NonJavadocComment)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.base.BlockComment BlockComment} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(BlockComment node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
visitEnd((NonJavadocComment)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.base.Comment Comment} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(Comment node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
visit((PositionedWithoutComment)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.base.Comment Comment} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(Comment node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
visitEnd((PositionedWithoutComment)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.base.Commentable Commentable} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(Commentable node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.base.Commentable Commentable} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(Commentable node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.base.JavadocComment JavadocComment} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(JavadocComment node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
visit((Comment)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.base.JavadocComment JavadocComment} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(JavadocComment node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
visitEnd((Comment)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.base.LineComment LineComment} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(LineComment node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
visit((NonJavadocComment)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.base.LineComment LineComment} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(LineComment node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
visitEnd((NonJavadocComment)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.base.Named Named} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(Named node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.base.Named Named} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(Named node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.base.NonJavadocComment NonJavadocComment} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(NonJavadocComment node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
visit((Comment)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.base.NonJavadocComment NonJavadocComment} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(NonJavadocComment node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
visitEnd((Comment)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.base.Positioned Positioned} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(Positioned node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((PositionedWithoutComment)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.base.Positioned Positioned} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(Positioned node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((PositionedWithoutComment)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.base.PositionedWithoutComment PositionedWithoutComment} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(PositionedWithoutComment node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.base.PositionedWithoutComment PositionedWithoutComment} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(PositionedWithoutComment node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.AnnotatedTypeExpression AnnotatedTypeExpression} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(AnnotatedTypeExpression node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((TypeExpression)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.AnnotatedTypeExpression AnnotatedTypeExpression} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(AnnotatedTypeExpression node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((TypeExpression)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.Annotation Annotation} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(Annotation node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Expression)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.Annotation Annotation} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(Annotation node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Expression)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.ArrayAccess ArrayAccess} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(ArrayAccess node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Binary)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.ArrayAccess ArrayAccess} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ArrayAccess node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Binary)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.ArrayTypeExpression ArrayTypeExpression} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(ArrayTypeExpression node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((TypeExpression)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.ArrayTypeExpression ArrayTypeExpression} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ArrayTypeExpression node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((TypeExpression)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.Assignment Assignment} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Assignment node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Binary)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.Assignment Assignment} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Assignment node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Binary)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.Binary Binary} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(Binary node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Expression)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.Binary Binary} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(Binary node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Expression)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.BooleanLiteral BooleanLiteral} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(BooleanLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Literal)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.BooleanLiteral BooleanLiteral} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(BooleanLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Literal)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.CharacterLiteral CharacterLiteral} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(CharacterLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Literal)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.CharacterLiteral CharacterLiteral} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(CharacterLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Literal)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.ClassLiteral ClassLiteral} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(ClassLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Literal)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.ClassLiteral ClassLiteral} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ClassLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Literal)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.Conditional Conditional} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Conditional node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Expression)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.Conditional Conditional} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Conditional node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Expression)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.DoubleLiteral DoubleLiteral} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(DoubleLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((NumberLiteral)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.DoubleLiteral DoubleLiteral} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(DoubleLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((NumberLiteral)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.Erroneous Erroneous} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Erroneous node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Expression)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.Erroneous Erroneous} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Erroneous node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Expression)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.ErroneousTypeExpression ErroneousTypeExpression} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(ErroneousTypeExpression node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((TypeExpression)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.ErroneousTypeExpression ErroneousTypeExpression} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ErroneousTypeExpression node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((TypeExpression)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.Expression Expression} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(Expression node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Positioned)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.Expression Expression} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(Expression node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Positioned)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.ExternalTypeExpression ExternalTypeExpression} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(ExternalTypeExpression node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((TypeExpression)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.ExternalTypeExpression ExternalTypeExpression} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ExternalTypeExpression node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((TypeExpression)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.FieldAccess FieldAccess} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(FieldAccess node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Binary)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.FieldAccess FieldAccess} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(FieldAccess node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Binary)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.FloatLiteral FloatLiteral} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(FloatLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((NumberLiteral)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.FloatLiteral FloatLiteral} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(FloatLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((NumberLiteral)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.FunctionalExpression FunctionalExpression} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(FunctionalExpression node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((PolyExpression)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.FunctionalExpression FunctionalExpression} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(FunctionalExpression node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((PolyExpression)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.Identifier Identifier} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Identifier node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Expression)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.Identifier Identifier} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Identifier node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Expression)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.InfixExpression InfixExpression} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(InfixExpression node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Binary)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.InfixExpression InfixExpression} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(InfixExpression node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Binary)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.InstanceOf InstanceOf} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(InstanceOf node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Unary)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.InstanceOf InstanceOf} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(InstanceOf node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Unary)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.IntegerLiteral IntegerLiteral} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(IntegerLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((NumberLiteral)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.IntegerLiteral IntegerLiteral} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(IntegerLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((NumberLiteral)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.Lambda Lambda} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Lambda node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((FunctionalExpression)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.Lambda Lambda} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Lambda node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((FunctionalExpression)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.Literal Literal} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(Literal node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Expression)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.Literal Literal} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(Literal node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Expression)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.LongLiteral LongLiteral} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(LongLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((NumberLiteral)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.LongLiteral LongLiteral} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(LongLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((NumberLiteral)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.MarkerAnnotation MarkerAnnotation} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(MarkerAnnotation node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Annotation)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.MarkerAnnotation MarkerAnnotation} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(MarkerAnnotation node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Annotation)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.MemberReference MemberReference} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(MemberReference node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((FunctionalExpression)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.MemberReference MemberReference} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(MemberReference node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((FunctionalExpression)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.MethodInvocation MethodInvocation} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(MethodInvocation node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Unary)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.MethodInvocation MethodInvocation} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(MethodInvocation node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Unary)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.NewArray NewArray} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(NewArray node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Expression)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.NewArray NewArray} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(NewArray node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Expression)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.NewClass NewClass} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(NewClass node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Expression)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.NewClass NewClass} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(NewClass node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Expression)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.NormalAnnotation NormalAnnotation} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(NormalAnnotation node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Annotation)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.NormalAnnotation NormalAnnotation} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(NormalAnnotation node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Annotation)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.NullLiteral NullLiteral} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(NullLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Literal)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.NullLiteral NullLiteral} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(NullLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Literal)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.NumberLiteral NumberLiteral} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(NumberLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Literal)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.NumberLiteral NumberLiteral} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(NumberLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Literal)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.ParenthesizedExpression ParenthesizedExpression} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(ParenthesizedExpression node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Unary)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.ParenthesizedExpression ParenthesizedExpression} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ParenthesizedExpression node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Unary)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.PolyExpression PolyExpression} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(PolyExpression node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Expression)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.PolyExpression PolyExpression} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(PolyExpression node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Expression)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.PostfixExpression PostfixExpression} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(PostfixExpression node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Unary)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.PostfixExpression PostfixExpression} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(PostfixExpression node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Unary)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.PrefixExpression PrefixExpression} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(PrefixExpression node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Unary)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.PrefixExpression PrefixExpression} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(PrefixExpression node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Unary)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.PrimitiveTypeExpression PrimitiveTypeExpression} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(PrimitiveTypeExpression node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((TypeExpression)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.PrimitiveTypeExpression PrimitiveTypeExpression} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(PrimitiveTypeExpression node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((TypeExpression)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.QualifiedTypeExpression QualifiedTypeExpression} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(QualifiedTypeExpression node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((TypeExpression)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.QualifiedTypeExpression QualifiedTypeExpression} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(QualifiedTypeExpression node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((TypeExpression)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.SimpleTypeExpression SimpleTypeExpression} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(SimpleTypeExpression node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((TypeExpression)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.SimpleTypeExpression SimpleTypeExpression} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(SimpleTypeExpression node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((TypeExpression)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.SingleElementAnnotation SingleElementAnnotation} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(SingleElementAnnotation node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Annotation)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.SingleElementAnnotation SingleElementAnnotation} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(SingleElementAnnotation node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Annotation)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.StringLiteral StringLiteral} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(StringLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Literal)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.StringLiteral StringLiteral} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(StringLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Literal)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.Super Super} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Super node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Expression)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.Super Super} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Super node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Expression)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.This This} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(This node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Expression)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.This This} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(This node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Expression)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.TypeApplyExpression TypeApplyExpression} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(TypeApplyExpression node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((TypeExpression)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.TypeApplyExpression TypeApplyExpression} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(TypeApplyExpression node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((TypeExpression)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.TypeCast TypeCast} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(TypeCast node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Unary)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.TypeCast TypeCast} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(TypeCast node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Unary)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.TypeExpression TypeExpression} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(TypeExpression node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Expression)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.TypeExpression TypeExpression} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(TypeExpression node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Expression)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.TypeIntersectionExpression TypeIntersectionExpression} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(TypeIntersectionExpression node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((TypeExpression)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.TypeIntersectionExpression TypeIntersectionExpression} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(TypeIntersectionExpression node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((TypeExpression)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.TypeUnionExpression TypeUnionExpression} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(TypeUnionExpression node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((TypeExpression)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.TypeUnionExpression TypeUnionExpression} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(TypeUnionExpression node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((TypeExpression)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.Unary Unary} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(Unary node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Expression)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.Unary Unary} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(Unary node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Expression)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.expr.WildcardExpression WildcardExpression} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(WildcardExpression node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((TypeExpression)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.expr.WildcardExpression WildcardExpression} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(WildcardExpression node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((TypeExpression)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.module.Exports Exports} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Exports node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((ModuleDirective)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.module.Exports Exports} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Exports node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((ModuleDirective)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.module.ModuleDirective ModuleDirective} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(ModuleDirective node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Positioned)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.module.ModuleDirective ModuleDirective} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(ModuleDirective node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Positioned)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.module.Opens Opens} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Opens node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((ModuleDirective)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.module.Opens Opens} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Opens node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((ModuleDirective)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.module.Provides Provides} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Provides node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((ModuleDirective)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.module.Provides Provides} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Provides node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((ModuleDirective)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.module.Requires Requires} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Requires node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((ModuleDirective)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.module.Requires Requires} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Requires node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((ModuleDirective)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.module.Uses Uses} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Uses node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((ModuleDirective)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.module.Uses Uses} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Uses node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((ModuleDirective)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.statm.Assert Assert} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Assert node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Statement)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.statm.Assert Assert} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Assert node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Statement)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.statm.BasicFor BasicFor} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(BasicFor node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((For)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.statm.BasicFor BasicFor} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(BasicFor node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((For)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.statm.Block Block} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Block node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Statement)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.statm.Block Block} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Block node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Statement)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.statm.Break Break} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Break node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Jump)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.statm.Break Break} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Break node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Jump)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.statm.Case Case} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Case node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((SwitchLabel)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.statm.Case Case} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Case node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((SwitchLabel)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.statm.Continue Continue} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Continue node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Jump)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.statm.Continue Continue} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Continue node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Jump)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.statm.Default Default} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Default node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((SwitchLabel)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.statm.Default Default} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Default node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((SwitchLabel)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.statm.Do Do} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Do node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Iteration)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.statm.Do Do} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Do node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Iteration)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.statm.Empty Empty} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Empty node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Statement)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.statm.Empty Empty} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Empty node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Statement)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.statm.EnhancedFor EnhancedFor} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(EnhancedFor node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((For)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.statm.EnhancedFor EnhancedFor} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(EnhancedFor node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((For)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.statm.ExpressionStatement ExpressionStatement} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(ExpressionStatement node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Statement)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.statm.ExpressionStatement ExpressionStatement} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ExpressionStatement node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Statement)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.statm.For For} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(For node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Iteration)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.statm.For For} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(For node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Iteration)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.statm.Handler Handler} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Handler node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Positioned)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.statm.Handler Handler} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Handler node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Positioned)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.statm.If If} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(If node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Selection)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.statm.If If} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(If node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Selection)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.statm.Iteration Iteration} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(Iteration node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Statement)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.statm.Iteration Iteration} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(Iteration node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Statement)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.statm.Jump Jump} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(Jump node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Statement)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.statm.Jump Jump} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(Jump node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Statement)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.statm.LabeledStatement LabeledStatement} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(LabeledStatement node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Statement)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.statm.LabeledStatement LabeledStatement} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(LabeledStatement node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Statement)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.statm.Return Return} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Return node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Statement)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.statm.Return Return} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Return node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Statement)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.statm.Selection Selection} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(Selection node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Statement)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.statm.Selection Selection} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(Selection node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Statement)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.statm.Statement Statement} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(Statement node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Positioned)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.statm.Statement Statement} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(Statement node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Positioned)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.statm.Switch Switch} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Switch node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Selection)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.statm.Switch Switch} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Switch node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Selection)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.statm.SwitchLabel SwitchLabel} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(SwitchLabel node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Positioned)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.statm.SwitchLabel SwitchLabel} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(SwitchLabel node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Positioned)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.statm.Synchronized Synchronized} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Synchronized node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Statement)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.statm.Synchronized Synchronized} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Synchronized node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Statement)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.statm.Throw Throw} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Throw node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Statement)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.statm.Throw Throw} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Throw node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Statement)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.statm.Try Try} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Try node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Statement)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.statm.Try Try} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Try node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Statement)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.statm.While While} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(While node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Iteration)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.statm.While While} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(While node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Iteration)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.struc.AnnotatedElement AnnotatedElement} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(AnnotatedElement node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.struc.AnnotatedElement AnnotatedElement} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(AnnotatedElement node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.struc.AnnotationType AnnotationType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(AnnotationType node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
if (callVirtualBase)
visit((Member)node, false);
visit((TypeDeclaration)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.struc.AnnotationType AnnotationType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(AnnotationType node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
if (callVirtualBase)
visitEnd((Member)node, false);
visitEnd((TypeDeclaration)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.struc.AnnotationTypeElement AnnotationTypeElement} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(AnnotationTypeElement node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
if (callVirtualBase)
visit((Member)node, false);
visit((MethodDeclaration)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.struc.AnnotationTypeElement AnnotationTypeElement} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(AnnotationTypeElement node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
if (callVirtualBase)
visitEnd((Member)node, false);
visitEnd((MethodDeclaration)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.struc.AnonymousClass AnonymousClass} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(AnonymousClass node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
if (callVirtualBase)
visit((Member)node, false);
visit((ClassDeclaration)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.struc.AnonymousClass AnonymousClass} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(AnonymousClass node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
if (callVirtualBase)
visitEnd((Member)node, false);
visitEnd((ClassDeclaration)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.struc.Class Class} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Class node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
if (callVirtualBase)
visit((Member)node, false);
visit((ClassDeclaration)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.struc.Class Class} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Class node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
if (callVirtualBase)
visitEnd((Member)node, false);
visitEnd((ClassDeclaration)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.struc.ClassDeclaration ClassDeclaration} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(ClassDeclaration node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
if (callVirtualBase)
visit((Member)node, false);
visit((TypeDeclaration)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.struc.ClassDeclaration ClassDeclaration} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(ClassDeclaration node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
if (callVirtualBase)
visitEnd((Member)node, false);
visitEnd((TypeDeclaration)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.struc.ClassGeneric ClassGeneric} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(ClassGeneric node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
if (callVirtualBase)
visit((Member)node, false);
visit((ClassDeclaration)node, false);
visit((GenericDeclaration)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.struc.ClassGeneric ClassGeneric} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ClassGeneric node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
if (callVirtualBase)
visitEnd((Member)node, false);
visitEnd((ClassDeclaration)node, false);
visitEnd((GenericDeclaration)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.struc.CompilationUnit CompilationUnit} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(CompilationUnit node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
visit((PositionedWithoutComment)node, false);
visit((Commentable)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.struc.CompilationUnit CompilationUnit} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(CompilationUnit node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
visitEnd((PositionedWithoutComment)node, false);
visitEnd((Commentable)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.struc.Declaration Declaration} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(Declaration node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
if (callVirtualBase)
visit((Member)node, false);
visit((Statement)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.struc.Declaration Declaration} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(Declaration node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
if (callVirtualBase)
visitEnd((Member)node, false);
visitEnd((Statement)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.struc.Enum Enum} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Enum node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
if (callVirtualBase)
visit((Member)node, false);
visit((TypeDeclaration)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.struc.Enum Enum} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Enum node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
if (callVirtualBase)
visitEnd((Member)node, false);
visitEnd((TypeDeclaration)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.struc.EnumConstant EnumConstant} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(EnumConstant node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
if (callVirtualBase)
visit((Member)node, false);
visit((VariableDeclaration)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.struc.EnumConstant EnumConstant} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(EnumConstant node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
if (callVirtualBase)
visitEnd((Member)node, false);
visitEnd((VariableDeclaration)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.struc.GenericDeclaration GenericDeclaration} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(GenericDeclaration node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.struc.GenericDeclaration GenericDeclaration} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(GenericDeclaration node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.struc.Import Import} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Import node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Positioned)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.struc.Import Import} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Import node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Positioned)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.struc.InitializerBlock InitializerBlock} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(InitializerBlock node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
if (callVirtualBase)
visit((Member)node, false);
visit((Declaration)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.struc.InitializerBlock InitializerBlock} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(InitializerBlock node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
if (callVirtualBase)
visitEnd((Member)node, false);
visitEnd((Declaration)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.struc.InstanceInitializerBlock InstanceInitializerBlock} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(InstanceInitializerBlock node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
if (callVirtualBase)
visit((Member)node, false);
visit((InitializerBlock)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.struc.InstanceInitializerBlock InstanceInitializerBlock} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(InstanceInitializerBlock node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
if (callVirtualBase)
visitEnd((Member)node, false);
visitEnd((InitializerBlock)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.struc.Interface Interface} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Interface node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
if (callVirtualBase)
visit((Member)node, false);
visit((InterfaceDeclaration)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.struc.Interface Interface} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Interface node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
if (callVirtualBase)
visitEnd((Member)node, false);
visitEnd((InterfaceDeclaration)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.struc.InterfaceDeclaration InterfaceDeclaration} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(InterfaceDeclaration node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
if (callVirtualBase)
visit((Member)node, false);
visit((TypeDeclaration)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.struc.InterfaceDeclaration InterfaceDeclaration} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(InterfaceDeclaration node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
if (callVirtualBase)
visitEnd((Member)node, false);
visitEnd((TypeDeclaration)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.struc.InterfaceGeneric InterfaceGeneric} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(InterfaceGeneric node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
if (callVirtualBase)
visit((Member)node, false);
visit((InterfaceDeclaration)node, false);
visit((GenericDeclaration)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.struc.InterfaceGeneric InterfaceGeneric} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(InterfaceGeneric node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
if (callVirtualBase)
visitEnd((Member)node, false);
visitEnd((InterfaceDeclaration)node, false);
visitEnd((GenericDeclaration)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.struc.Member Member} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(Member node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((AnnotatedElement)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.struc.Member Member} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(Member node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((AnnotatedElement)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.struc.Method Method} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Method node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
if (callVirtualBase)
visit((Member)node, false);
visit((NormalMethod)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.struc.Method Method} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Method node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
if (callVirtualBase)
visitEnd((Member)node, false);
visitEnd((NormalMethod)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.struc.MethodDeclaration MethodDeclaration} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(MethodDeclaration node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
if (callVirtualBase)
visit((Member)node, false);
visit((NamedDeclaration)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.struc.MethodDeclaration MethodDeclaration} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(MethodDeclaration node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
if (callVirtualBase)
visitEnd((Member)node, false);
visitEnd((NamedDeclaration)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.struc.MethodGeneric MethodGeneric} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(MethodGeneric node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
if (callVirtualBase)
visit((Member)node, false);
visit((NormalMethod)node, false);
visit((GenericDeclaration)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.struc.MethodGeneric MethodGeneric} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(MethodGeneric node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
if (callVirtualBase)
visitEnd((Member)node, false);
visitEnd((NormalMethod)node, false);
visitEnd((GenericDeclaration)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.struc.Module Module} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Module node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
visit((Named)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.struc.Module Module} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Module node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
visitEnd((Named)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.struc.ModuleDeclaration ModuleDeclaration} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(ModuleDeclaration node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Positioned)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.struc.ModuleDeclaration ModuleDeclaration} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ModuleDeclaration node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Positioned)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.struc.NamedDeclaration NamedDeclaration} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(NamedDeclaration node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
if (callVirtualBase)
visit((Member)node, false);
visit((Declaration)node, false);
visit((Named)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.struc.NamedDeclaration NamedDeclaration} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(NamedDeclaration node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
if (callVirtualBase)
visitEnd((Member)node, false);
visitEnd((Declaration)node, false);
visitEnd((Named)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.struc.NormalMethod NormalMethod} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(NormalMethod node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
if (callVirtualBase)
visit((Member)node, false);
visit((MethodDeclaration)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.struc.NormalMethod NormalMethod} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(NormalMethod node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
if (callVirtualBase)
visitEnd((Member)node, false);
visitEnd((MethodDeclaration)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.struc.Package Package} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Package node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
if (callVirtualBase)
visit((Member)node, false);
visit((Named)node, false);
visit((Scope)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.struc.Package Package} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Package node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
if (callVirtualBase)
visitEnd((Member)node, false);
visitEnd((Named)node, false);
visitEnd((Scope)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.struc.PackageDeclaration PackageDeclaration} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(PackageDeclaration node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Positioned)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.struc.PackageDeclaration PackageDeclaration} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(PackageDeclaration node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Positioned)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.struc.Parameter Parameter} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Parameter node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
if (callVirtualBase)
visit((Member)node, false);
visit((VariableDeclaration)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.struc.Parameter Parameter} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Parameter node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
if (callVirtualBase)
visitEnd((Member)node, false);
visitEnd((VariableDeclaration)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.struc.Scope Scope} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(Scope node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
if (callVirtualBase)
visit((Member)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.struc.Scope Scope} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(Scope node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
if (callVirtualBase)
visitEnd((Member)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.struc.StaticInitializerBlock StaticInitializerBlock} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(StaticInitializerBlock node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
if (callVirtualBase)
visit((Member)node, false);
visit((InitializerBlock)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.struc.StaticInitializerBlock StaticInitializerBlock} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(StaticInitializerBlock node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
if (callVirtualBase)
visitEnd((Member)node, false);
visitEnd((InitializerBlock)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.struc.TypeDeclaration TypeDeclaration} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(TypeDeclaration node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
if (callVirtualBase)
visit((Member)node, false);
visit((NamedDeclaration)node, false);
visit((Scope)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.struc.TypeDeclaration TypeDeclaration} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(TypeDeclaration node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
if (callVirtualBase)
visitEnd((Member)node, false);
visitEnd((NamedDeclaration)node, false);
visitEnd((Scope)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.struc.TypeParameter TypeParameter} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(TypeParameter node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
visit((Positioned)node, false);
visit((Named)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.struc.TypeParameter TypeParameter} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(TypeParameter node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
visitEnd((Positioned)node, false);
visitEnd((Named)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.struc.Variable Variable} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Variable node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
if (callVirtualBase)
visit((Member)node, false);
visit((VariableDeclaration)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.struc.Variable Variable} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Variable node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
if (callVirtualBase)
visitEnd((Member)node, false);
visitEnd((VariableDeclaration)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.struc.VariableDeclaration VariableDeclaration} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(VariableDeclaration node, boolean callVirtualBase) {
if (callVirtualBase)
visit((Base)node, false);
if (callVirtualBase)
visit((Commentable)node, false);
if (callVirtualBase)
visit((Member)node, false);
visit((NamedDeclaration)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.struc.VariableDeclaration VariableDeclaration} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(VariableDeclaration node, boolean callVirtualBase) {
if (callVirtualBase)
visitEnd((Base)node, false);
if (callVirtualBase)
visitEnd((Commentable)node, false);
if (callVirtualBase)
visitEnd((Member)node, false);
visitEnd((NamedDeclaration)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.type.ArrayType ArrayType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(ArrayType node, boolean callVirtualBase) {
visit((Type)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.type.ArrayType ArrayType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ArrayType node, boolean callVirtualBase) {
visitEnd((Type)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.type.BooleanType BooleanType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(BooleanType node, boolean callVirtualBase) {
visit((PrimitiveType)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.type.BooleanType BooleanType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(BooleanType node, boolean callVirtualBase) {
visitEnd((PrimitiveType)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.type.BoundedWildcardType BoundedWildcardType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(BoundedWildcardType node, boolean callVirtualBase) {
visit((WildcardType)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.type.BoundedWildcardType BoundedWildcardType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(BoundedWildcardType node, boolean callVirtualBase) {
visitEnd((WildcardType)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.type.ByteType ByteType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(ByteType node, boolean callVirtualBase) {
visit((PrimitiveType)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.type.ByteType ByteType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ByteType node, boolean callVirtualBase) {
visitEnd((PrimitiveType)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.type.CharType CharType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(CharType node, boolean callVirtualBase) {
visit((PrimitiveType)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.type.CharType CharType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(CharType node, boolean callVirtualBase) {
visitEnd((PrimitiveType)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.type.ClassType ClassType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(ClassType node, boolean callVirtualBase) {
visit((ScopedType)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.type.ClassType ClassType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ClassType node, boolean callVirtualBase) {
visitEnd((ScopedType)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.type.DoubleType DoubleType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(DoubleType node, boolean callVirtualBase) {
visit((PrimitiveType)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.type.DoubleType DoubleType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(DoubleType node, boolean callVirtualBase) {
visitEnd((PrimitiveType)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.type.ErrorType ErrorType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(ErrorType node, boolean callVirtualBase) {
visit((Type)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.type.ErrorType ErrorType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ErrorType node, boolean callVirtualBase) {
visitEnd((Type)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.type.FloatType FloatType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(FloatType node, boolean callVirtualBase) {
visit((PrimitiveType)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.type.FloatType FloatType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(FloatType node, boolean callVirtualBase) {
visitEnd((PrimitiveType)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.type.IntType IntType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(IntType node, boolean callVirtualBase) {
visit((PrimitiveType)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.type.IntType IntType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(IntType node, boolean callVirtualBase) {
visitEnd((PrimitiveType)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.type.IntersectionType IntersectionType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(IntersectionType node, boolean callVirtualBase) {
visit((Type)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.type.IntersectionType IntersectionType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(IntersectionType node, boolean callVirtualBase) {
visitEnd((Type)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.type.LongType LongType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(LongType node, boolean callVirtualBase) {
visit((PrimitiveType)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.type.LongType LongType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(LongType node, boolean callVirtualBase) {
visitEnd((PrimitiveType)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.type.LowerBoundedWildcardType LowerBoundedWildcardType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(LowerBoundedWildcardType node, boolean callVirtualBase) {
visit((BoundedWildcardType)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.type.LowerBoundedWildcardType LowerBoundedWildcardType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(LowerBoundedWildcardType node, boolean callVirtualBase) {
visitEnd((BoundedWildcardType)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.type.MethodType MethodType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(MethodType node, boolean callVirtualBase) {
visit((Type)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.type.MethodType MethodType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(MethodType node, boolean callVirtualBase) {
visitEnd((Type)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.type.ModuleType ModuleType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(ModuleType node, boolean callVirtualBase) {
visit((Type)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.type.ModuleType ModuleType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ModuleType node, boolean callVirtualBase) {
visitEnd((Type)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.type.NoType NoType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(NoType node, boolean callVirtualBase) {
visit((Type)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.type.NoType NoType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(NoType node, boolean callVirtualBase) {
visitEnd((Type)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.type.NullType NullType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(NullType node, boolean callVirtualBase) {
visit((Type)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.type.NullType NullType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(NullType node, boolean callVirtualBase) {
visitEnd((Type)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.type.PackageType PackageType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(PackageType node, boolean callVirtualBase) {
visit((Type)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.type.PackageType PackageType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(PackageType node, boolean callVirtualBase) {
visitEnd((Type)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.type.ParameterizedType ParameterizedType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(ParameterizedType node, boolean callVirtualBase) {
visit((ScopedType)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.type.ParameterizedType ParameterizedType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ParameterizedType node, boolean callVirtualBase) {
visitEnd((ScopedType)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.type.PrimitiveType PrimitiveType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(PrimitiveType node, boolean callVirtualBase) {
visit((Type)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.type.PrimitiveType PrimitiveType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(PrimitiveType node, boolean callVirtualBase) {
visitEnd((Type)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.type.ScopedType ScopedType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(ScopedType node, boolean callVirtualBase) {
visit((Type)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.type.ScopedType ScopedType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(ScopedType node, boolean callVirtualBase) {
visitEnd((Type)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.type.ShortType ShortType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(ShortType node, boolean callVirtualBase) {
visit((PrimitiveType)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.type.ShortType ShortType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ShortType node, boolean callVirtualBase) {
visitEnd((PrimitiveType)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.type.Type Type} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(Type node, boolean callVirtualBase) {
visit((Base)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.type.Type Type} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(Type node, boolean callVirtualBase) {
visitEnd((Base)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.type.TypeVariable TypeVariable} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(TypeVariable node, boolean callVirtualBase) {
visit((Type)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.type.TypeVariable TypeVariable} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(TypeVariable node, boolean callVirtualBase) {
visitEnd((Type)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.type.UnboundedWildcardType UnboundedWildcardType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(UnboundedWildcardType node, boolean callVirtualBase) {
visit((WildcardType)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.type.UnboundedWildcardType UnboundedWildcardType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(UnboundedWildcardType node, boolean callVirtualBase) {
visitEnd((WildcardType)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.type.UnionType UnionType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(UnionType node, boolean callVirtualBase) {
visit((Type)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.type.UnionType UnionType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(UnionType node, boolean callVirtualBase) {
visitEnd((Type)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.type.UpperBoundedWildcardType UpperBoundedWildcardType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(UpperBoundedWildcardType node, boolean callVirtualBase) {
visit((BoundedWildcardType)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.type.UpperBoundedWildcardType UpperBoundedWildcardType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(UpperBoundedWildcardType node, boolean callVirtualBase) {
visitEnd((BoundedWildcardType)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.type.VoidType VoidType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(VoidType node, boolean callVirtualBase) {
visit((PrimitiveType)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.type.VoidType VoidType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(VoidType node, boolean callVirtualBase) {
visitEnd((PrimitiveType)node, false);
}
/**
* Abstract visitor, which calls the visitor of the base class(es) of the {@link columbus.java.asg.type.WildcardType WildcardType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visit(WildcardType node, boolean callVirtualBase) {
visit((Type)node, false);
}
/**
* Abstract visitor, which calls the end visitor of the base class(es) of the {@link columbus.java.asg.type.WildcardType WildcardType} node.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
public void visitEnd(WildcardType node, boolean callVirtualBase) {
visitEnd((Type)node, false);
}
}
| 193,355 | 43.768696 | 174 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/visitors/VisitorSpecFilter.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.visitors;
import java.util.HashSet;
import java.util.TreeSet;
import columbus.StrTable.StrType;
import columbus.java.asg.*;
import columbus.java.asg.algorithms.AlgorithmPreorder;
import columbus.java.asg.base.Base;
import columbus.java.asg.base.BlockComment;
import columbus.java.asg.base.Comment;
import columbus.java.asg.base.Commentable;
import columbus.java.asg.base.JavadocComment;
import columbus.java.asg.base.LineComment;
import columbus.java.asg.base.Named;
import columbus.java.asg.base.NonJavadocComment;
import columbus.java.asg.base.Positioned;
import columbus.java.asg.base.PositionedWithoutComment;
import columbus.java.asg.expr.AnnotatedTypeExpression;
import columbus.java.asg.expr.Annotation;
import columbus.java.asg.expr.ArrayAccess;
import columbus.java.asg.expr.ArrayTypeExpression;
import columbus.java.asg.expr.Assignment;
import columbus.java.asg.expr.Binary;
import columbus.java.asg.expr.BooleanLiteral;
import columbus.java.asg.expr.CharacterLiteral;
import columbus.java.asg.expr.ClassLiteral;
import columbus.java.asg.expr.Conditional;
import columbus.java.asg.expr.DoubleLiteral;
import columbus.java.asg.expr.Erroneous;
import columbus.java.asg.expr.ErroneousTypeExpression;
import columbus.java.asg.expr.Expression;
import columbus.java.asg.expr.ExternalTypeExpression;
import columbus.java.asg.expr.FieldAccess;
import columbus.java.asg.expr.FloatLiteral;
import columbus.java.asg.expr.FunctionalExpression;
import columbus.java.asg.expr.Identifier;
import columbus.java.asg.expr.InfixExpression;
import columbus.java.asg.expr.InstanceOf;
import columbus.java.asg.expr.IntegerLiteral;
import columbus.java.asg.expr.Lambda;
import columbus.java.asg.expr.Literal;
import columbus.java.asg.expr.LongLiteral;
import columbus.java.asg.expr.MarkerAnnotation;
import columbus.java.asg.expr.MemberReference;
import columbus.java.asg.expr.MethodInvocation;
import columbus.java.asg.expr.NewArray;
import columbus.java.asg.expr.NewClass;
import columbus.java.asg.expr.NormalAnnotation;
import columbus.java.asg.expr.NullLiteral;
import columbus.java.asg.expr.NumberLiteral;
import columbus.java.asg.expr.ParenthesizedExpression;
import columbus.java.asg.expr.PolyExpression;
import columbus.java.asg.expr.PostfixExpression;
import columbus.java.asg.expr.PrefixExpression;
import columbus.java.asg.expr.PrimitiveTypeExpression;
import columbus.java.asg.expr.QualifiedTypeExpression;
import columbus.java.asg.expr.SimpleTypeExpression;
import columbus.java.asg.expr.SingleElementAnnotation;
import columbus.java.asg.expr.StringLiteral;
import columbus.java.asg.expr.Super;
import columbus.java.asg.expr.This;
import columbus.java.asg.expr.TypeApplyExpression;
import columbus.java.asg.expr.TypeCast;
import columbus.java.asg.expr.TypeExpression;
import columbus.java.asg.expr.TypeIntersectionExpression;
import columbus.java.asg.expr.TypeUnionExpression;
import columbus.java.asg.expr.Unary;
import columbus.java.asg.expr.WildcardExpression;
import columbus.java.asg.module.Exports;
import columbus.java.asg.module.ModuleDirective;
import columbus.java.asg.module.Opens;
import columbus.java.asg.module.Provides;
import columbus.java.asg.module.Requires;
import columbus.java.asg.module.Uses;
import columbus.java.asg.statm.Assert;
import columbus.java.asg.statm.BasicFor;
import columbus.java.asg.statm.Block;
import columbus.java.asg.statm.Break;
import columbus.java.asg.statm.Case;
import columbus.java.asg.statm.Continue;
import columbus.java.asg.statm.Default;
import columbus.java.asg.statm.Do;
import columbus.java.asg.statm.Empty;
import columbus.java.asg.statm.EnhancedFor;
import columbus.java.asg.statm.ExpressionStatement;
import columbus.java.asg.statm.For;
import columbus.java.asg.statm.Handler;
import columbus.java.asg.statm.If;
import columbus.java.asg.statm.Iteration;
import columbus.java.asg.statm.Jump;
import columbus.java.asg.statm.LabeledStatement;
import columbus.java.asg.statm.Return;
import columbus.java.asg.statm.Selection;
import columbus.java.asg.statm.Statement;
import columbus.java.asg.statm.Switch;
import columbus.java.asg.statm.SwitchLabel;
import columbus.java.asg.statm.Synchronized;
import columbus.java.asg.statm.Throw;
import columbus.java.asg.statm.Try;
import columbus.java.asg.statm.While;
import columbus.java.asg.struc.AnnotatedElement;
import columbus.java.asg.struc.AnnotationType;
import columbus.java.asg.struc.AnnotationTypeElement;
import columbus.java.asg.struc.AnonymousClass;
import columbus.java.asg.struc.Class;
import columbus.java.asg.struc.ClassDeclaration;
import columbus.java.asg.struc.ClassGeneric;
import columbus.java.asg.struc.CompilationUnit;
import columbus.java.asg.struc.Declaration;
import columbus.java.asg.struc.Enum;
import columbus.java.asg.struc.EnumConstant;
import columbus.java.asg.struc.GenericDeclaration;
import columbus.java.asg.struc.Import;
import columbus.java.asg.struc.InitializerBlock;
import columbus.java.asg.struc.InstanceInitializerBlock;
import columbus.java.asg.struc.Interface;
import columbus.java.asg.struc.InterfaceDeclaration;
import columbus.java.asg.struc.InterfaceGeneric;
import columbus.java.asg.struc.Member;
import columbus.java.asg.struc.Method;
import columbus.java.asg.struc.MethodDeclaration;
import columbus.java.asg.struc.MethodGeneric;
import columbus.java.asg.struc.Module;
import columbus.java.asg.struc.ModuleDeclaration;
import columbus.java.asg.struc.NamedDeclaration;
import columbus.java.asg.struc.NormalMethod;
import columbus.java.asg.struc.Package;
import columbus.java.asg.struc.PackageDeclaration;
import columbus.java.asg.struc.Parameter;
import columbus.java.asg.struc.Scope;
import columbus.java.asg.struc.StaticInitializerBlock;
import columbus.java.asg.struc.TypeDeclaration;
import columbus.java.asg.struc.TypeParameter;
import columbus.java.asg.struc.Variable;
import columbus.java.asg.struc.VariableDeclaration;
import columbus.java.asg.type.ArrayType;
import columbus.java.asg.type.BooleanType;
import columbus.java.asg.type.BoundedWildcardType;
import columbus.java.asg.type.ByteType;
import columbus.java.asg.type.CharType;
import columbus.java.asg.type.ClassType;
import columbus.java.asg.type.DoubleType;
import columbus.java.asg.type.ErrorType;
import columbus.java.asg.type.FloatType;
import columbus.java.asg.type.IntType;
import columbus.java.asg.type.IntersectionType;
import columbus.java.asg.type.LongType;
import columbus.java.asg.type.LowerBoundedWildcardType;
import columbus.java.asg.type.MethodType;
import columbus.java.asg.type.ModuleType;
import columbus.java.asg.type.NoType;
import columbus.java.asg.type.NullType;
import columbus.java.asg.type.PackageType;
import columbus.java.asg.type.ParameterizedType;
import columbus.java.asg.type.PrimitiveType;
import columbus.java.asg.type.ScopedType;
import columbus.java.asg.type.ShortType;
import columbus.java.asg.type.Type;
import columbus.java.asg.type.TypeVariable;
import columbus.java.asg.type.UnboundedWildcardType;
import columbus.java.asg.type.UnionType;
import columbus.java.asg.type.UpperBoundedWildcardType;
import columbus.java.asg.type.VoidType;
import columbus.java.asg.type.WildcardType;
public class VisitorSpecFilter extends VisitorAbstractNodes {
private Factory factory;
private AlgorithmPreorder ap;
private boolean[] visited;
private TreeSet<Integer> roots;
private TreeSet<Integer> referred;
private HashSet<Integer> keys;
public VisitorSpecFilter(Factory factory) {
this.factory = factory;
this.ap = new AlgorithmPreorder();
ap.setVisitSpecialNodes(false, false);
visited = new boolean[factory.size()];
roots = new TreeSet<Integer>();
referred = new TreeSet<Integer>();
keys = new HashSet<Integer>();
}
public void init() {
visited = new boolean[factory.size()];
roots = new TreeSet<Integer>();
referred = new TreeSet<Integer>();
restoreStrTable();
}
public void addRoot(Base node) {
if (node != null) {
roots.add(node.getId());
addRef(node);
}
}
public void run() {
int nodeId;
while (!roots.isEmpty() || !referred.isEmpty()) {
while (!roots.isEmpty()) {
nodeId = roots.first();
roots.remove(nodeId);
if (!visited[nodeId])
ap.run(factory, this, nodeId);
}
while (!referred.isEmpty()) {
if (!roots.isEmpty())
break;
nodeId = referred.first();
referred.remove(nodeId);
if (!visited[nodeId]) {
Base node = factory.getRef(nodeId);
switch (node.getNodeKind()) {
case ndkBlockComment:
case ndkJavadocComment:
case ndkLineComment:
case ndkArrayType:
case ndkBooleanType:
case ndkByteType:
case ndkCharType:
case ndkClassType:
case ndkDoubleType:
case ndkErrorType:
case ndkFloatType:
case ndkIntType:
case ndkLongType:
case ndkLowerBoundedWildcardType:
case ndkMethodType:
case ndkNoType:
case ndkNullType:
case ndkPackageType:
case ndkParameterizedType:
case ndkShortType:
case ndkTypeVariable:
case ndkUnboundedWildcardType:
case ndkUnionType:
case ndkUpperBoundedWildcardType:
case ndkVoidType:
ap.run(factory, this, node);
break;
default:
node.accept(this);
break;
}
}
}
}
}
public void createFilter() {
factory.initializeFilter(); // reset filter
for (int i = 0; i < visited.length; i++)
if (!visited[i])
factory.setFilteredThisNodeOnly(i);
for (int i : keys)
factory.getStringTable().setType(i, StrType.strToSave);
}
public void restoreStrTable() {
for (int i : keys)
factory.getStringTable().setType(i, StrType.strDefault);
keys.clear();
}
public void addRef(Base node) {
while (node != null && !visited[node.getId()]) {
referred.add(node.getId());
node = node.getParent();
}
}
@Override
public void visit(Base node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
visited[node.getId()] = true;
}
@Override
public void visit(BlockComment node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(Comment node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
keys.add(node.getTextKey());
}
@Override
public void visit(Commentable node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
for (EdgeIterator<Comment> it = node.getCommentsIterator(); it.hasNext(); ) {
addRef(it.next());
}
}
@Override
public void visit(JavadocComment node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(LineComment node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(Named node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
keys.add(node.getNameKey());
keys.add(node.getNamePosition().getPathKey());
}
@Override
public void visit(NonJavadocComment node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(Positioned node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(PositionedWithoutComment node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
keys.add(node.getPosition().getPathKey());
}
@Override
public void visit(AnnotatedTypeExpression node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(Annotation node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(ArrayAccess node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(ArrayTypeExpression node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(Assignment node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(Binary node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(BooleanLiteral node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(CharacterLiteral node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
keys.add(node.getFormatStringKey());
}
@Override
public void visit(ClassLiteral node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(Conditional node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
keys.add(node.getColonPosition().getPathKey());
}
@Override
public void visit(DoubleLiteral node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(Erroneous node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(ErroneousTypeExpression node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(Expression node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
addRef(node.getType());
}
@Override
public void visit(ExternalTypeExpression node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(FieldAccess node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(FloatLiteral node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(FunctionalExpression node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(Identifier node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
keys.add(node.getNameKey());
addRef(node.getRefersTo());
}
@Override
public void visit(InfixExpression node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(InstanceOf node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(IntegerLiteral node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(Lambda node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(Literal node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(LongLiteral node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(MarkerAnnotation node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(MemberReference node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
keys.add(node.getNameKey());
}
@Override
public void visit(MethodInvocation node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
addRef(node.getInvokes());
}
@Override
public void visit(NewArray node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
keys.add(node.getLeftBracePosition().getPathKey());
}
@Override
public void visit(NewClass node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
addRef(node.getConstructor());
}
@Override
public void visit(NormalAnnotation node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(NullLiteral node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(NumberLiteral node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
keys.add(node.getValueKey());
}
@Override
public void visit(ParenthesizedExpression node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(PolyExpression node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(PostfixExpression node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(PrefixExpression node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(PrimitiveTypeExpression node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(QualifiedTypeExpression node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(SimpleTypeExpression node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
keys.add(node.getNameKey());
}
@Override
public void visit(SingleElementAnnotation node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(StringLiteral node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
keys.add(node.getValueKey());
keys.add(node.getFormatStringKey());
}
@Override
public void visit(Super node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(This node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(TypeApplyExpression node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(TypeCast node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(TypeExpression node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(TypeIntersectionExpression node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(TypeUnionExpression node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(Unary node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(WildcardExpression node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(Exports node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(ModuleDirective node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(Opens node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(Provides node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(Requires node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(Uses node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(Assert node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
keys.add(node.getColonPosition().getPathKey());
}
@Override
public void visit(BasicFor node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
keys.add(node.getFirstSemiPosition().getPathKey());
keys.add(node.getSecondSemiPosition().getPathKey());
}
@Override
public void visit(Block node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(Break node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(Case node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(Continue node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(Default node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(Do node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
keys.add(node.getWhilePosition().getPathKey());
}
@Override
public void visit(Empty node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(EnhancedFor node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
keys.add(node.getColonPosition().getPathKey());
}
@Override
public void visit(ExpressionStatement node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(For node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
keys.add(node.getLeftParenPosition().getPathKey());
keys.add(node.getRightParenPosition().getPathKey());
}
@Override
public void visit(Handler node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
keys.add(node.getLeftParenPosition().getPathKey());
keys.add(node.getRightParenPosition().getPathKey());
}
@Override
public void visit(If node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
keys.add(node.getElsePosition().getPathKey());
}
@Override
public void visit(Iteration node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(Jump node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
keys.add(node.getLabelKey());
keys.add(node.getLabelPosition().getPathKey());
}
@Override
public void visit(LabeledStatement node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
keys.add(node.getLabelKey());
keys.add(node.getColonPosition().getPathKey());
}
@Override
public void visit(Return node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(Selection node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(Statement node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(Switch node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
keys.add(node.getBlockStartPosition().getPathKey());
}
@Override
public void visit(SwitchLabel node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
keys.add(node.getColonPosition().getPathKey());
}
@Override
public void visit(Synchronized node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(Throw node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(Try node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
keys.add(node.getResourceLeftParenPosition().getPathKey());
keys.add(node.getResourceRightParenPosition().getPathKey());
keys.add(node.getFinallyPosition().getPathKey());
}
@Override
public void visit(While node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(AnnotatedElement node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(AnnotationType node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
keys.add(node.getAtSignPosition().getPathKey());
}
@Override
public void visit(AnnotationTypeElement node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
keys.add(node.getDefaultPosition().getPathKey());
}
@Override
public void visit(AnonymousClass node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(Class node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(ClassDeclaration node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(ClassGeneric node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(CompilationUnit node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
keys.add(node.getFileEncodingKey());
addRoot(node.getPackageDeclaration());
for (EdgeIterator<Import> it = node.getImportsIterator(); it.hasNext(); ) {
addRoot(it.next());
}
for (EdgeIterator<Positioned> it = node.getOthersIterator(); it.hasNext(); ) {
addRoot(it.next());
}
}
@Override
public void visit(Declaration node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(Enum node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
keys.add(node.getSemiPosition().getPathKey());
}
@Override
public void visit(EnumConstant node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(GenericDeclaration node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(Import node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
keys.add(node.getStaticPosition().getPathKey());
}
@Override
public void visit(InitializerBlock node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(InstanceInitializerBlock node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(Interface node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(InterfaceDeclaration node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(InterfaceGeneric node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(Member node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(Method node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(MethodDeclaration node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
keys.add(node.getAbstractPosition().getPathKey());
keys.add(node.getStrictfpPosition().getPathKey());
keys.add(node.getParametersStartPosition().getPathKey());
keys.add(node.getParametersEndPosition().getPathKey());
addRef(node.getMethodType());
for (EdgeIterator<MethodDeclaration> it = node.getOverridesIterator(); it.hasNext(); ) {
addRef(it.next());
}
}
@Override
public void visit(MethodGeneric node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(Module node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(ModuleDeclaration node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(NamedDeclaration node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
keys.add(node.getAccessibilityPosition().getPathKey());
keys.add(node.getStaticPosition().getPathKey());
keys.add(node.getFinalPosition().getPathKey());
}
@Override
public void visit(NormalMethod node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
keys.add(node.getSynchronizedPosition().getPathKey());
keys.add(node.getNativePosition().getPathKey());
keys.add(node.getThrowsPosition().getPathKey());
}
@Override
public void visit(Package node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
keys.add(node.getQualifiedNameKey());
}
@Override
public void visit(PackageDeclaration node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(Parameter node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
keys.add(node.getVarargsPosition().getPathKey());
}
@Override
public void visit(Scope node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(StaticInitializerBlock node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
keys.add(node.getBlockStartPosition().getPathKey());
}
@Override
public void visit(TypeDeclaration node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
keys.add(node.getBinaryNameKey());
keys.add(node.getTypeNamePosition().getPathKey());
keys.add(node.getAbstractPosition().getPathKey());
keys.add(node.getStrictfpPosition().getPathKey());
keys.add(node.getExtendsPosition().getPathKey());
keys.add(node.getImplementsPosition().getPathKey());
keys.add(node.getBodyStartPosition().getPathKey());
for (EdgeIterator<Positioned> it = node.getOthersIterator(); it.hasNext(); ) {
addRoot(it.next());
}
}
@Override
public void visit(TypeParameter node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
for (EdgeIterator<TypeExpression> it = node.getBoundsIterator(); it.hasNext(); ) {
addRoot(it.next());
}
}
@Override
public void visit(Variable node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
keys.add(node.getTransientPosition().getPathKey());
keys.add(node.getVolatilePosition().getPathKey());
keys.add(node.getEqualSignPosition().getPathKey());
}
@Override
public void visit(VariableDeclaration node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(ArrayType node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
addRef(node.getComponentType());
}
@Override
public void visit(BooleanType node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(BoundedWildcardType node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(ByteType node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(CharType node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(ClassType node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
addRef(node.getRefersTo());
}
@Override
public void visit(DoubleType node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(ErrorType node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(FloatType node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(IntType node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(IntersectionType node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(LongType node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(LowerBoundedWildcardType node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(MethodType node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
addRef(node.getReturnType());
for (EdgeIterator<Type> it = node.getParameterTypesIterator(); it.hasNext(); ) {
addRef(it.next());
}
for (EdgeIterator<Type> it = node.getThrownTypesIterator(); it.hasNext(); ) {
addRef(it.next());
}
}
@Override
public void visit(ModuleType node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(NoType node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(NullType node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(PackageType node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
addRef(node.getRefersTo());
}
@Override
public void visit(ParameterizedType node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
addRef(node.getRawType());
for (EdgeIterator<Type> it = node.getArgumentTypesIterator(); it.hasNext(); ) {
addRef(it.next());
}
}
@Override
public void visit(PrimitiveType node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(ScopedType node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
addRef(node.getOwner());
}
@Override
public void visit(ShortType node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(Type node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(TypeVariable node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
addRef(node.getRefersTo());
}
@Override
public void visit(UnboundedWildcardType node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(UnionType node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
for (EdgeIterator<Type> it = node.getAlternativesIterator(); it.hasNext(); ) {
addRef(it.next());
}
}
@Override
public void visit(UpperBoundedWildcardType node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(VoidType node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
}
@Override
public void visit(WildcardType node, boolean callVirtualBase) {
super.visit(node, callVirtualBase);
addRef(node.getBound());
}
}
| 33,602 | 25.272869 | 90 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/visitors/VisitorJAVAML.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.visitors;
import java.io.BufferedWriter;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import columbus.logger.LoggerHandler;
import columbus.java.asg.*;
import columbus.java.asg.base.Base;
import columbus.java.asg.base.BlockComment;
import columbus.java.asg.base.Comment;
import columbus.java.asg.base.Commentable;
import columbus.java.asg.base.JavadocComment;
import columbus.java.asg.base.LineComment;
import columbus.java.asg.base.Named;
import columbus.java.asg.base.NonJavadocComment;
import columbus.java.asg.base.Positioned;
import columbus.java.asg.base.PositionedWithoutComment;
import columbus.java.asg.expr.AnnotatedTypeExpression;
import columbus.java.asg.expr.Annotation;
import columbus.java.asg.expr.ArrayAccess;
import columbus.java.asg.expr.ArrayTypeExpression;
import columbus.java.asg.expr.Assignment;
import columbus.java.asg.expr.Binary;
import columbus.java.asg.expr.BooleanLiteral;
import columbus.java.asg.expr.CharacterLiteral;
import columbus.java.asg.expr.ClassLiteral;
import columbus.java.asg.expr.Conditional;
import columbus.java.asg.expr.DoubleLiteral;
import columbus.java.asg.expr.Erroneous;
import columbus.java.asg.expr.ErroneousTypeExpression;
import columbus.java.asg.expr.Expression;
import columbus.java.asg.expr.ExternalTypeExpression;
import columbus.java.asg.expr.FieldAccess;
import columbus.java.asg.expr.FloatLiteral;
import columbus.java.asg.expr.FunctionalExpression;
import columbus.java.asg.expr.Identifier;
import columbus.java.asg.expr.InfixExpression;
import columbus.java.asg.expr.InstanceOf;
import columbus.java.asg.expr.IntegerLiteral;
import columbus.java.asg.expr.Lambda;
import columbus.java.asg.expr.Literal;
import columbus.java.asg.expr.LongLiteral;
import columbus.java.asg.expr.MarkerAnnotation;
import columbus.java.asg.expr.MemberReference;
import columbus.java.asg.expr.MethodInvocation;
import columbus.java.asg.expr.NewArray;
import columbus.java.asg.expr.NewClass;
import columbus.java.asg.expr.NormalAnnotation;
import columbus.java.asg.expr.NullLiteral;
import columbus.java.asg.expr.NumberLiteral;
import columbus.java.asg.expr.ParenthesizedExpression;
import columbus.java.asg.expr.PolyExpression;
import columbus.java.asg.expr.PostfixExpression;
import columbus.java.asg.expr.PrefixExpression;
import columbus.java.asg.expr.PrimitiveTypeExpression;
import columbus.java.asg.expr.QualifiedTypeExpression;
import columbus.java.asg.expr.SimpleTypeExpression;
import columbus.java.asg.expr.SingleElementAnnotation;
import columbus.java.asg.expr.StringLiteral;
import columbus.java.asg.expr.Super;
import columbus.java.asg.expr.This;
import columbus.java.asg.expr.TypeApplyExpression;
import columbus.java.asg.expr.TypeCast;
import columbus.java.asg.expr.TypeExpression;
import columbus.java.asg.expr.TypeIntersectionExpression;
import columbus.java.asg.expr.TypeUnionExpression;
import columbus.java.asg.expr.Unary;
import columbus.java.asg.expr.WildcardExpression;
import columbus.java.asg.module.Exports;
import columbus.java.asg.module.ModuleDirective;
import columbus.java.asg.module.Opens;
import columbus.java.asg.module.Provides;
import columbus.java.asg.module.Requires;
import columbus.java.asg.module.Uses;
import columbus.java.asg.statm.Assert;
import columbus.java.asg.statm.BasicFor;
import columbus.java.asg.statm.Block;
import columbus.java.asg.statm.Break;
import columbus.java.asg.statm.Case;
import columbus.java.asg.statm.Continue;
import columbus.java.asg.statm.Default;
import columbus.java.asg.statm.Do;
import columbus.java.asg.statm.Empty;
import columbus.java.asg.statm.EnhancedFor;
import columbus.java.asg.statm.ExpressionStatement;
import columbus.java.asg.statm.For;
import columbus.java.asg.statm.Handler;
import columbus.java.asg.statm.If;
import columbus.java.asg.statm.Iteration;
import columbus.java.asg.statm.Jump;
import columbus.java.asg.statm.LabeledStatement;
import columbus.java.asg.statm.Return;
import columbus.java.asg.statm.Selection;
import columbus.java.asg.statm.Statement;
import columbus.java.asg.statm.Switch;
import columbus.java.asg.statm.SwitchLabel;
import columbus.java.asg.statm.Synchronized;
import columbus.java.asg.statm.Throw;
import columbus.java.asg.statm.Try;
import columbus.java.asg.statm.While;
import columbus.java.asg.struc.AnnotatedElement;
import columbus.java.asg.struc.AnnotationType;
import columbus.java.asg.struc.AnnotationTypeElement;
import columbus.java.asg.struc.AnonymousClass;
import columbus.java.asg.struc.Class;
import columbus.java.asg.struc.ClassDeclaration;
import columbus.java.asg.struc.ClassGeneric;
import columbus.java.asg.struc.CompilationUnit;
import columbus.java.asg.struc.Declaration;
import columbus.java.asg.struc.Enum;
import columbus.java.asg.struc.EnumConstant;
import columbus.java.asg.struc.GenericDeclaration;
import columbus.java.asg.struc.Import;
import columbus.java.asg.struc.InitializerBlock;
import columbus.java.asg.struc.InstanceInitializerBlock;
import columbus.java.asg.struc.Interface;
import columbus.java.asg.struc.InterfaceDeclaration;
import columbus.java.asg.struc.InterfaceGeneric;
import columbus.java.asg.struc.Member;
import columbus.java.asg.struc.Method;
import columbus.java.asg.struc.MethodDeclaration;
import columbus.java.asg.struc.MethodGeneric;
import columbus.java.asg.struc.Module;
import columbus.java.asg.struc.ModuleDeclaration;
import columbus.java.asg.struc.NamedDeclaration;
import columbus.java.asg.struc.NormalMethod;
import columbus.java.asg.struc.Package;
import columbus.java.asg.struc.PackageDeclaration;
import columbus.java.asg.struc.Parameter;
import columbus.java.asg.struc.Scope;
import columbus.java.asg.struc.StaticInitializerBlock;
import columbus.java.asg.struc.TypeDeclaration;
import columbus.java.asg.struc.TypeParameter;
import columbus.java.asg.struc.Variable;
import columbus.java.asg.struc.VariableDeclaration;
import columbus.java.asg.type.ArrayType;
import columbus.java.asg.type.BooleanType;
import columbus.java.asg.type.BoundedWildcardType;
import columbus.java.asg.type.ByteType;
import columbus.java.asg.type.CharType;
import columbus.java.asg.type.ClassType;
import columbus.java.asg.type.DoubleType;
import columbus.java.asg.type.ErrorType;
import columbus.java.asg.type.FloatType;
import columbus.java.asg.type.IntType;
import columbus.java.asg.type.IntersectionType;
import columbus.java.asg.type.LongType;
import columbus.java.asg.type.LowerBoundedWildcardType;
import columbus.java.asg.type.MethodType;
import columbus.java.asg.type.ModuleType;
import columbus.java.asg.type.NoType;
import columbus.java.asg.type.NullType;
import columbus.java.asg.type.PackageType;
import columbus.java.asg.type.ParameterizedType;
import columbus.java.asg.type.PrimitiveType;
import columbus.java.asg.type.ScopedType;
import columbus.java.asg.type.ShortType;
import columbus.java.asg.type.Type;
import columbus.java.asg.type.TypeVariable;
import columbus.java.asg.type.UnboundedWildcardType;
import columbus.java.asg.type.UnionType;
import columbus.java.asg.type.UpperBoundedWildcardType;
import columbus.java.asg.type.VoidType;
import columbus.java.asg.type.WildcardType;
/**
* Creates XML dump.
*/
public class VisitorJAVAML extends Visitor {
private static final LoggerHandler logger = new LoggerHandler(VisitorJAVAML.class, columbus.java.asg.Constant.LoggerPropertyFile);
/** The xml will be written into this. */
protected PrintWriter ofs;
/** The name of the output file. */
protected String fileName;
/** The name of the project. */
protected String projectName;
/** Flag to know if the ID of the nodes have to be written or not. */
protected boolean noId;
/**
* Constructor of XML generator visitor.
* @param fileName Name of the output file.
* @param projectName Name of the project.
* @param noId Do not write the ID of the nodes.
*/
public VisitorJAVAML(String fileName, String projectName, boolean noId) {
this.fileName = fileName;
this.projectName = projectName;
this.noId = noId;
}
/**
* This method is called before the beginning of visiting process. It flushes the header of xml.
*/
@Override
public void beginVisit() {
if (ofs != null)
throw new JavaException(logger.formatMessage("ex.java.JVM.File_is_already_opened"));
try {
ofs = new PrintWriter(new BufferedWriter(new OutputStreamWriter(new FileOutputStream(fileName), "UTF-8")));
} catch (IOException e) {
throw new JavaException(e);
}
ofs.println("<?xml version='1.0' encoding=\"utf-8\"?>");
ofs.print("<Project name='" + projectName + "'");
ofs.print(" xmlns:base='columbus_java_schema/base'");
ofs.print(" xmlns:expr='columbus_java_schema/expr'");
ofs.print(" xmlns:module='columbus_java_schema/module'");
ofs.print(" xmlns:statm='columbus_java_schema/statm'");
ofs.print(" xmlns:struc='columbus_java_schema/struc'");
ofs.print(" xmlns:type='columbus_java_schema/type'");
ofs.println(">");
}
/**
* This method is called when the visiting process has finished. It flushes the tail of xml.
*/
@Override
public void finishVisit() {
ofs.println("<Filtered id='id1'/>");
ofs.println("</Project>");
ofs.close();
ofs = null;
}
/**
* Writes the XML representation of the {@link columbus.java.asg.base.BlockComment BlockComment} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(BlockComment node, boolean callVirtualBase) {
createIndentation();
ofs.print("<base:BlockComment");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.base.BlockComment BlockComment} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(BlockComment node, boolean callVirtualBase) {
createIndentation();
ofs.println("</base:BlockComment>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.base.JavadocComment JavadocComment} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(JavadocComment node, boolean callVirtualBase) {
createIndentation();
ofs.print("<base:JavadocComment");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.base.JavadocComment JavadocComment} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(JavadocComment node, boolean callVirtualBase) {
createIndentation();
ofs.println("</base:JavadocComment>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.base.LineComment LineComment} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(LineComment node, boolean callVirtualBase) {
createIndentation();
ofs.print("<base:LineComment");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.base.LineComment LineComment} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(LineComment node, boolean callVirtualBase) {
createIndentation();
ofs.println("</base:LineComment>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.AnnotatedTypeExpression AnnotatedTypeExpression} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(AnnotatedTypeExpression node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:AnnotatedTypeExpression");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.AnnotatedTypeExpression AnnotatedTypeExpression} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(AnnotatedTypeExpression node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:AnnotatedTypeExpression>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.ArrayAccess ArrayAccess} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(ArrayAccess node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:ArrayAccess");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.ArrayAccess ArrayAccess} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ArrayAccess node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:ArrayAccess>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.ArrayTypeExpression ArrayTypeExpression} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(ArrayTypeExpression node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:ArrayTypeExpression");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.ArrayTypeExpression ArrayTypeExpression} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ArrayTypeExpression node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:ArrayTypeExpression>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.Assignment Assignment} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Assignment node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:Assignment");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.Assignment Assignment} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Assignment node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:Assignment>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.BooleanLiteral BooleanLiteral} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(BooleanLiteral node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:BooleanLiteral");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.BooleanLiteral BooleanLiteral} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(BooleanLiteral node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:BooleanLiteral>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.CharacterLiteral CharacterLiteral} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(CharacterLiteral node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:CharacterLiteral");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.CharacterLiteral CharacterLiteral} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(CharacterLiteral node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:CharacterLiteral>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.ClassLiteral ClassLiteral} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(ClassLiteral node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:ClassLiteral");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.ClassLiteral ClassLiteral} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ClassLiteral node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:ClassLiteral>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.Conditional Conditional} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Conditional node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:Conditional");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.Conditional Conditional} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Conditional node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:Conditional>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.DoubleLiteral DoubleLiteral} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(DoubleLiteral node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:DoubleLiteral");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.DoubleLiteral DoubleLiteral} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(DoubleLiteral node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:DoubleLiteral>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.Erroneous Erroneous} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Erroneous node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:Erroneous");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.Erroneous Erroneous} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Erroneous node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:Erroneous>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.ErroneousTypeExpression ErroneousTypeExpression} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(ErroneousTypeExpression node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:ErroneousTypeExpression");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.ErroneousTypeExpression ErroneousTypeExpression} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ErroneousTypeExpression node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:ErroneousTypeExpression>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.ExternalTypeExpression ExternalTypeExpression} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(ExternalTypeExpression node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:ExternalTypeExpression");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.ExternalTypeExpression ExternalTypeExpression} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ExternalTypeExpression node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:ExternalTypeExpression>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.FieldAccess FieldAccess} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(FieldAccess node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:FieldAccess");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.FieldAccess FieldAccess} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(FieldAccess node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:FieldAccess>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.FloatLiteral FloatLiteral} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(FloatLiteral node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:FloatLiteral");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.FloatLiteral FloatLiteral} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(FloatLiteral node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:FloatLiteral>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.Identifier Identifier} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Identifier node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:Identifier");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.Identifier Identifier} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Identifier node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:Identifier>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.InfixExpression InfixExpression} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(InfixExpression node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:InfixExpression");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.InfixExpression InfixExpression} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(InfixExpression node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:InfixExpression>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.InstanceOf InstanceOf} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(InstanceOf node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:InstanceOf");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.InstanceOf InstanceOf} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(InstanceOf node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:InstanceOf>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.IntegerLiteral IntegerLiteral} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(IntegerLiteral node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:IntegerLiteral");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.IntegerLiteral IntegerLiteral} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(IntegerLiteral node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:IntegerLiteral>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.Lambda Lambda} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Lambda node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:Lambda");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.Lambda Lambda} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Lambda node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:Lambda>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.LongLiteral LongLiteral} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(LongLiteral node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:LongLiteral");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.LongLiteral LongLiteral} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(LongLiteral node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:LongLiteral>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.MarkerAnnotation MarkerAnnotation} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(MarkerAnnotation node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:MarkerAnnotation");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.MarkerAnnotation MarkerAnnotation} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(MarkerAnnotation node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:MarkerAnnotation>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.MemberReference MemberReference} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(MemberReference node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:MemberReference");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.MemberReference MemberReference} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(MemberReference node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:MemberReference>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.MethodInvocation MethodInvocation} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(MethodInvocation node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:MethodInvocation");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.MethodInvocation MethodInvocation} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(MethodInvocation node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:MethodInvocation>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.NewArray NewArray} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(NewArray node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:NewArray");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.NewArray NewArray} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(NewArray node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:NewArray>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.NewClass NewClass} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(NewClass node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:NewClass");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.NewClass NewClass} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(NewClass node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:NewClass>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.NormalAnnotation NormalAnnotation} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(NormalAnnotation node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:NormalAnnotation");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.NormalAnnotation NormalAnnotation} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(NormalAnnotation node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:NormalAnnotation>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.NullLiteral NullLiteral} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(NullLiteral node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:NullLiteral");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.NullLiteral NullLiteral} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(NullLiteral node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:NullLiteral>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.ParenthesizedExpression ParenthesizedExpression} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(ParenthesizedExpression node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:ParenthesizedExpression");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.ParenthesizedExpression ParenthesizedExpression} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ParenthesizedExpression node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:ParenthesizedExpression>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.PostfixExpression PostfixExpression} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(PostfixExpression node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:PostfixExpression");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.PostfixExpression PostfixExpression} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(PostfixExpression node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:PostfixExpression>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.PrefixExpression PrefixExpression} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(PrefixExpression node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:PrefixExpression");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.PrefixExpression PrefixExpression} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(PrefixExpression node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:PrefixExpression>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.PrimitiveTypeExpression PrimitiveTypeExpression} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(PrimitiveTypeExpression node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:PrimitiveTypeExpression");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.PrimitiveTypeExpression PrimitiveTypeExpression} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(PrimitiveTypeExpression node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:PrimitiveTypeExpression>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.QualifiedTypeExpression QualifiedTypeExpression} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(QualifiedTypeExpression node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:QualifiedTypeExpression");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.QualifiedTypeExpression QualifiedTypeExpression} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(QualifiedTypeExpression node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:QualifiedTypeExpression>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.SimpleTypeExpression SimpleTypeExpression} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(SimpleTypeExpression node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:SimpleTypeExpression");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.SimpleTypeExpression SimpleTypeExpression} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(SimpleTypeExpression node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:SimpleTypeExpression>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.SingleElementAnnotation SingleElementAnnotation} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(SingleElementAnnotation node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:SingleElementAnnotation");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.SingleElementAnnotation SingleElementAnnotation} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(SingleElementAnnotation node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:SingleElementAnnotation>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.StringLiteral StringLiteral} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(StringLiteral node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:StringLiteral");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.StringLiteral StringLiteral} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(StringLiteral node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:StringLiteral>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.Super Super} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Super node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:Super");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.Super Super} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Super node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:Super>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.This This} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(This node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:This");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.This This} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(This node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:This>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.TypeApplyExpression TypeApplyExpression} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(TypeApplyExpression node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:TypeApplyExpression");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.TypeApplyExpression TypeApplyExpression} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(TypeApplyExpression node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:TypeApplyExpression>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.TypeCast TypeCast} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(TypeCast node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:TypeCast");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.TypeCast TypeCast} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(TypeCast node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:TypeCast>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.TypeIntersectionExpression TypeIntersectionExpression} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(TypeIntersectionExpression node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:TypeIntersectionExpression");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.TypeIntersectionExpression TypeIntersectionExpression} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(TypeIntersectionExpression node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:TypeIntersectionExpression>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.TypeUnionExpression TypeUnionExpression} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(TypeUnionExpression node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:TypeUnionExpression");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.TypeUnionExpression TypeUnionExpression} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(TypeUnionExpression node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:TypeUnionExpression>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.expr.WildcardExpression WildcardExpression} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(WildcardExpression node, boolean callVirtualBase) {
createIndentation();
ofs.print("<expr:WildcardExpression");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.expr.WildcardExpression WildcardExpression} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(WildcardExpression node, boolean callVirtualBase) {
createIndentation();
ofs.println("</expr:WildcardExpression>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.module.Exports Exports} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Exports node, boolean callVirtualBase) {
createIndentation();
ofs.print("<module:Exports");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.module.Exports Exports} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Exports node, boolean callVirtualBase) {
createIndentation();
ofs.println("</module:Exports>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.module.Opens Opens} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Opens node, boolean callVirtualBase) {
createIndentation();
ofs.print("<module:Opens");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.module.Opens Opens} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Opens node, boolean callVirtualBase) {
createIndentation();
ofs.println("</module:Opens>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.module.Provides Provides} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Provides node, boolean callVirtualBase) {
createIndentation();
ofs.print("<module:Provides");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.module.Provides Provides} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Provides node, boolean callVirtualBase) {
createIndentation();
ofs.println("</module:Provides>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.module.Requires Requires} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Requires node, boolean callVirtualBase) {
createIndentation();
ofs.print("<module:Requires");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.module.Requires Requires} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Requires node, boolean callVirtualBase) {
createIndentation();
ofs.println("</module:Requires>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.module.Uses Uses} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Uses node, boolean callVirtualBase) {
createIndentation();
ofs.print("<module:Uses");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.module.Uses Uses} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Uses node, boolean callVirtualBase) {
createIndentation();
ofs.println("</module:Uses>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.statm.Assert Assert} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Assert node, boolean callVirtualBase) {
createIndentation();
ofs.print("<statm:Assert");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.statm.Assert Assert} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Assert node, boolean callVirtualBase) {
createIndentation();
ofs.println("</statm:Assert>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.statm.BasicFor BasicFor} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(BasicFor node, boolean callVirtualBase) {
createIndentation();
ofs.print("<statm:BasicFor");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.statm.BasicFor BasicFor} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(BasicFor node, boolean callVirtualBase) {
createIndentation();
ofs.println("</statm:BasicFor>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.statm.Block Block} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Block node, boolean callVirtualBase) {
createIndentation();
ofs.print("<statm:Block");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.statm.Block Block} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Block node, boolean callVirtualBase) {
createIndentation();
ofs.println("</statm:Block>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.statm.Break Break} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Break node, boolean callVirtualBase) {
createIndentation();
ofs.print("<statm:Break");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.statm.Break Break} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Break node, boolean callVirtualBase) {
createIndentation();
ofs.println("</statm:Break>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.statm.Case Case} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Case node, boolean callVirtualBase) {
createIndentation();
ofs.print("<statm:Case");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.statm.Case Case} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Case node, boolean callVirtualBase) {
createIndentation();
ofs.println("</statm:Case>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.statm.Continue Continue} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Continue node, boolean callVirtualBase) {
createIndentation();
ofs.print("<statm:Continue");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.statm.Continue Continue} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Continue node, boolean callVirtualBase) {
createIndentation();
ofs.println("</statm:Continue>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.statm.Default Default} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Default node, boolean callVirtualBase) {
createIndentation();
ofs.print("<statm:Default");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.statm.Default Default} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Default node, boolean callVirtualBase) {
createIndentation();
ofs.println("</statm:Default>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.statm.Do Do} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Do node, boolean callVirtualBase) {
createIndentation();
ofs.print("<statm:Do");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.statm.Do Do} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Do node, boolean callVirtualBase) {
createIndentation();
ofs.println("</statm:Do>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.statm.Empty Empty} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Empty node, boolean callVirtualBase) {
createIndentation();
ofs.print("<statm:Empty");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.statm.Empty Empty} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Empty node, boolean callVirtualBase) {
createIndentation();
ofs.println("</statm:Empty>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.statm.EnhancedFor EnhancedFor} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(EnhancedFor node, boolean callVirtualBase) {
createIndentation();
ofs.print("<statm:EnhancedFor");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.statm.EnhancedFor EnhancedFor} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(EnhancedFor node, boolean callVirtualBase) {
createIndentation();
ofs.println("</statm:EnhancedFor>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.statm.ExpressionStatement ExpressionStatement} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(ExpressionStatement node, boolean callVirtualBase) {
createIndentation();
ofs.print("<statm:ExpressionStatement");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.statm.ExpressionStatement ExpressionStatement} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ExpressionStatement node, boolean callVirtualBase) {
createIndentation();
ofs.println("</statm:ExpressionStatement>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.statm.Handler Handler} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Handler node, boolean callVirtualBase) {
createIndentation();
ofs.print("<statm:Handler");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.statm.Handler Handler} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Handler node, boolean callVirtualBase) {
createIndentation();
ofs.println("</statm:Handler>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.statm.If If} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(If node, boolean callVirtualBase) {
createIndentation();
ofs.print("<statm:If");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.statm.If If} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(If node, boolean callVirtualBase) {
createIndentation();
ofs.println("</statm:If>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.statm.LabeledStatement LabeledStatement} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(LabeledStatement node, boolean callVirtualBase) {
createIndentation();
ofs.print("<statm:LabeledStatement");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.statm.LabeledStatement LabeledStatement} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(LabeledStatement node, boolean callVirtualBase) {
createIndentation();
ofs.println("</statm:LabeledStatement>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.statm.Return Return} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Return node, boolean callVirtualBase) {
createIndentation();
ofs.print("<statm:Return");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.statm.Return Return} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Return node, boolean callVirtualBase) {
createIndentation();
ofs.println("</statm:Return>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.statm.Switch Switch} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Switch node, boolean callVirtualBase) {
createIndentation();
ofs.print("<statm:Switch");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.statm.Switch Switch} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Switch node, boolean callVirtualBase) {
createIndentation();
ofs.println("</statm:Switch>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.statm.Synchronized Synchronized} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Synchronized node, boolean callVirtualBase) {
createIndentation();
ofs.print("<statm:Synchronized");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.statm.Synchronized Synchronized} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Synchronized node, boolean callVirtualBase) {
createIndentation();
ofs.println("</statm:Synchronized>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.statm.Throw Throw} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Throw node, boolean callVirtualBase) {
createIndentation();
ofs.print("<statm:Throw");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.statm.Throw Throw} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Throw node, boolean callVirtualBase) {
createIndentation();
ofs.println("</statm:Throw>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.statm.Try Try} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Try node, boolean callVirtualBase) {
createIndentation();
ofs.print("<statm:Try");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.statm.Try Try} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Try node, boolean callVirtualBase) {
createIndentation();
ofs.println("</statm:Try>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.statm.While While} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(While node, boolean callVirtualBase) {
createIndentation();
ofs.print("<statm:While");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.statm.While While} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(While node, boolean callVirtualBase) {
createIndentation();
ofs.println("</statm:While>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.struc.AnnotationType AnnotationType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(AnnotationType node, boolean callVirtualBase) {
createIndentation();
ofs.print("<struc:AnnotationType");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.struc.AnnotationType AnnotationType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(AnnotationType node, boolean callVirtualBase) {
createIndentation();
ofs.println("</struc:AnnotationType>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.struc.AnnotationTypeElement AnnotationTypeElement} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(AnnotationTypeElement node, boolean callVirtualBase) {
createIndentation();
ofs.print("<struc:AnnotationTypeElement");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.struc.AnnotationTypeElement AnnotationTypeElement} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(AnnotationTypeElement node, boolean callVirtualBase) {
createIndentation();
ofs.println("</struc:AnnotationTypeElement>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.struc.AnonymousClass AnonymousClass} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(AnonymousClass node, boolean callVirtualBase) {
createIndentation();
ofs.print("<struc:AnonymousClass");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.struc.AnonymousClass AnonymousClass} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(AnonymousClass node, boolean callVirtualBase) {
createIndentation();
ofs.println("</struc:AnonymousClass>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.struc.Class Class} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Class node, boolean callVirtualBase) {
createIndentation();
ofs.print("<struc:Class");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.struc.Class Class} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Class node, boolean callVirtualBase) {
createIndentation();
ofs.println("</struc:Class>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.struc.ClassGeneric ClassGeneric} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(ClassGeneric node, boolean callVirtualBase) {
createIndentation();
ofs.print("<struc:ClassGeneric");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.struc.ClassGeneric ClassGeneric} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ClassGeneric node, boolean callVirtualBase) {
createIndentation();
ofs.println("</struc:ClassGeneric>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.struc.CompilationUnit CompilationUnit} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(CompilationUnit node, boolean callVirtualBase) {
createIndentation();
ofs.print("<struc:CompilationUnit");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.struc.CompilationUnit CompilationUnit} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(CompilationUnit node, boolean callVirtualBase) {
createIndentation();
ofs.println("</struc:CompilationUnit>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.struc.Enum Enum} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Enum node, boolean callVirtualBase) {
createIndentation();
ofs.print("<struc:Enum");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.struc.Enum Enum} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Enum node, boolean callVirtualBase) {
createIndentation();
ofs.println("</struc:Enum>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.struc.EnumConstant EnumConstant} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(EnumConstant node, boolean callVirtualBase) {
createIndentation();
ofs.print("<struc:EnumConstant");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.struc.EnumConstant EnumConstant} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(EnumConstant node, boolean callVirtualBase) {
createIndentation();
ofs.println("</struc:EnumConstant>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.struc.Import Import} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Import node, boolean callVirtualBase) {
createIndentation();
ofs.print("<struc:Import");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.struc.Import Import} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Import node, boolean callVirtualBase) {
createIndentation();
ofs.println("</struc:Import>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.struc.InstanceInitializerBlock InstanceInitializerBlock} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(InstanceInitializerBlock node, boolean callVirtualBase) {
createIndentation();
ofs.print("<struc:InstanceInitializerBlock");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.struc.InstanceInitializerBlock InstanceInitializerBlock} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(InstanceInitializerBlock node, boolean callVirtualBase) {
createIndentation();
ofs.println("</struc:InstanceInitializerBlock>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.struc.Interface Interface} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Interface node, boolean callVirtualBase) {
createIndentation();
ofs.print("<struc:Interface");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.struc.Interface Interface} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Interface node, boolean callVirtualBase) {
createIndentation();
ofs.println("</struc:Interface>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.struc.InterfaceGeneric InterfaceGeneric} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(InterfaceGeneric node, boolean callVirtualBase) {
createIndentation();
ofs.print("<struc:InterfaceGeneric");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.struc.InterfaceGeneric InterfaceGeneric} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(InterfaceGeneric node, boolean callVirtualBase) {
createIndentation();
ofs.println("</struc:InterfaceGeneric>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.struc.Method Method} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Method node, boolean callVirtualBase) {
createIndentation();
ofs.print("<struc:Method");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.struc.Method Method} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Method node, boolean callVirtualBase) {
createIndentation();
ofs.println("</struc:Method>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.struc.MethodGeneric MethodGeneric} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(MethodGeneric node, boolean callVirtualBase) {
createIndentation();
ofs.print("<struc:MethodGeneric");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.struc.MethodGeneric MethodGeneric} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(MethodGeneric node, boolean callVirtualBase) {
createIndentation();
ofs.println("</struc:MethodGeneric>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.struc.Module Module} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Module node, boolean callVirtualBase) {
createIndentation();
ofs.print("<struc:Module");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.struc.Module Module} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Module node, boolean callVirtualBase) {
createIndentation();
ofs.println("</struc:Module>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.struc.ModuleDeclaration ModuleDeclaration} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(ModuleDeclaration node, boolean callVirtualBase) {
createIndentation();
ofs.print("<struc:ModuleDeclaration");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.struc.ModuleDeclaration ModuleDeclaration} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ModuleDeclaration node, boolean callVirtualBase) {
createIndentation();
ofs.println("</struc:ModuleDeclaration>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.struc.Package Package} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Package node, boolean callVirtualBase) {
createIndentation();
ofs.print("<struc:Package");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.struc.Package Package} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Package node, boolean callVirtualBase) {
createIndentation();
ofs.println("</struc:Package>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.struc.PackageDeclaration PackageDeclaration} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(PackageDeclaration node, boolean callVirtualBase) {
createIndentation();
ofs.print("<struc:PackageDeclaration");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.struc.PackageDeclaration PackageDeclaration} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(PackageDeclaration node, boolean callVirtualBase) {
createIndentation();
ofs.println("</struc:PackageDeclaration>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.struc.Parameter Parameter} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Parameter node, boolean callVirtualBase) {
createIndentation();
ofs.print("<struc:Parameter");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.struc.Parameter Parameter} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Parameter node, boolean callVirtualBase) {
createIndentation();
ofs.println("</struc:Parameter>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.struc.StaticInitializerBlock StaticInitializerBlock} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(StaticInitializerBlock node, boolean callVirtualBase) {
createIndentation();
ofs.print("<struc:StaticInitializerBlock");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.struc.StaticInitializerBlock StaticInitializerBlock} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(StaticInitializerBlock node, boolean callVirtualBase) {
createIndentation();
ofs.println("</struc:StaticInitializerBlock>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.struc.TypeParameter TypeParameter} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(TypeParameter node, boolean callVirtualBase) {
createIndentation();
ofs.print("<struc:TypeParameter");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.struc.TypeParameter TypeParameter} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(TypeParameter node, boolean callVirtualBase) {
createIndentation();
ofs.println("</struc:TypeParameter>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.struc.Variable Variable} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(Variable node, boolean callVirtualBase) {
createIndentation();
ofs.print("<struc:Variable");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.struc.Variable Variable} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(Variable node, boolean callVirtualBase) {
createIndentation();
ofs.println("</struc:Variable>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.type.ArrayType ArrayType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(ArrayType node, boolean callVirtualBase) {
createIndentation();
ofs.print("<type:ArrayType");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.type.ArrayType ArrayType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ArrayType node, boolean callVirtualBase) {
createIndentation();
ofs.println("</type:ArrayType>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.type.BooleanType BooleanType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(BooleanType node, boolean callVirtualBase) {
createIndentation();
ofs.print("<type:BooleanType");
writeAttributes(node, true);
ofs.println("/>");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.type.BooleanType BooleanType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(BooleanType node, boolean callVirtualBase) {
}
/**
* Writes the XML representation of the {@link columbus.java.asg.type.ByteType ByteType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(ByteType node, boolean callVirtualBase) {
createIndentation();
ofs.print("<type:ByteType");
writeAttributes(node, true);
ofs.println("/>");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.type.ByteType ByteType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ByteType node, boolean callVirtualBase) {
}
/**
* Writes the XML representation of the {@link columbus.java.asg.type.CharType CharType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(CharType node, boolean callVirtualBase) {
createIndentation();
ofs.print("<type:CharType");
writeAttributes(node, true);
ofs.println("/>");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.type.CharType CharType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(CharType node, boolean callVirtualBase) {
}
/**
* Writes the XML representation of the {@link columbus.java.asg.type.ClassType ClassType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(ClassType node, boolean callVirtualBase) {
createIndentation();
ofs.print("<type:ClassType");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.type.ClassType ClassType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ClassType node, boolean callVirtualBase) {
createIndentation();
ofs.println("</type:ClassType>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.type.DoubleType DoubleType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(DoubleType node, boolean callVirtualBase) {
createIndentation();
ofs.print("<type:DoubleType");
writeAttributes(node, true);
ofs.println("/>");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.type.DoubleType DoubleType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(DoubleType node, boolean callVirtualBase) {
}
/**
* Writes the XML representation of the {@link columbus.java.asg.type.ErrorType ErrorType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(ErrorType node, boolean callVirtualBase) {
createIndentation();
ofs.print("<type:ErrorType");
writeAttributes(node, true);
ofs.println("/>");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.type.ErrorType ErrorType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ErrorType node, boolean callVirtualBase) {
}
/**
* Writes the XML representation of the {@link columbus.java.asg.type.FloatType FloatType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(FloatType node, boolean callVirtualBase) {
createIndentation();
ofs.print("<type:FloatType");
writeAttributes(node, true);
ofs.println("/>");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.type.FloatType FloatType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(FloatType node, boolean callVirtualBase) {
}
/**
* Writes the XML representation of the {@link columbus.java.asg.type.IntType IntType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(IntType node, boolean callVirtualBase) {
createIndentation();
ofs.print("<type:IntType");
writeAttributes(node, true);
ofs.println("/>");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.type.IntType IntType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(IntType node, boolean callVirtualBase) {
}
/**
* Writes the XML representation of the {@link columbus.java.asg.type.IntersectionType IntersectionType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(IntersectionType node, boolean callVirtualBase) {
createIndentation();
ofs.print("<type:IntersectionType");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.type.IntersectionType IntersectionType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(IntersectionType node, boolean callVirtualBase) {
createIndentation();
ofs.println("</type:IntersectionType>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.type.LongType LongType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(LongType node, boolean callVirtualBase) {
createIndentation();
ofs.print("<type:LongType");
writeAttributes(node, true);
ofs.println("/>");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.type.LongType LongType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(LongType node, boolean callVirtualBase) {
}
/**
* Writes the XML representation of the {@link columbus.java.asg.type.LowerBoundedWildcardType LowerBoundedWildcardType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(LowerBoundedWildcardType node, boolean callVirtualBase) {
createIndentation();
ofs.print("<type:LowerBoundedWildcardType");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.type.LowerBoundedWildcardType LowerBoundedWildcardType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(LowerBoundedWildcardType node, boolean callVirtualBase) {
createIndentation();
ofs.println("</type:LowerBoundedWildcardType>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.type.MethodType MethodType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(MethodType node, boolean callVirtualBase) {
createIndentation();
ofs.print("<type:MethodType");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.type.MethodType MethodType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(MethodType node, boolean callVirtualBase) {
createIndentation();
ofs.println("</type:MethodType>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.type.ModuleType ModuleType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(ModuleType node, boolean callVirtualBase) {
createIndentation();
ofs.print("<type:ModuleType");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.type.ModuleType ModuleType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ModuleType node, boolean callVirtualBase) {
createIndentation();
ofs.println("</type:ModuleType>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.type.NoType NoType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(NoType node, boolean callVirtualBase) {
createIndentation();
ofs.print("<type:NoType");
writeAttributes(node, true);
ofs.println("/>");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.type.NoType NoType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(NoType node, boolean callVirtualBase) {
}
/**
* Writes the XML representation of the {@link columbus.java.asg.type.NullType NullType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(NullType node, boolean callVirtualBase) {
createIndentation();
ofs.print("<type:NullType");
writeAttributes(node, true);
ofs.println("/>");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.type.NullType NullType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(NullType node, boolean callVirtualBase) {
}
/**
* Writes the XML representation of the {@link columbus.java.asg.type.PackageType PackageType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(PackageType node, boolean callVirtualBase) {
createIndentation();
ofs.print("<type:PackageType");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.type.PackageType PackageType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(PackageType node, boolean callVirtualBase) {
createIndentation();
ofs.println("</type:PackageType>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.type.ParameterizedType ParameterizedType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(ParameterizedType node, boolean callVirtualBase) {
createIndentation();
ofs.print("<type:ParameterizedType");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.type.ParameterizedType ParameterizedType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ParameterizedType node, boolean callVirtualBase) {
createIndentation();
ofs.println("</type:ParameterizedType>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.type.ShortType ShortType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(ShortType node, boolean callVirtualBase) {
createIndentation();
ofs.print("<type:ShortType");
writeAttributes(node, true);
ofs.println("/>");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.type.ShortType ShortType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(ShortType node, boolean callVirtualBase) {
}
/**
* Writes the XML representation of the {@link columbus.java.asg.type.TypeVariable TypeVariable} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(TypeVariable node, boolean callVirtualBase) {
createIndentation();
ofs.print("<type:TypeVariable");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.type.TypeVariable TypeVariable} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(TypeVariable node, boolean callVirtualBase) {
createIndentation();
ofs.println("</type:TypeVariable>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.type.UnboundedWildcardType UnboundedWildcardType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(UnboundedWildcardType node, boolean callVirtualBase) {
createIndentation();
ofs.print("<type:UnboundedWildcardType");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.type.UnboundedWildcardType UnboundedWildcardType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(UnboundedWildcardType node, boolean callVirtualBase) {
createIndentation();
ofs.println("</type:UnboundedWildcardType>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.type.UnionType UnionType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(UnionType node, boolean callVirtualBase) {
createIndentation();
ofs.print("<type:UnionType");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.type.UnionType UnionType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(UnionType node, boolean callVirtualBase) {
createIndentation();
ofs.println("</type:UnionType>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.type.UpperBoundedWildcardType UpperBoundedWildcardType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(UpperBoundedWildcardType node, boolean callVirtualBase) {
createIndentation();
ofs.print("<type:UpperBoundedWildcardType");
writeAttributes(node, true);
ofs.println(">");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.type.UpperBoundedWildcardType UpperBoundedWildcardType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(UpperBoundedWildcardType node, boolean callVirtualBase) {
createIndentation();
ofs.println("</type:UpperBoundedWildcardType>");
}
/**
* Writes the XML representation of the {@link columbus.java.asg.type.VoidType VoidType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visit(VoidType node, boolean callVirtualBase) {
createIndentation();
ofs.print("<type:VoidType");
writeAttributes(node, true);
ofs.println("/>");
writeCompositeAttributes(node, true);
}
/**
* Writes the end part of XML representation of the {@link columbus.java.asg.type.VoidType VoidType} node into the output file.
* @param node The node which is visited.
* @param callVirtualBase Helper flag which determines whether to call overloaded methods for virtual base classes. Methods for non-virtual base classes are called directly.
*/
@Override
public void visitEnd(VoidType node, boolean callVirtualBase) {
}
/**
* Writes the XML representation of the 'comments' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitCommentable_Comments(Commentable begin, Comment end) {
createIndentation();
ofs.print("<Commentable_Comments ref='");
if (!noId)
ofs.print("id" + end.getId());
ofs.println("'/>");
}
/**
* Writes the end part of XML representation of the 'comments' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndCommentable_Comments(Commentable begin, Comment end) {
}
/**
* Writes the XML representation of the 'hasAnnotations' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitAnnotatedTypeExpression_HasAnnotations(AnnotatedTypeExpression begin, Annotation end) {
createIndentation();
ofs.println("<AnnotatedTypeExpression_HasAnnotations>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasAnnotations' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndAnnotatedTypeExpression_HasAnnotations(AnnotatedTypeExpression begin, Annotation end) {
decDepth();
createIndentation();
ofs.println("</AnnotatedTypeExpression_HasAnnotations>");
}
/**
* Writes the XML representation of the 'hasUnderlyingType' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitAnnotatedTypeExpression_HasUnderlyingType(AnnotatedTypeExpression begin, TypeExpression end) {
createIndentation();
ofs.println("<AnnotatedTypeExpression_HasUnderlyingType>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasUnderlyingType' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndAnnotatedTypeExpression_HasUnderlyingType(AnnotatedTypeExpression begin, TypeExpression end) {
decDepth();
createIndentation();
ofs.println("</AnnotatedTypeExpression_HasUnderlyingType>");
}
/**
* Writes the XML representation of the 'hasAnnotationName' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitAnnotation_HasAnnotationName(Annotation begin, TypeExpression end) {
createIndentation();
ofs.println("<Annotation_HasAnnotationName>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasAnnotationName' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndAnnotation_HasAnnotationName(Annotation begin, TypeExpression end) {
decDepth();
createIndentation();
ofs.println("</Annotation_HasAnnotationName>");
}
/**
* Writes the XML representation of the 'hasComponentType' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitArrayTypeExpression_HasComponentType(ArrayTypeExpression begin, TypeExpression end) {
createIndentation();
ofs.println("<ArrayTypeExpression_HasComponentType>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasComponentType' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndArrayTypeExpression_HasComponentType(ArrayTypeExpression begin, TypeExpression end) {
decDepth();
createIndentation();
ofs.println("</ArrayTypeExpression_HasComponentType>");
}
/**
* Writes the XML representation of the 'hasLeftOperand' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitBinary_HasLeftOperand(Binary begin, Expression end) {
createIndentation();
ofs.println("<Binary_HasLeftOperand>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasLeftOperand' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndBinary_HasLeftOperand(Binary begin, Expression end) {
decDepth();
createIndentation();
ofs.println("</Binary_HasLeftOperand>");
}
/**
* Writes the XML representation of the 'hasRightOperand' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitBinary_HasRightOperand(Binary begin, Expression end) {
createIndentation();
ofs.println("<Binary_HasRightOperand>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasRightOperand' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndBinary_HasRightOperand(Binary begin, Expression end) {
decDepth();
createIndentation();
ofs.println("</Binary_HasRightOperand>");
}
/**
* Writes the XML representation of the 'hasComponentType' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitClassLiteral_HasComponentType(ClassLiteral begin, TypeExpression end) {
createIndentation();
ofs.println("<ClassLiteral_HasComponentType>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasComponentType' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndClassLiteral_HasComponentType(ClassLiteral begin, TypeExpression end) {
decDepth();
createIndentation();
ofs.println("</ClassLiteral_HasComponentType>");
}
/**
* Writes the XML representation of the 'hasCondition' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitConditional_HasCondition(Conditional begin, Expression end) {
createIndentation();
ofs.println("<Conditional_HasCondition>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasCondition' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndConditional_HasCondition(Conditional begin, Expression end) {
decDepth();
createIndentation();
ofs.println("</Conditional_HasCondition>");
}
/**
* Writes the XML representation of the 'hasTrueExpression' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitConditional_HasTrueExpression(Conditional begin, Expression end) {
createIndentation();
ofs.println("<Conditional_HasTrueExpression>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasTrueExpression' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndConditional_HasTrueExpression(Conditional begin, Expression end) {
decDepth();
createIndentation();
ofs.println("</Conditional_HasTrueExpression>");
}
/**
* Writes the XML representation of the 'hasFalseExpression' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitConditional_HasFalseExpression(Conditional begin, Expression end) {
createIndentation();
ofs.println("<Conditional_HasFalseExpression>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasFalseExpression' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndConditional_HasFalseExpression(Conditional begin, Expression end) {
decDepth();
createIndentation();
ofs.println("</Conditional_HasFalseExpression>");
}
/**
* Writes the XML representation of the 'hasErrors' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitErroneous_HasErrors(Erroneous begin, Positioned end) {
createIndentation();
ofs.println("<Erroneous_HasErrors>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasErrors' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndErroneous_HasErrors(Erroneous begin, Positioned end) {
decDepth();
createIndentation();
ofs.println("</Erroneous_HasErrors>");
}
/**
* Writes the XML representation of the 'hasErrors' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitErroneousTypeExpression_HasErrors(ErroneousTypeExpression begin, Positioned end) {
createIndentation();
ofs.println("<ErroneousTypeExpression_HasErrors>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasErrors' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndErroneousTypeExpression_HasErrors(ErroneousTypeExpression begin, Positioned end) {
decDepth();
createIndentation();
ofs.println("</ErroneousTypeExpression_HasErrors>");
}
/**
* Writes the XML representation of the 'type' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitExpression_Type(Expression begin, Type end) {
createIndentation();
ofs.print("<Expression_Type ref='");
if (!noId)
ofs.print("id" + end.getId());
ofs.println("'/>");
}
/**
* Writes the end part of XML representation of the 'type' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndExpression_Type(Expression begin, Type end) {
}
/**
* Writes the XML representation of the 'target' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitFunctionalExpression_Target(FunctionalExpression begin, Type end) {
createIndentation();
ofs.print("<FunctionalExpression_Target ref='");
if (!noId)
ofs.print("id" + end.getId());
ofs.println("'/>");
}
/**
* Writes the end part of XML representation of the 'target' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndFunctionalExpression_Target(FunctionalExpression begin, Type end) {
}
/**
* Writes the XML representation of the 'refersTo' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitIdentifier_RefersTo(Identifier begin, Named end) {
createIndentation();
ofs.print("<Identifier_RefersTo ref='");
if (!noId)
ofs.print("id" + end.getId());
ofs.println("'/>");
}
/**
* Writes the end part of XML representation of the 'refersTo' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndIdentifier_RefersTo(Identifier begin, Named end) {
}
/**
* Writes the XML representation of the 'hasTypeOperand' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitInstanceOf_HasTypeOperand(InstanceOf begin, TypeExpression end) {
createIndentation();
ofs.println("<InstanceOf_HasTypeOperand>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasTypeOperand' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndInstanceOf_HasTypeOperand(InstanceOf begin, TypeExpression end) {
decDepth();
createIndentation();
ofs.println("</InstanceOf_HasTypeOperand>");
}
/**
* Writes the XML representation of the 'hasParameters' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitLambda_HasParameters(Lambda begin, Parameter end) {
createIndentation();
ofs.println("<Lambda_HasParameters>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasParameters' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndLambda_HasParameters(Lambda begin, Parameter end) {
decDepth();
createIndentation();
ofs.println("</Lambda_HasParameters>");
}
/**
* Writes the XML representation of the 'hasBody' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitLambda_HasBody(Lambda begin, Positioned end) {
createIndentation();
ofs.println("<Lambda_HasBody>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasBody' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndLambda_HasBody(Lambda begin, Positioned end) {
decDepth();
createIndentation();
ofs.println("</Lambda_HasBody>");
}
/**
* Writes the XML representation of the 'hasQualifierExpression' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitMemberReference_HasQualifierExpression(MemberReference begin, Expression end) {
createIndentation();
ofs.println("<MemberReference_HasQualifierExpression>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasQualifierExpression' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndMemberReference_HasQualifierExpression(MemberReference begin, Expression end) {
decDepth();
createIndentation();
ofs.println("</MemberReference_HasQualifierExpression>");
}
/**
* Writes the XML representation of the 'hasTypeArguments' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitMemberReference_HasTypeArguments(MemberReference begin, TypeExpression end) {
createIndentation();
ofs.println("<MemberReference_HasTypeArguments>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasTypeArguments' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndMemberReference_HasTypeArguments(MemberReference begin, TypeExpression end) {
decDepth();
createIndentation();
ofs.println("</MemberReference_HasTypeArguments>");
}
/**
* Writes the XML representation of the 'referredMethod' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitMemberReference_ReferredMethod(MemberReference begin, MethodDeclaration end) {
createIndentation();
ofs.print("<MemberReference_ReferredMethod ref='");
if (!noId)
ofs.print("id" + end.getId());
ofs.println("'/>");
}
/**
* Writes the end part of XML representation of the 'referredMethod' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndMemberReference_ReferredMethod(MemberReference begin, MethodDeclaration end) {
}
/**
* Writes the XML representation of the 'hasTypeArguments' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitMethodInvocation_HasTypeArguments(MethodInvocation begin, TypeExpression end) {
createIndentation();
ofs.println("<MethodInvocation_HasTypeArguments>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasTypeArguments' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndMethodInvocation_HasTypeArguments(MethodInvocation begin, TypeExpression end) {
decDepth();
createIndentation();
ofs.println("</MethodInvocation_HasTypeArguments>");
}
/**
* Writes the XML representation of the 'hasArguments' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitMethodInvocation_HasArguments(MethodInvocation begin, Expression end) {
createIndentation();
ofs.println("<MethodInvocation_HasArguments>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasArguments' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndMethodInvocation_HasArguments(MethodInvocation begin, Expression end) {
decDepth();
createIndentation();
ofs.println("</MethodInvocation_HasArguments>");
}
/**
* Writes the XML representation of the 'invokes' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitMethodInvocation_Invokes(MethodInvocation begin, MethodDeclaration end) {
createIndentation();
ofs.print("<MethodInvocation_Invokes ref='");
if (!noId)
ofs.print("id" + end.getId());
ofs.println("'/>");
}
/**
* Writes the end part of XML representation of the 'invokes' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndMethodInvocation_Invokes(MethodInvocation begin, MethodDeclaration end) {
}
/**
* Writes the XML representation of the 'hasComponentType' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitNewArray_HasComponentType(NewArray begin, TypeExpression end) {
createIndentation();
ofs.println("<NewArray_HasComponentType>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasComponentType' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndNewArray_HasComponentType(NewArray begin, TypeExpression end) {
decDepth();
createIndentation();
ofs.println("</NewArray_HasComponentType>");
}
/**
* Writes the XML representation of the 'hasDimensions' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitNewArray_HasDimensions(NewArray begin, Expression end) {
createIndentation();
ofs.println("<NewArray_HasDimensions>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasDimensions' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndNewArray_HasDimensions(NewArray begin, Expression end) {
decDepth();
createIndentation();
ofs.println("</NewArray_HasDimensions>");
}
/**
* Writes the XML representation of the 'hasInitializers' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitNewArray_HasInitializers(NewArray begin, Expression end) {
createIndentation();
ofs.println("<NewArray_HasInitializers>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasInitializers' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndNewArray_HasInitializers(NewArray begin, Expression end) {
decDepth();
createIndentation();
ofs.println("</NewArray_HasInitializers>");
}
/**
* Writes the XML representation of the 'hasEnclosingExpression' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitNewClass_HasEnclosingExpression(NewClass begin, Expression end) {
createIndentation();
ofs.println("<NewClass_HasEnclosingExpression>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasEnclosingExpression' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndNewClass_HasEnclosingExpression(NewClass begin, Expression end) {
decDepth();
createIndentation();
ofs.println("</NewClass_HasEnclosingExpression>");
}
/**
* Writes the XML representation of the 'hasTypeArguments' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitNewClass_HasTypeArguments(NewClass begin, TypeExpression end) {
createIndentation();
ofs.println("<NewClass_HasTypeArguments>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasTypeArguments' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndNewClass_HasTypeArguments(NewClass begin, TypeExpression end) {
decDepth();
createIndentation();
ofs.println("</NewClass_HasTypeArguments>");
}
/**
* Writes the XML representation of the 'hasTypeName' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitNewClass_HasTypeName(NewClass begin, TypeExpression end) {
createIndentation();
ofs.println("<NewClass_HasTypeName>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasTypeName' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndNewClass_HasTypeName(NewClass begin, TypeExpression end) {
decDepth();
createIndentation();
ofs.println("</NewClass_HasTypeName>");
}
/**
* Writes the XML representation of the 'hasArguments' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitNewClass_HasArguments(NewClass begin, Expression end) {
createIndentation();
ofs.println("<NewClass_HasArguments>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasArguments' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndNewClass_HasArguments(NewClass begin, Expression end) {
decDepth();
createIndentation();
ofs.println("</NewClass_HasArguments>");
}
/**
* Writes the XML representation of the 'hasAnonymousClass' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitNewClass_HasAnonymousClass(NewClass begin, AnonymousClass end) {
createIndentation();
ofs.println("<NewClass_HasAnonymousClass>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasAnonymousClass' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndNewClass_HasAnonymousClass(NewClass begin, AnonymousClass end) {
decDepth();
createIndentation();
ofs.println("</NewClass_HasAnonymousClass>");
}
/**
* Writes the XML representation of the 'constructor' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitNewClass_Constructor(NewClass begin, NormalMethod end) {
createIndentation();
ofs.print("<NewClass_Constructor ref='");
if (!noId)
ofs.print("id" + end.getId());
ofs.println("'/>");
}
/**
* Writes the end part of XML representation of the 'constructor' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndNewClass_Constructor(NewClass begin, NormalMethod end) {
}
/**
* Writes the XML representation of the 'hasArguments' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitNormalAnnotation_HasArguments(NormalAnnotation begin, Expression end) {
createIndentation();
ofs.println("<NormalAnnotation_HasArguments>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasArguments' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndNormalAnnotation_HasArguments(NormalAnnotation begin, Expression end) {
decDepth();
createIndentation();
ofs.println("</NormalAnnotation_HasArguments>");
}
/**
* Writes the XML representation of the 'hasQualifierType' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitQualifiedTypeExpression_HasQualifierType(QualifiedTypeExpression begin, TypeExpression end) {
createIndentation();
ofs.println("<QualifiedTypeExpression_HasQualifierType>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasQualifierType' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndQualifiedTypeExpression_HasQualifierType(QualifiedTypeExpression begin, TypeExpression end) {
decDepth();
createIndentation();
ofs.println("</QualifiedTypeExpression_HasQualifierType>");
}
/**
* Writes the XML representation of the 'hasSimpleType' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitQualifiedTypeExpression_HasSimpleType(QualifiedTypeExpression begin, SimpleTypeExpression end) {
createIndentation();
ofs.println("<QualifiedTypeExpression_HasSimpleType>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasSimpleType' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndQualifiedTypeExpression_HasSimpleType(QualifiedTypeExpression begin, SimpleTypeExpression end) {
decDepth();
createIndentation();
ofs.println("</QualifiedTypeExpression_HasSimpleType>");
}
/**
* Writes the XML representation of the 'hasArgument' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitSingleElementAnnotation_HasArgument(SingleElementAnnotation begin, Expression end) {
createIndentation();
ofs.println("<SingleElementAnnotation_HasArgument>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasArgument' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndSingleElementAnnotation_HasArgument(SingleElementAnnotation begin, Expression end) {
decDepth();
createIndentation();
ofs.println("</SingleElementAnnotation_HasArgument>");
}
/**
* Writes the XML representation of the 'hasRawType' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitTypeApplyExpression_HasRawType(TypeApplyExpression begin, TypeExpression end) {
createIndentation();
ofs.println("<TypeApplyExpression_HasRawType>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasRawType' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndTypeApplyExpression_HasRawType(TypeApplyExpression begin, TypeExpression end) {
decDepth();
createIndentation();
ofs.println("</TypeApplyExpression_HasRawType>");
}
/**
* Writes the XML representation of the 'hasTypeArguments' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitTypeApplyExpression_HasTypeArguments(TypeApplyExpression begin, TypeExpression end) {
createIndentation();
ofs.println("<TypeApplyExpression_HasTypeArguments>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasTypeArguments' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndTypeApplyExpression_HasTypeArguments(TypeApplyExpression begin, TypeExpression end) {
decDepth();
createIndentation();
ofs.println("</TypeApplyExpression_HasTypeArguments>");
}
/**
* Writes the XML representation of the 'hasTypeOperand' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitTypeCast_HasTypeOperand(TypeCast begin, TypeExpression end) {
createIndentation();
ofs.println("<TypeCast_HasTypeOperand>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasTypeOperand' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndTypeCast_HasTypeOperand(TypeCast begin, TypeExpression end) {
decDepth();
createIndentation();
ofs.println("</TypeCast_HasTypeOperand>");
}
/**
* Writes the XML representation of the 'hasBounds' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitTypeIntersectionExpression_HasBounds(TypeIntersectionExpression begin, TypeExpression end) {
createIndentation();
ofs.println("<TypeIntersectionExpression_HasBounds>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasBounds' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndTypeIntersectionExpression_HasBounds(TypeIntersectionExpression begin, TypeExpression end) {
decDepth();
createIndentation();
ofs.println("</TypeIntersectionExpression_HasBounds>");
}
/**
* Writes the XML representation of the 'hasAlternatives' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitTypeUnionExpression_HasAlternatives(TypeUnionExpression begin, TypeExpression end) {
createIndentation();
ofs.println("<TypeUnionExpression_HasAlternatives>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasAlternatives' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndTypeUnionExpression_HasAlternatives(TypeUnionExpression begin, TypeExpression end) {
decDepth();
createIndentation();
ofs.println("</TypeUnionExpression_HasAlternatives>");
}
/**
* Writes the XML representation of the 'hasOperand' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitUnary_HasOperand(Unary begin, Expression end) {
createIndentation();
ofs.println("<Unary_HasOperand>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasOperand' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndUnary_HasOperand(Unary begin, Expression end) {
decDepth();
createIndentation();
ofs.println("</Unary_HasOperand>");
}
/**
* Writes the XML representation of the 'hasBound' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitWildcardExpression_HasBound(WildcardExpression begin, TypeExpression end) {
createIndentation();
ofs.println("<WildcardExpression_HasBound>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasBound' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndWildcardExpression_HasBound(WildcardExpression begin, TypeExpression end) {
decDepth();
createIndentation();
ofs.println("</WildcardExpression_HasBound>");
}
/**
* Writes the XML representation of the 'hasPackageName' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitExports_HasPackageName(Exports begin, Expression end) {
createIndentation();
ofs.println("<Exports_HasPackageName>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasPackageName' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndExports_HasPackageName(Exports begin, Expression end) {
decDepth();
createIndentation();
ofs.println("</Exports_HasPackageName>");
}
/**
* Writes the XML representation of the 'hasModuleNames' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitExports_HasModuleNames(Exports begin, Expression end) {
createIndentation();
ofs.println("<Exports_HasModuleNames>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasModuleNames' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndExports_HasModuleNames(Exports begin, Expression end) {
decDepth();
createIndentation();
ofs.println("</Exports_HasModuleNames>");
}
/**
* Writes the XML representation of the 'hasPackageName' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitOpens_HasPackageName(Opens begin, Expression end) {
createIndentation();
ofs.println("<Opens_HasPackageName>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasPackageName' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndOpens_HasPackageName(Opens begin, Expression end) {
decDepth();
createIndentation();
ofs.println("</Opens_HasPackageName>");
}
/**
* Writes the XML representation of the 'hasModuleNames' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitOpens_HasModuleNames(Opens begin, Expression end) {
createIndentation();
ofs.println("<Opens_HasModuleNames>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasModuleNames' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndOpens_HasModuleNames(Opens begin, Expression end) {
decDepth();
createIndentation();
ofs.println("</Opens_HasModuleNames>");
}
/**
* Writes the XML representation of the 'hasServiceName' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitProvides_HasServiceName(Provides begin, Expression end) {
createIndentation();
ofs.println("<Provides_HasServiceName>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasServiceName' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndProvides_HasServiceName(Provides begin, Expression end) {
decDepth();
createIndentation();
ofs.println("</Provides_HasServiceName>");
}
/**
* Writes the XML representation of the 'hasImplementationNames' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitProvides_HasImplementationNames(Provides begin, Expression end) {
createIndentation();
ofs.println("<Provides_HasImplementationNames>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasImplementationNames' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndProvides_HasImplementationNames(Provides begin, Expression end) {
decDepth();
createIndentation();
ofs.println("</Provides_HasImplementationNames>");
}
/**
* Writes the XML representation of the 'hasModuleName' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitRequires_HasModuleName(Requires begin, Expression end) {
createIndentation();
ofs.println("<Requires_HasModuleName>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasModuleName' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndRequires_HasModuleName(Requires begin, Expression end) {
decDepth();
createIndentation();
ofs.println("</Requires_HasModuleName>");
}
/**
* Writes the XML representation of the 'hasServiceName' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitUses_HasServiceName(Uses begin, Expression end) {
createIndentation();
ofs.println("<Uses_HasServiceName>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasServiceName' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndUses_HasServiceName(Uses begin, Expression end) {
decDepth();
createIndentation();
ofs.println("</Uses_HasServiceName>");
}
/**
* Writes the XML representation of the 'hasCondition' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitAssert_HasCondition(Assert begin, Expression end) {
createIndentation();
ofs.println("<Assert_HasCondition>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasCondition' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndAssert_HasCondition(Assert begin, Expression end) {
decDepth();
createIndentation();
ofs.println("</Assert_HasCondition>");
}
/**
* Writes the XML representation of the 'hasDetail' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitAssert_HasDetail(Assert begin, Expression end) {
createIndentation();
ofs.println("<Assert_HasDetail>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasDetail' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndAssert_HasDetail(Assert begin, Expression end) {
decDepth();
createIndentation();
ofs.println("</Assert_HasDetail>");
}
/**
* Writes the XML representation of the 'hasInitializers' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitBasicFor_HasInitializers(BasicFor begin, Statement end) {
createIndentation();
ofs.println("<BasicFor_HasInitializers>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasInitializers' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndBasicFor_HasInitializers(BasicFor begin, Statement end) {
decDepth();
createIndentation();
ofs.println("</BasicFor_HasInitializers>");
}
/**
* Writes the XML representation of the 'hasCondition' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitBasicFor_HasCondition(BasicFor begin, Expression end) {
createIndentation();
ofs.println("<BasicFor_HasCondition>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasCondition' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndBasicFor_HasCondition(BasicFor begin, Expression end) {
decDepth();
createIndentation();
ofs.println("</BasicFor_HasCondition>");
}
/**
* Writes the XML representation of the 'hasUpdates' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitBasicFor_HasUpdates(BasicFor begin, Statement end) {
createIndentation();
ofs.println("<BasicFor_HasUpdates>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasUpdates' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndBasicFor_HasUpdates(BasicFor begin, Statement end) {
decDepth();
createIndentation();
ofs.println("</BasicFor_HasUpdates>");
}
/**
* Writes the XML representation of the 'hasStatements' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitBlock_HasStatements(Block begin, Statement end) {
createIndentation();
ofs.println("<Block_HasStatements>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasStatements' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndBlock_HasStatements(Block begin, Statement end) {
decDepth();
createIndentation();
ofs.println("</Block_HasStatements>");
}
/**
* Writes the XML representation of the 'hasExpression' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitCase_HasExpression(Case begin, Expression end) {
createIndentation();
ofs.println("<Case_HasExpression>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasExpression' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndCase_HasExpression(Case begin, Expression end) {
decDepth();
createIndentation();
ofs.println("</Case_HasExpression>");
}
/**
* Writes the XML representation of the 'hasCondition' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitDo_HasCondition(Do begin, Expression end) {
createIndentation();
ofs.println("<Do_HasCondition>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasCondition' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndDo_HasCondition(Do begin, Expression end) {
decDepth();
createIndentation();
ofs.println("</Do_HasCondition>");
}
/**
* Writes the XML representation of the 'hasParameter' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEnhancedFor_HasParameter(EnhancedFor begin, Parameter end) {
createIndentation();
ofs.println("<EnhancedFor_HasParameter>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasParameter' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndEnhancedFor_HasParameter(EnhancedFor begin, Parameter end) {
decDepth();
createIndentation();
ofs.println("</EnhancedFor_HasParameter>");
}
/**
* Writes the XML representation of the 'hasExpression' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEnhancedFor_HasExpression(EnhancedFor begin, Expression end) {
createIndentation();
ofs.println("<EnhancedFor_HasExpression>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasExpression' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndEnhancedFor_HasExpression(EnhancedFor begin, Expression end) {
decDepth();
createIndentation();
ofs.println("</EnhancedFor_HasExpression>");
}
/**
* Writes the XML representation of the 'hasExpression' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitExpressionStatement_HasExpression(ExpressionStatement begin, Expression end) {
createIndentation();
ofs.println("<ExpressionStatement_HasExpression>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasExpression' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndExpressionStatement_HasExpression(ExpressionStatement begin, Expression end) {
decDepth();
createIndentation();
ofs.println("</ExpressionStatement_HasExpression>");
}
/**
* Writes the XML representation of the 'hasParameter' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitHandler_HasParameter(Handler begin, Parameter end) {
createIndentation();
ofs.println("<Handler_HasParameter>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasParameter' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndHandler_HasParameter(Handler begin, Parameter end) {
decDepth();
createIndentation();
ofs.println("</Handler_HasParameter>");
}
/**
* Writes the XML representation of the 'hasBlock' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitHandler_HasBlock(Handler begin, Block end) {
createIndentation();
ofs.println("<Handler_HasBlock>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasBlock' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndHandler_HasBlock(Handler begin, Block end) {
decDepth();
createIndentation();
ofs.println("</Handler_HasBlock>");
}
/**
* Writes the XML representation of the 'hasSubstatement' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitIf_HasSubstatement(If begin, Statement end) {
createIndentation();
ofs.println("<If_HasSubstatement>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasSubstatement' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndIf_HasSubstatement(If begin, Statement end) {
decDepth();
createIndentation();
ofs.println("</If_HasSubstatement>");
}
/**
* Writes the XML representation of the 'hasFalseSubstatement' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitIf_HasFalseSubstatement(If begin, Statement end) {
createIndentation();
ofs.println("<If_HasFalseSubstatement>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasFalseSubstatement' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndIf_HasFalseSubstatement(If begin, Statement end) {
decDepth();
createIndentation();
ofs.println("</If_HasFalseSubstatement>");
}
/**
* Writes the XML representation of the 'hasSubstatement' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitIteration_HasSubstatement(Iteration begin, Statement end) {
createIndentation();
ofs.println("<Iteration_HasSubstatement>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasSubstatement' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndIteration_HasSubstatement(Iteration begin, Statement end) {
decDepth();
createIndentation();
ofs.println("</Iteration_HasSubstatement>");
}
/**
* Writes the XML representation of the 'target' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitJump_Target(Jump begin, Statement end) {
createIndentation();
ofs.print("<Jump_Target ref='");
if (!noId)
ofs.print("id" + end.getId());
ofs.println("'/>");
}
/**
* Writes the end part of XML representation of the 'target' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndJump_Target(Jump begin, Statement end) {
}
/**
* Writes the XML representation of the 'hasStatement' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitLabeledStatement_HasStatement(LabeledStatement begin, Statement end) {
createIndentation();
ofs.println("<LabeledStatement_HasStatement>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasStatement' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndLabeledStatement_HasStatement(LabeledStatement begin, Statement end) {
decDepth();
createIndentation();
ofs.println("</LabeledStatement_HasStatement>");
}
/**
* Writes the XML representation of the 'hasExpression' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitReturn_HasExpression(Return begin, Expression end) {
createIndentation();
ofs.println("<Return_HasExpression>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasExpression' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndReturn_HasExpression(Return begin, Expression end) {
decDepth();
createIndentation();
ofs.println("</Return_HasExpression>");
}
/**
* Writes the XML representation of the 'hasCondition' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitSelection_HasCondition(Selection begin, Expression end) {
createIndentation();
ofs.println("<Selection_HasCondition>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasCondition' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndSelection_HasCondition(Selection begin, Expression end) {
decDepth();
createIndentation();
ofs.println("</Selection_HasCondition>");
}
/**
* Writes the XML representation of the 'hasCases' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitSwitch_HasCases(Switch begin, SwitchLabel end) {
createIndentation();
ofs.println("<Switch_HasCases>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasCases' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndSwitch_HasCases(Switch begin, SwitchLabel end) {
decDepth();
createIndentation();
ofs.println("</Switch_HasCases>");
}
/**
* Writes the XML representation of the 'hasStatements' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitSwitchLabel_HasStatements(SwitchLabel begin, Statement end) {
createIndentation();
ofs.println("<SwitchLabel_HasStatements>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasStatements' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndSwitchLabel_HasStatements(SwitchLabel begin, Statement end) {
decDepth();
createIndentation();
ofs.println("</SwitchLabel_HasStatements>");
}
/**
* Writes the XML representation of the 'hasLock' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitSynchronized_HasLock(Synchronized begin, Expression end) {
createIndentation();
ofs.println("<Synchronized_HasLock>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasLock' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndSynchronized_HasLock(Synchronized begin, Expression end) {
decDepth();
createIndentation();
ofs.println("</Synchronized_HasLock>");
}
/**
* Writes the XML representation of the 'hasBlock' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitSynchronized_HasBlock(Synchronized begin, Block end) {
createIndentation();
ofs.println("<Synchronized_HasBlock>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasBlock' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndSynchronized_HasBlock(Synchronized begin, Block end) {
decDepth();
createIndentation();
ofs.println("</Synchronized_HasBlock>");
}
/**
* Writes the XML representation of the 'hasExpression' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitThrow_HasExpression(Throw begin, Expression end) {
createIndentation();
ofs.println("<Throw_HasExpression>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasExpression' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndThrow_HasExpression(Throw begin, Expression end) {
decDepth();
createIndentation();
ofs.println("</Throw_HasExpression>");
}
/**
* Writes the XML representation of the 'hasResources' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitTry_HasResources(Try begin, Base end) {
createIndentation();
ofs.println("<Try_HasResources>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasResources' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndTry_HasResources(Try begin, Base end) {
decDepth();
createIndentation();
ofs.println("</Try_HasResources>");
}
/**
* Writes the XML representation of the 'hasBlock' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitTry_HasBlock(Try begin, Block end) {
createIndentation();
ofs.println("<Try_HasBlock>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasBlock' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndTry_HasBlock(Try begin, Block end) {
decDepth();
createIndentation();
ofs.println("</Try_HasBlock>");
}
/**
* Writes the XML representation of the 'hasHandlers' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitTry_HasHandlers(Try begin, Handler end) {
createIndentation();
ofs.println("<Try_HasHandlers>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasHandlers' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndTry_HasHandlers(Try begin, Handler end) {
decDepth();
createIndentation();
ofs.println("</Try_HasHandlers>");
}
/**
* Writes the XML representation of the 'hasFinallyBlock' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitTry_HasFinallyBlock(Try begin, Block end) {
createIndentation();
ofs.println("<Try_HasFinallyBlock>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasFinallyBlock' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndTry_HasFinallyBlock(Try begin, Block end) {
decDepth();
createIndentation();
ofs.println("</Try_HasFinallyBlock>");
}
/**
* Writes the XML representation of the 'hasCondition' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitWhile_HasCondition(While begin, Expression end) {
createIndentation();
ofs.println("<While_HasCondition>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasCondition' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndWhile_HasCondition(While begin, Expression end) {
decDepth();
createIndentation();
ofs.println("</While_HasCondition>");
}
/**
* Writes the XML representation of the 'hasAnnotations' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitAnnotatedElement_HasAnnotations(AnnotatedElement begin, Annotation end) {
createIndentation();
ofs.println("<AnnotatedElement_HasAnnotations>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasAnnotations' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndAnnotatedElement_HasAnnotations(AnnotatedElement begin, Annotation end) {
decDepth();
createIndentation();
ofs.println("</AnnotatedElement_HasAnnotations>");
}
/**
* Writes the XML representation of the 'hasDefaultValue' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitAnnotationTypeElement_HasDefaultValue(AnnotationTypeElement begin, Expression end) {
createIndentation();
ofs.println("<AnnotationTypeElement_HasDefaultValue>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasDefaultValue' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndAnnotationTypeElement_HasDefaultValue(AnnotationTypeElement begin, Expression end) {
decDepth();
createIndentation();
ofs.println("</AnnotationTypeElement_HasDefaultValue>");
}
/**
* Writes the XML representation of the 'hasPackageDeclaration' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitCompilationUnit_HasPackageDeclaration(CompilationUnit begin, PackageDeclaration end) {
createIndentation();
ofs.println("<CompilationUnit_HasPackageDeclaration>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasPackageDeclaration' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndCompilationUnit_HasPackageDeclaration(CompilationUnit begin, PackageDeclaration end) {
decDepth();
createIndentation();
ofs.println("</CompilationUnit_HasPackageDeclaration>");
}
/**
* Writes the XML representation of the 'hasImports' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitCompilationUnit_HasImports(CompilationUnit begin, Import end) {
createIndentation();
ofs.println("<CompilationUnit_HasImports>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasImports' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndCompilationUnit_HasImports(CompilationUnit begin, Import end) {
decDepth();
createIndentation();
ofs.println("</CompilationUnit_HasImports>");
}
/**
* Writes the XML representation of the 'hasOthers' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitCompilationUnit_HasOthers(CompilationUnit begin, Positioned end) {
createIndentation();
ofs.println("<CompilationUnit_HasOthers>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasOthers' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndCompilationUnit_HasOthers(CompilationUnit begin, Positioned end) {
decDepth();
createIndentation();
ofs.println("</CompilationUnit_HasOthers>");
}
/**
* Writes the XML representation of the 'hasModuleDeclaration' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitCompilationUnit_HasModuleDeclaration(CompilationUnit begin, ModuleDeclaration end) {
createIndentation();
ofs.println("<CompilationUnit_HasModuleDeclaration>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasModuleDeclaration' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndCompilationUnit_HasModuleDeclaration(CompilationUnit begin, ModuleDeclaration end) {
decDepth();
createIndentation();
ofs.println("</CompilationUnit_HasModuleDeclaration>");
}
/**
* Writes the XML representation of the 'typeDeclarations' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitCompilationUnit_TypeDeclarations(CompilationUnit begin, TypeDeclaration end) {
createIndentation();
ofs.print("<CompilationUnit_TypeDeclarations ref='");
if (!noId)
ofs.print("id" + end.getId());
ofs.println("'/>");
}
/**
* Writes the end part of XML representation of the 'typeDeclarations' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndCompilationUnit_TypeDeclarations(CompilationUnit begin, TypeDeclaration end) {
}
/**
* Writes the XML representation of the 'isInModule' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitCompilationUnit_IsInModule(CompilationUnit begin, Module end) {
createIndentation();
ofs.print("<CompilationUnit_IsInModule ref='");
if (!noId)
ofs.print("id" + end.getId());
ofs.println("'/>");
}
/**
* Writes the end part of XML representation of the 'isInModule' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndCompilationUnit_IsInModule(CompilationUnit begin, Module end) {
}
/**
* Writes the XML representation of the 'hasNewClass' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEnumConstant_HasNewClass(EnumConstant begin, NewClass end) {
createIndentation();
ofs.println("<EnumConstant_HasNewClass>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasNewClass' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndEnumConstant_HasNewClass(EnumConstant begin, NewClass end) {
decDepth();
createIndentation();
ofs.println("</EnumConstant_HasNewClass>");
}
/**
* Writes the XML representation of the 'hasTypeParameters' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitGenericDeclaration_HasTypeParameters(GenericDeclaration begin, TypeParameter end) {
createIndentation();
ofs.println("<GenericDeclaration_HasTypeParameters>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasTypeParameters' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndGenericDeclaration_HasTypeParameters(GenericDeclaration begin, TypeParameter end) {
decDepth();
createIndentation();
ofs.println("</GenericDeclaration_HasTypeParameters>");
}
/**
* Writes the XML representation of the 'hasTarget' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitImport_HasTarget(Import begin, Expression end) {
createIndentation();
ofs.println("<Import_HasTarget>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasTarget' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndImport_HasTarget(Import begin, Expression end) {
decDepth();
createIndentation();
ofs.println("</Import_HasTarget>");
}
/**
* Writes the XML representation of the 'hasBody' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitInitializerBlock_HasBody(InitializerBlock begin, Block end) {
createIndentation();
ofs.println("<InitializerBlock_HasBody>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasBody' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndInitializerBlock_HasBody(InitializerBlock begin, Block end) {
decDepth();
createIndentation();
ofs.println("</InitializerBlock_HasBody>");
}
/**
* Writes the XML representation of the 'hasReturnType' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitMethodDeclaration_HasReturnType(MethodDeclaration begin, TypeExpression end) {
createIndentation();
ofs.println("<MethodDeclaration_HasReturnType>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasReturnType' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndMethodDeclaration_HasReturnType(MethodDeclaration begin, TypeExpression end) {
decDepth();
createIndentation();
ofs.println("</MethodDeclaration_HasReturnType>");
}
/**
* Writes the XML representation of the 'methodType' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitMethodDeclaration_MethodType(MethodDeclaration begin, MethodType end) {
createIndentation();
ofs.print("<MethodDeclaration_MethodType ref='");
if (!noId)
ofs.print("id" + end.getId());
ofs.println("'/>");
}
/**
* Writes the end part of XML representation of the 'methodType' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndMethodDeclaration_MethodType(MethodDeclaration begin, MethodType end) {
}
/**
* Writes the XML representation of the 'overrides' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitMethodDeclaration_Overrides(MethodDeclaration begin, MethodDeclaration end) {
createIndentation();
ofs.print("<MethodDeclaration_Overrides ref='");
if (!noId)
ofs.print("id" + end.getId());
ofs.println("'/>");
}
/**
* Writes the end part of XML representation of the 'overrides' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndMethodDeclaration_Overrides(MethodDeclaration begin, MethodDeclaration end) {
}
/**
* Writes the XML representation of the 'packages' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitModule_Packages(Module begin, Package end) {
createIndentation();
ofs.print("<Module_Packages ref='");
if (!noId)
ofs.print("id" + end.getId());
ofs.println("'/>");
}
/**
* Writes the end part of XML representation of the 'packages' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndModule_Packages(Module begin, Package end) {
}
/**
* Writes the XML representation of the 'hasName' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitModuleDeclaration_HasName(ModuleDeclaration begin, Expression end) {
createIndentation();
ofs.println("<ModuleDeclaration_HasName>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasName' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndModuleDeclaration_HasName(ModuleDeclaration begin, Expression end) {
decDepth();
createIndentation();
ofs.println("</ModuleDeclaration_HasName>");
}
/**
* Writes the XML representation of the 'hasDirectives' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitModuleDeclaration_HasDirectives(ModuleDeclaration begin, ModuleDirective end) {
createIndentation();
ofs.println("<ModuleDeclaration_HasDirectives>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasDirectives' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndModuleDeclaration_HasDirectives(ModuleDeclaration begin, ModuleDirective end) {
decDepth();
createIndentation();
ofs.println("</ModuleDeclaration_HasDirectives>");
}
/**
* Writes the XML representation of the 'moduleType' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitModuleDeclaration_ModuleType(ModuleDeclaration begin, ModuleType end) {
createIndentation();
ofs.print("<ModuleDeclaration_ModuleType ref='");
if (!noId)
ofs.print("id" + end.getId());
ofs.println("'/>");
}
/**
* Writes the end part of XML representation of the 'moduleType' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndModuleDeclaration_ModuleType(ModuleDeclaration begin, ModuleType end) {
}
/**
* Writes the XML representation of the 'refersTo' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitModuleDeclaration_RefersTo(ModuleDeclaration begin, Module end) {
createIndentation();
ofs.print("<ModuleDeclaration_RefersTo ref='");
if (!noId)
ofs.print("id" + end.getId());
ofs.println("'/>");
}
/**
* Writes the end part of XML representation of the 'refersTo' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndModuleDeclaration_RefersTo(ModuleDeclaration begin, Module end) {
}
/**
* Writes the XML representation of the 'hasParameters' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitNormalMethod_HasParameters(NormalMethod begin, Parameter end) {
createIndentation();
ofs.println("<NormalMethod_HasParameters>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasParameters' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndNormalMethod_HasParameters(NormalMethod begin, Parameter end) {
decDepth();
createIndentation();
ofs.println("</NormalMethod_HasParameters>");
}
/**
* Writes the XML representation of the 'hasBody' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitNormalMethod_HasBody(NormalMethod begin, Block end) {
createIndentation();
ofs.println("<NormalMethod_HasBody>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasBody' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndNormalMethod_HasBody(NormalMethod begin, Block end) {
decDepth();
createIndentation();
ofs.println("</NormalMethod_HasBody>");
}
/**
* Writes the XML representation of the 'hasThrownExceptions' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitNormalMethod_HasThrownExceptions(NormalMethod begin, TypeExpression end) {
createIndentation();
ofs.println("<NormalMethod_HasThrownExceptions>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasThrownExceptions' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndNormalMethod_HasThrownExceptions(NormalMethod begin, TypeExpression end) {
decDepth();
createIndentation();
ofs.println("</NormalMethod_HasThrownExceptions>");
}
/**
* Writes the XML representation of the 'hasCompilationUnits' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitPackage_HasCompilationUnits(Package begin, CompilationUnit end) {
createIndentation();
ofs.println("<Package_HasCompilationUnits>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasCompilationUnits' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndPackage_HasCompilationUnits(Package begin, CompilationUnit end) {
decDepth();
createIndentation();
ofs.println("</Package_HasCompilationUnits>");
}
/**
* Writes the XML representation of the 'isInModule' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitPackage_IsInModule(Package begin, Module end) {
createIndentation();
ofs.print("<Package_IsInModule ref='");
if (!noId)
ofs.print("id" + end.getId());
ofs.println("'/>");
}
/**
* Writes the end part of XML representation of the 'isInModule' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndPackage_IsInModule(Package begin, Module end) {
}
/**
* Writes the XML representation of the 'hasPackageName' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitPackageDeclaration_HasPackageName(PackageDeclaration begin, Expression end) {
createIndentation();
ofs.println("<PackageDeclaration_HasPackageName>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasPackageName' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndPackageDeclaration_HasPackageName(PackageDeclaration begin, Expression end) {
decDepth();
createIndentation();
ofs.println("</PackageDeclaration_HasPackageName>");
}
/**
* Writes the XML representation of the 'refersTo' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitPackageDeclaration_RefersTo(PackageDeclaration begin, Package end) {
createIndentation();
ofs.print("<PackageDeclaration_RefersTo ref='");
if (!noId)
ofs.print("id" + end.getId());
ofs.println("'/>");
}
/**
* Writes the end part of XML representation of the 'refersTo' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndPackageDeclaration_RefersTo(PackageDeclaration begin, Package end) {
}
/**
* Writes the XML representation of the 'hasMembers' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitScope_HasMembers(Scope begin, Member end) {
createIndentation();
ofs.println("<Scope_HasMembers>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasMembers' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndScope_HasMembers(Scope begin, Member end) {
decDepth();
createIndentation();
ofs.println("</Scope_HasMembers>");
}
/**
* Writes the XML representation of the 'hasSuperClass' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitTypeDeclaration_HasSuperClass(TypeDeclaration begin, TypeExpression end) {
createIndentation();
ofs.println("<TypeDeclaration_HasSuperClass>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasSuperClass' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndTypeDeclaration_HasSuperClass(TypeDeclaration begin, TypeExpression end) {
decDepth();
createIndentation();
ofs.println("</TypeDeclaration_HasSuperClass>");
}
/**
* Writes the XML representation of the 'hasSuperInterfaces' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitTypeDeclaration_HasSuperInterfaces(TypeDeclaration begin, TypeExpression end) {
createIndentation();
ofs.println("<TypeDeclaration_HasSuperInterfaces>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasSuperInterfaces' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndTypeDeclaration_HasSuperInterfaces(TypeDeclaration begin, TypeExpression end) {
decDepth();
createIndentation();
ofs.println("</TypeDeclaration_HasSuperInterfaces>");
}
/**
* Writes the XML representation of the 'hasOthers' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitTypeDeclaration_HasOthers(TypeDeclaration begin, Positioned end) {
createIndentation();
ofs.println("<TypeDeclaration_HasOthers>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasOthers' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndTypeDeclaration_HasOthers(TypeDeclaration begin, Positioned end) {
decDepth();
createIndentation();
ofs.println("</TypeDeclaration_HasOthers>");
}
/**
* Writes the XML representation of the 'isInCompilationUnit' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitTypeDeclaration_IsInCompilationUnit(TypeDeclaration begin, CompilationUnit end) {
createIndentation();
ofs.print("<TypeDeclaration_IsInCompilationUnit ref='");
if (!noId)
ofs.print("id" + end.getId());
ofs.println("'/>");
}
/**
* Writes the end part of XML representation of the 'isInCompilationUnit' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndTypeDeclaration_IsInCompilationUnit(TypeDeclaration begin, CompilationUnit end) {
}
/**
* Writes the XML representation of the 'isInModule' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitTypeDeclaration_IsInModule(TypeDeclaration begin, Module end) {
createIndentation();
ofs.print("<TypeDeclaration_IsInModule ref='");
if (!noId)
ofs.print("id" + end.getId());
ofs.println("'/>");
}
/**
* Writes the end part of XML representation of the 'isInModule' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndTypeDeclaration_IsInModule(TypeDeclaration begin, Module end) {
}
/**
* Writes the XML representation of the 'hasBounds' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitTypeParameter_HasBounds(TypeParameter begin, TypeExpression end) {
createIndentation();
ofs.println("<TypeParameter_HasBounds>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasBounds' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndTypeParameter_HasBounds(TypeParameter begin, TypeExpression end) {
decDepth();
createIndentation();
ofs.println("</TypeParameter_HasBounds>");
}
/**
* Writes the XML representation of the 'hasInitialValue' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitVariable_HasInitialValue(Variable begin, Expression end) {
createIndentation();
ofs.println("<Variable_HasInitialValue>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasInitialValue' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndVariable_HasInitialValue(Variable begin, Expression end) {
decDepth();
createIndentation();
ofs.println("</Variable_HasInitialValue>");
}
/**
* Writes the XML representation of the 'hasType' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitVariableDeclaration_HasType(VariableDeclaration begin, TypeExpression end) {
createIndentation();
ofs.println("<VariableDeclaration_HasType>");
incDepth();
}
/**
* Writes the end part of XML representation of the 'hasType' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndVariableDeclaration_HasType(VariableDeclaration begin, TypeExpression end) {
decDepth();
createIndentation();
ofs.println("</VariableDeclaration_HasType>");
}
/**
* Writes the XML representation of the 'componentType' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitArrayType_ComponentType(ArrayType begin, Type end) {
createIndentation();
ofs.print("<ArrayType_ComponentType ref='");
if (!noId)
ofs.print("id" + end.getId());
ofs.println("'/>");
}
/**
* Writes the end part of XML representation of the 'componentType' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndArrayType_ComponentType(ArrayType begin, Type end) {
}
/**
* Writes the XML representation of the 'refersTo' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitClassType_RefersTo(ClassType begin, TypeDeclaration end) {
createIndentation();
ofs.print("<ClassType_RefersTo ref='");
if (!noId)
ofs.print("id" + end.getId());
ofs.println("'/>");
}
/**
* Writes the end part of XML representation of the 'refersTo' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndClassType_RefersTo(ClassType begin, TypeDeclaration end) {
}
/**
* Writes the XML representation of the 'bounds' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitIntersectionType_Bounds(IntersectionType begin, Type end) {
createIndentation();
ofs.print("<IntersectionType_Bounds ref='");
if (!noId)
ofs.print("id" + end.getId());
ofs.println("'/>");
}
/**
* Writes the end part of XML representation of the 'bounds' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndIntersectionType_Bounds(IntersectionType begin, Type end) {
}
/**
* Writes the XML representation of the 'returnType' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitMethodType_ReturnType(MethodType begin, Type end) {
createIndentation();
ofs.print("<MethodType_ReturnType ref='");
if (!noId)
ofs.print("id" + end.getId());
ofs.println("'/>");
}
/**
* Writes the end part of XML representation of the 'returnType' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndMethodType_ReturnType(MethodType begin, Type end) {
}
/**
* Writes the XML representation of the 'parameterTypes' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitMethodType_ParameterTypes(MethodType begin, Type end) {
createIndentation();
ofs.print("<MethodType_ParameterTypes ref='");
if (!noId)
ofs.print("id" + end.getId());
ofs.println("'/>");
}
/**
* Writes the end part of XML representation of the 'parameterTypes' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndMethodType_ParameterTypes(MethodType begin, Type end) {
}
/**
* Writes the XML representation of the 'thrownTypes' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitMethodType_ThrownTypes(MethodType begin, Type end) {
createIndentation();
ofs.print("<MethodType_ThrownTypes ref='");
if (!noId)
ofs.print("id" + end.getId());
ofs.println("'/>");
}
/**
* Writes the end part of XML representation of the 'thrownTypes' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndMethodType_ThrownTypes(MethodType begin, Type end) {
}
/**
* Writes the XML representation of the 'refersTo' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitModuleType_RefersTo(ModuleType begin, Module end) {
createIndentation();
ofs.print("<ModuleType_RefersTo ref='");
if (!noId)
ofs.print("id" + end.getId());
ofs.println("'/>");
}
/**
* Writes the end part of XML representation of the 'refersTo' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndModuleType_RefersTo(ModuleType begin, Module end) {
}
/**
* Writes the XML representation of the 'refersTo' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitPackageType_RefersTo(PackageType begin, Package end) {
createIndentation();
ofs.print("<PackageType_RefersTo ref='");
if (!noId)
ofs.print("id" + end.getId());
ofs.println("'/>");
}
/**
* Writes the end part of XML representation of the 'refersTo' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndPackageType_RefersTo(PackageType begin, Package end) {
}
/**
* Writes the XML representation of the 'rawType' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitParameterizedType_RawType(ParameterizedType begin, Type end) {
createIndentation();
ofs.print("<ParameterizedType_RawType ref='");
if (!noId)
ofs.print("id" + end.getId());
ofs.println("'/>");
}
/**
* Writes the end part of XML representation of the 'rawType' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndParameterizedType_RawType(ParameterizedType begin, Type end) {
}
/**
* Writes the XML representation of the 'argumentTypes' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitParameterizedType_ArgumentTypes(ParameterizedType begin, Type end) {
createIndentation();
ofs.print("<ParameterizedType_ArgumentTypes ref='");
if (!noId)
ofs.print("id" + end.getId());
ofs.println("'/>");
}
/**
* Writes the end part of XML representation of the 'argumentTypes' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndParameterizedType_ArgumentTypes(ParameterizedType begin, Type end) {
}
/**
* Writes the XML representation of the 'owner' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitScopedType_Owner(ScopedType begin, Type end) {
createIndentation();
ofs.print("<ScopedType_Owner ref='");
if (!noId)
ofs.print("id" + end.getId());
ofs.println("'/>");
}
/**
* Writes the end part of XML representation of the 'owner' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndScopedType_Owner(ScopedType begin, Type end) {
}
/**
* Writes the XML representation of the 'refersTo' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitTypeVariable_RefersTo(TypeVariable begin, TypeParameter end) {
createIndentation();
ofs.print("<TypeVariable_RefersTo ref='");
if (!noId)
ofs.print("id" + end.getId());
ofs.println("'/>");
}
/**
* Writes the end part of XML representation of the 'refersTo' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndTypeVariable_RefersTo(TypeVariable begin, TypeParameter end) {
}
/**
* Writes the XML representation of the 'alternatives' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitUnionType_Alternatives(UnionType begin, Type end) {
createIndentation();
ofs.print("<UnionType_Alternatives ref='");
if (!noId)
ofs.print("id" + end.getId());
ofs.println("'/>");
}
/**
* Writes the end part of XML representation of the 'alternatives' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndUnionType_Alternatives(UnionType begin, Type end) {
}
/**
* Writes the XML representation of the 'bound' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitWildcardType_Bound(WildcardType begin, Type end) {
createIndentation();
ofs.print("<WildcardType_Bound ref='");
if (!noId)
ofs.print("id" + end.getId());
ofs.println("'/>");
}
/**
* Writes the end part of XML representation of the 'bound' edge into the output file.
* @param begin The reference of the node the edge starts from.
* @param end The reference of the node the edge points to.
*/
@Override
public void visitEndWildcardType_Bound(WildcardType begin, Type end) {
}
/**
* Creates the indentation according to the depth.
*/
protected final void createIndentation() {
for (int i = 0; i < depth; ++i) {
ofs.print(" ");
}
}
/**
* Replaces the invalid characters for XML in the string.
*/
protected final String chk(String s) {
return s
.replaceAll("&", "&")
.replaceAll("<", "<")
.replaceAll(">", ">")
.replaceAll("'", "'")
.replaceAll("\"", """)
.replaceAll("\r", " ")
.replaceAll("\n", " ")
.replaceAll("\t", "	");
}
/**
* Writes out a Range attribute with name.
*/
protected void writeRange(String name, Range range) {
incDepth();
createIndentation();
ofs.print("<" + name);
ofs.print(" path='" + range.getPath() + "'");
ofs.print(" line='" + range.getLine() + "'");
ofs.print(" col='" + range.getCol() + "'");
ofs.print(" endLine='" + range.getEndLine() + "'");
ofs.print(" endCol='" + range.getEndCol() + "'");
ofs.print(" wideLine='" + range.getWideLine() + "'");
ofs.print(" wideCol='" + range.getWideCol() + "'");
ofs.print(" wideEndLine='" + range.getWideEndLine() + "'");
ofs.print(" wideEndCol='" + range.getWideEndCol() + "'");
ofs.println("/>");
decDepth();
}
/**
* Writes out the attributes of the {@link columbus.java.asg.base.Base Base} node.
*/
protected void writeAttributes(Base node, boolean callVirtualBase) {
ofs.print(" id='");
if (!noId)
ofs.print("id" + node.getId());
ofs.print("'");
ofs.print(" parent='");
if (!noId) {
Base parent = node.getParent();
ofs.print("id");
ofs.print(parent == null ? 0 : parent.getId());
}
ofs.print("'");
}
/**
* Writes out the attributes of the {@link columbus.java.asg.base.BlockComment BlockComment} node.
*/
protected void writeAttributes(BlockComment node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
writeAttributes((NonJavadocComment)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.base.Comment Comment} node.
*/
protected void writeAttributes(Comment node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
writeAttributes((PositionedWithoutComment)node, false);
ofs.print(" text='" + chk(node.getText()) + "'");
}
/**
* Writes out the attributes of the {@link columbus.java.asg.base.Commentable Commentable} node.
*/
protected void writeAttributes(Commentable node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.base.JavadocComment JavadocComment} node.
*/
protected void writeAttributes(JavadocComment node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
writeAttributes((Comment)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.base.LineComment LineComment} node.
*/
protected void writeAttributes(LineComment node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
writeAttributes((NonJavadocComment)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.base.Named Named} node.
*/
protected void writeAttributes(Named node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
ofs.print(" name='" + chk(node.getName()) + "'");
}
/**
* Writes out the attributes of the {@link columbus.java.asg.base.NonJavadocComment NonJavadocComment} node.
*/
protected void writeAttributes(NonJavadocComment node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
writeAttributes((Comment)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.base.Positioned Positioned} node.
*/
protected void writeAttributes(Positioned node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((PositionedWithoutComment)node, false);
ofs.print(" isCompilerGenerated='" + node.getIsCompilerGenerated() + "'");
ofs.print(" isToolGenerated='" + node.getIsToolGenerated() + "'");
}
/**
* Writes out the attributes of the {@link columbus.java.asg.base.PositionedWithoutComment PositionedWithoutComment} node.
*/
protected void writeAttributes(PositionedWithoutComment node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.AnnotatedTypeExpression AnnotatedTypeExpression} node.
*/
protected void writeAttributes(AnnotatedTypeExpression node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((TypeExpression)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.Annotation Annotation} node.
*/
protected void writeAttributes(Annotation node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Expression)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.ArrayAccess ArrayAccess} node.
*/
protected void writeAttributes(ArrayAccess node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Binary)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.ArrayTypeExpression ArrayTypeExpression} node.
*/
protected void writeAttributes(ArrayTypeExpression node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((TypeExpression)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.Assignment Assignment} node.
*/
protected void writeAttributes(Assignment node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Binary)node, false);
ofs.print(" operator='" + node.getOperator() + "'");
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.Binary Binary} node.
*/
protected void writeAttributes(Binary node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Expression)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.BooleanLiteral BooleanLiteral} node.
*/
protected void writeAttributes(BooleanLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Literal)node, false);
ofs.print(" booleanValue='" + node.getBooleanValue() + "'");
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.CharacterLiteral CharacterLiteral} node.
*/
protected void writeAttributes(CharacterLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Literal)node, false);
ofs.print(" charValue='" + (int)node.getCharValue() + "'");
ofs.print(" formatString='" + chk(node.getFormatString()) + "'");
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.ClassLiteral ClassLiteral} node.
*/
protected void writeAttributes(ClassLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Literal)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.Conditional Conditional} node.
*/
protected void writeAttributes(Conditional node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Expression)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.DoubleLiteral DoubleLiteral} node.
*/
protected void writeAttributes(DoubleLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((NumberLiteral)node, false);
ofs.print(" doubleValue='" + node.getDoubleValue() + "'");
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.Erroneous Erroneous} node.
*/
protected void writeAttributes(Erroneous node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Expression)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.ErroneousTypeExpression ErroneousTypeExpression} node.
*/
protected void writeAttributes(ErroneousTypeExpression node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((TypeExpression)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.Expression Expression} node.
*/
protected void writeAttributes(Expression node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Positioned)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.ExternalTypeExpression ExternalTypeExpression} node.
*/
protected void writeAttributes(ExternalTypeExpression node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((TypeExpression)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.FieldAccess FieldAccess} node.
*/
protected void writeAttributes(FieldAccess node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Binary)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.FloatLiteral FloatLiteral} node.
*/
protected void writeAttributes(FloatLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((NumberLiteral)node, false);
ofs.print(" floatValue='" + node.getFloatValue() + "'");
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.FunctionalExpression FunctionalExpression} node.
*/
protected void writeAttributes(FunctionalExpression node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((PolyExpression)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.Identifier Identifier} node.
*/
protected void writeAttributes(Identifier node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Expression)node, false);
ofs.print(" name='" + chk(node.getName()) + "'");
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.InfixExpression InfixExpression} node.
*/
protected void writeAttributes(InfixExpression node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Binary)node, false);
ofs.print(" operator='" + node.getOperator() + "'");
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.InstanceOf InstanceOf} node.
*/
protected void writeAttributes(InstanceOf node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Unary)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.IntegerLiteral IntegerLiteral} node.
*/
protected void writeAttributes(IntegerLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((NumberLiteral)node, false);
ofs.print(" intValue='" + node.getIntValue() + "'");
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.Lambda Lambda} node.
*/
protected void writeAttributes(Lambda node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((FunctionalExpression)node, false);
ofs.print(" lloc='" + node.getLloc() + "'");
ofs.print(" paramKind='" + node.getParamKind() + "'");
ofs.print(" bodyKind='" + node.getBodyKind() + "'");
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.Literal Literal} node.
*/
protected void writeAttributes(Literal node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Expression)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.LongLiteral LongLiteral} node.
*/
protected void writeAttributes(LongLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((NumberLiteral)node, false);
ofs.print(" longValue='" + node.getLongValue() + "'");
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.MarkerAnnotation MarkerAnnotation} node.
*/
protected void writeAttributes(MarkerAnnotation node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Annotation)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.MemberReference MemberReference} node.
*/
protected void writeAttributes(MemberReference node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((FunctionalExpression)node, false);
ofs.print(" name='" + chk(node.getName()) + "'");
ofs.print(" mode='" + node.getMode() + "'");
ofs.print(" referenceKind='" + node.getReferenceKind() + "'");
ofs.print(" overloadKind='" + node.getOverloadKind() + "'");
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.MethodInvocation MethodInvocation} node.
*/
protected void writeAttributes(MethodInvocation node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Unary)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.NewArray NewArray} node.
*/
protected void writeAttributes(NewArray node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Expression)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.NewClass NewClass} node.
*/
protected void writeAttributes(NewClass node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Expression)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.NormalAnnotation NormalAnnotation} node.
*/
protected void writeAttributes(NormalAnnotation node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Annotation)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.NullLiteral NullLiteral} node.
*/
protected void writeAttributes(NullLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Literal)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.NumberLiteral NumberLiteral} node.
*/
protected void writeAttributes(NumberLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Literal)node, false);
ofs.print(" value='" + chk(node.getValue()) + "'");
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.ParenthesizedExpression ParenthesizedExpression} node.
*/
protected void writeAttributes(ParenthesizedExpression node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Unary)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.PolyExpression PolyExpression} node.
*/
protected void writeAttributes(PolyExpression node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Expression)node, false);
ofs.print(" polyKind='" + node.getPolyKind() + "'");
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.PostfixExpression PostfixExpression} node.
*/
protected void writeAttributes(PostfixExpression node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Unary)node, false);
ofs.print(" operator='" + node.getOperator() + "'");
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.PrefixExpression PrefixExpression} node.
*/
protected void writeAttributes(PrefixExpression node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Unary)node, false);
ofs.print(" operator='" + node.getOperator() + "'");
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.PrimitiveTypeExpression PrimitiveTypeExpression} node.
*/
protected void writeAttributes(PrimitiveTypeExpression node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((TypeExpression)node, false);
ofs.print(" kind='" + node.getKind() + "'");
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.QualifiedTypeExpression QualifiedTypeExpression} node.
*/
protected void writeAttributes(QualifiedTypeExpression node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((TypeExpression)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.SimpleTypeExpression SimpleTypeExpression} node.
*/
protected void writeAttributes(SimpleTypeExpression node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((TypeExpression)node, false);
ofs.print(" name='" + chk(node.getName()) + "'");
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.SingleElementAnnotation SingleElementAnnotation} node.
*/
protected void writeAttributes(SingleElementAnnotation node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Annotation)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.StringLiteral StringLiteral} node.
*/
protected void writeAttributes(StringLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Literal)node, false);
ofs.print(" value='" + chk(node.getValue()) + "'");
ofs.print(" formatString='" + chk(node.getFormatString()) + "'");
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.Super Super} node.
*/
protected void writeAttributes(Super node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Expression)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.This This} node.
*/
protected void writeAttributes(This node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Expression)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.TypeApplyExpression TypeApplyExpression} node.
*/
protected void writeAttributes(TypeApplyExpression node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((TypeExpression)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.TypeCast TypeCast} node.
*/
protected void writeAttributes(TypeCast node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Unary)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.TypeExpression TypeExpression} node.
*/
protected void writeAttributes(TypeExpression node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Expression)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.TypeIntersectionExpression TypeIntersectionExpression} node.
*/
protected void writeAttributes(TypeIntersectionExpression node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((TypeExpression)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.TypeUnionExpression TypeUnionExpression} node.
*/
protected void writeAttributes(TypeUnionExpression node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((TypeExpression)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.Unary Unary} node.
*/
protected void writeAttributes(Unary node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Expression)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.expr.WildcardExpression WildcardExpression} node.
*/
protected void writeAttributes(WildcardExpression node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((TypeExpression)node, false);
ofs.print(" kind='" + node.getKind() + "'");
}
/**
* Writes out the attributes of the {@link columbus.java.asg.module.Exports Exports} node.
*/
protected void writeAttributes(Exports node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((ModuleDirective)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.module.ModuleDirective ModuleDirective} node.
*/
protected void writeAttributes(ModuleDirective node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Positioned)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.module.Opens Opens} node.
*/
protected void writeAttributes(Opens node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((ModuleDirective)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.module.Provides Provides} node.
*/
protected void writeAttributes(Provides node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((ModuleDirective)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.module.Requires Requires} node.
*/
protected void writeAttributes(Requires node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((ModuleDirective)node, false);
ofs.print(" isTransitive='" + node.getIsTransitive() + "'");
ofs.print(" isStatic='" + node.getIsStatic() + "'");
}
/**
* Writes out the attributes of the {@link columbus.java.asg.module.Uses Uses} node.
*/
protected void writeAttributes(Uses node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((ModuleDirective)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.statm.Assert Assert} node.
*/
protected void writeAttributes(Assert node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Statement)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.statm.BasicFor BasicFor} node.
*/
protected void writeAttributes(BasicFor node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((For)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.statm.Block Block} node.
*/
protected void writeAttributes(Block node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Statement)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.statm.Break Break} node.
*/
protected void writeAttributes(Break node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Jump)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.statm.Case Case} node.
*/
protected void writeAttributes(Case node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((SwitchLabel)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.statm.Continue Continue} node.
*/
protected void writeAttributes(Continue node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Jump)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.statm.Default Default} node.
*/
protected void writeAttributes(Default node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((SwitchLabel)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.statm.Do Do} node.
*/
protected void writeAttributes(Do node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Iteration)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.statm.Empty Empty} node.
*/
protected void writeAttributes(Empty node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Statement)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.statm.EnhancedFor EnhancedFor} node.
*/
protected void writeAttributes(EnhancedFor node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((For)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.statm.ExpressionStatement ExpressionStatement} node.
*/
protected void writeAttributes(ExpressionStatement node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Statement)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.statm.For For} node.
*/
protected void writeAttributes(For node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Iteration)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.statm.Handler Handler} node.
*/
protected void writeAttributes(Handler node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Positioned)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.statm.If If} node.
*/
protected void writeAttributes(If node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Selection)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.statm.Iteration Iteration} node.
*/
protected void writeAttributes(Iteration node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Statement)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.statm.Jump Jump} node.
*/
protected void writeAttributes(Jump node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Statement)node, false);
ofs.print(" label='" + chk(node.getLabel()) + "'");
}
/**
* Writes out the attributes of the {@link columbus.java.asg.statm.LabeledStatement LabeledStatement} node.
*/
protected void writeAttributes(LabeledStatement node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Statement)node, false);
ofs.print(" label='" + chk(node.getLabel()) + "'");
}
/**
* Writes out the attributes of the {@link columbus.java.asg.statm.Return Return} node.
*/
protected void writeAttributes(Return node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Statement)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.statm.Selection Selection} node.
*/
protected void writeAttributes(Selection node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Statement)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.statm.Statement Statement} node.
*/
protected void writeAttributes(Statement node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Positioned)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.statm.Switch Switch} node.
*/
protected void writeAttributes(Switch node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Selection)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.statm.SwitchLabel SwitchLabel} node.
*/
protected void writeAttributes(SwitchLabel node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Positioned)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.statm.Synchronized Synchronized} node.
*/
protected void writeAttributes(Synchronized node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Statement)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.statm.Throw Throw} node.
*/
protected void writeAttributes(Throw node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Statement)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.statm.Try Try} node.
*/
protected void writeAttributes(Try node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Statement)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.statm.While While} node.
*/
protected void writeAttributes(While node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Iteration)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.struc.AnnotatedElement AnnotatedElement} node.
*/
protected void writeAttributes(AnnotatedElement node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.struc.AnnotationType AnnotationType} node.
*/
protected void writeAttributes(AnnotationType node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
if (callVirtualBase)
writeAttributes((Member)node, false);
writeAttributes((TypeDeclaration)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.struc.AnnotationTypeElement AnnotationTypeElement} node.
*/
protected void writeAttributes(AnnotationTypeElement node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
if (callVirtualBase)
writeAttributes((Member)node, false);
writeAttributes((MethodDeclaration)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.struc.AnonymousClass AnonymousClass} node.
*/
protected void writeAttributes(AnonymousClass node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
if (callVirtualBase)
writeAttributes((Member)node, false);
writeAttributes((ClassDeclaration)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.struc.Class Class} node.
*/
protected void writeAttributes(Class node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
if (callVirtualBase)
writeAttributes((Member)node, false);
writeAttributes((ClassDeclaration)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.struc.ClassDeclaration ClassDeclaration} node.
*/
protected void writeAttributes(ClassDeclaration node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
if (callVirtualBase)
writeAttributes((Member)node, false);
writeAttributes((TypeDeclaration)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.struc.ClassGeneric ClassGeneric} node.
*/
protected void writeAttributes(ClassGeneric node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
if (callVirtualBase)
writeAttributes((Member)node, false);
writeAttributes((ClassDeclaration)node, false);
writeAttributes((GenericDeclaration)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.struc.CompilationUnit CompilationUnit} node.
*/
protected void writeAttributes(CompilationUnit node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
writeAttributes((PositionedWithoutComment)node, false);
writeAttributes((Commentable)node, false);
ofs.print(" fileEncoding='" + chk(node.getFileEncoding()) + "'");
}
/**
* Writes out the attributes of the {@link columbus.java.asg.struc.Declaration Declaration} node.
*/
protected void writeAttributes(Declaration node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
if (callVirtualBase)
writeAttributes((Member)node, false);
writeAttributes((Statement)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.struc.Enum Enum} node.
*/
protected void writeAttributes(Enum node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
if (callVirtualBase)
writeAttributes((Member)node, false);
writeAttributes((TypeDeclaration)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.struc.EnumConstant EnumConstant} node.
*/
protected void writeAttributes(EnumConstant node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
if (callVirtualBase)
writeAttributes((Member)node, false);
writeAttributes((VariableDeclaration)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.struc.GenericDeclaration GenericDeclaration} node.
*/
protected void writeAttributes(GenericDeclaration node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.struc.Import Import} node.
*/
protected void writeAttributes(Import node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Positioned)node, false);
ofs.print(" isStatic='" + node.getIsStatic() + "'");
}
/**
* Writes out the attributes of the {@link columbus.java.asg.struc.InitializerBlock InitializerBlock} node.
*/
protected void writeAttributes(InitializerBlock node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
if (callVirtualBase)
writeAttributes((Member)node, false);
writeAttributes((Declaration)node, false);
ofs.print(" lloc='" + node.getLloc() + "'");
}
/**
* Writes out the attributes of the {@link columbus.java.asg.struc.InstanceInitializerBlock InstanceInitializerBlock} node.
*/
protected void writeAttributes(InstanceInitializerBlock node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
if (callVirtualBase)
writeAttributes((Member)node, false);
writeAttributes((InitializerBlock)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.struc.Interface Interface} node.
*/
protected void writeAttributes(Interface node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
if (callVirtualBase)
writeAttributes((Member)node, false);
writeAttributes((InterfaceDeclaration)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.struc.InterfaceDeclaration InterfaceDeclaration} node.
*/
protected void writeAttributes(InterfaceDeclaration node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
if (callVirtualBase)
writeAttributes((Member)node, false);
writeAttributes((TypeDeclaration)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.struc.InterfaceGeneric InterfaceGeneric} node.
*/
protected void writeAttributes(InterfaceGeneric node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
if (callVirtualBase)
writeAttributes((Member)node, false);
writeAttributes((InterfaceDeclaration)node, false);
writeAttributes((GenericDeclaration)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.struc.Member Member} node.
*/
protected void writeAttributes(Member node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((AnnotatedElement)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.struc.Method Method} node.
*/
protected void writeAttributes(Method node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
if (callVirtualBase)
writeAttributes((Member)node, false);
writeAttributes((NormalMethod)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.struc.MethodDeclaration MethodDeclaration} node.
*/
protected void writeAttributes(MethodDeclaration node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
if (callVirtualBase)
writeAttributes((Member)node, false);
writeAttributes((NamedDeclaration)node, false);
ofs.print(" lloc='" + node.getLloc() + "'");
ofs.print(" isAbstract='" + node.getIsAbstract() + "'");
ofs.print(" isStrictfp='" + node.getIsStrictfp() + "'");
}
/**
* Writes out the attributes of the {@link columbus.java.asg.struc.MethodGeneric MethodGeneric} node.
*/
protected void writeAttributes(MethodGeneric node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
if (callVirtualBase)
writeAttributes((Member)node, false);
writeAttributes((NormalMethod)node, false);
writeAttributes((GenericDeclaration)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.struc.Module Module} node.
*/
protected void writeAttributes(Module node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
writeAttributes((Named)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.struc.ModuleDeclaration ModuleDeclaration} node.
*/
protected void writeAttributes(ModuleDeclaration node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Positioned)node, false);
ofs.print(" moduleKind='" + node.getModuleKind() + "'");
}
/**
* Writes out the attributes of the {@link columbus.java.asg.struc.NamedDeclaration NamedDeclaration} node.
*/
protected void writeAttributes(NamedDeclaration node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
if (callVirtualBase)
writeAttributes((Member)node, false);
writeAttributes((Declaration)node, false);
writeAttributes((Named)node, false);
ofs.print(" accessibility='" + node.getAccessibility() + "'");
ofs.print(" isStatic='" + node.getIsStatic() + "'");
ofs.print(" isFinal='" + node.getIsFinal() + "'");
}
/**
* Writes out the attributes of the {@link columbus.java.asg.struc.NormalMethod NormalMethod} node.
*/
protected void writeAttributes(NormalMethod node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
if (callVirtualBase)
writeAttributes((Member)node, false);
writeAttributes((MethodDeclaration)node, false);
ofs.print(" methodKind='" + node.getMethodKind() + "'");
ofs.print(" isSynchronized='" + node.getIsSynchronized() + "'");
ofs.print(" isNative='" + node.getIsNative() + "'");
ofs.print(" isDefault='" + node.getIsDefault() + "'");
}
/**
* Writes out the attributes of the {@link columbus.java.asg.struc.Package Package} node.
*/
protected void writeAttributes(Package node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
if (callVirtualBase)
writeAttributes((Member)node, false);
writeAttributes((Named)node, false);
writeAttributes((Scope)node, false);
ofs.print(" qualifiedName='" + chk(node.getQualifiedName()) + "'");
}
/**
* Writes out the attributes of the {@link columbus.java.asg.struc.PackageDeclaration PackageDeclaration} node.
*/
protected void writeAttributes(PackageDeclaration node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Positioned)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.struc.Parameter Parameter} node.
*/
protected void writeAttributes(Parameter node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
if (callVirtualBase)
writeAttributes((Member)node, false);
writeAttributes((VariableDeclaration)node, false);
ofs.print(" isVarargs='" + node.getIsVarargs() + "'");
}
/**
* Writes out the attributes of the {@link columbus.java.asg.struc.Scope Scope} node.
*/
protected void writeAttributes(Scope node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
if (callVirtualBase)
writeAttributes((Member)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.struc.StaticInitializerBlock StaticInitializerBlock} node.
*/
protected void writeAttributes(StaticInitializerBlock node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
if (callVirtualBase)
writeAttributes((Member)node, false);
writeAttributes((InitializerBlock)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.struc.TypeDeclaration TypeDeclaration} node.
*/
protected void writeAttributes(TypeDeclaration node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
if (callVirtualBase)
writeAttributes((Member)node, false);
writeAttributes((NamedDeclaration)node, false);
writeAttributes((Scope)node, false);
ofs.print(" lloc='" + node.getLloc() + "'");
ofs.print(" isAbstract='" + node.getIsAbstract() + "'");
ofs.print(" isStrictfp='" + node.getIsStrictfp() + "'");
ofs.print(" binaryName='" + chk(node.getBinaryName()) + "'");
}
/**
* Writes out the attributes of the {@link columbus.java.asg.struc.TypeParameter TypeParameter} node.
*/
protected void writeAttributes(TypeParameter node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
writeAttributes((Positioned)node, false);
writeAttributes((Named)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.struc.Variable Variable} node.
*/
protected void writeAttributes(Variable node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
if (callVirtualBase)
writeAttributes((Member)node, false);
writeAttributes((VariableDeclaration)node, false);
ofs.print(" isTransient='" + node.getIsTransient() + "'");
ofs.print(" isVolatile='" + node.getIsVolatile() + "'");
}
/**
* Writes out the attributes of the {@link columbus.java.asg.struc.VariableDeclaration VariableDeclaration} node.
*/
protected void writeAttributes(VariableDeclaration node, boolean callVirtualBase) {
if (callVirtualBase)
writeAttributes((Base)node, false);
if (callVirtualBase)
writeAttributes((Commentable)node, false);
if (callVirtualBase)
writeAttributes((Member)node, false);
writeAttributes((NamedDeclaration)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.type.ArrayType ArrayType} node.
*/
protected void writeAttributes(ArrayType node, boolean callVirtualBase) {
writeAttributes((Type)node, false);
ofs.print(" size='" + node.getSize() + "'");
}
/**
* Writes out the attributes of the {@link columbus.java.asg.type.BooleanType BooleanType} node.
*/
protected void writeAttributes(BooleanType node, boolean callVirtualBase) {
writeAttributes((PrimitiveType)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.type.BoundedWildcardType BoundedWildcardType} node.
*/
protected void writeAttributes(BoundedWildcardType node, boolean callVirtualBase) {
writeAttributes((WildcardType)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.type.ByteType ByteType} node.
*/
protected void writeAttributes(ByteType node, boolean callVirtualBase) {
writeAttributes((PrimitiveType)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.type.CharType CharType} node.
*/
protected void writeAttributes(CharType node, boolean callVirtualBase) {
writeAttributes((PrimitiveType)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.type.ClassType ClassType} node.
*/
protected void writeAttributes(ClassType node, boolean callVirtualBase) {
writeAttributes((ScopedType)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.type.DoubleType DoubleType} node.
*/
protected void writeAttributes(DoubleType node, boolean callVirtualBase) {
writeAttributes((PrimitiveType)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.type.ErrorType ErrorType} node.
*/
protected void writeAttributes(ErrorType node, boolean callVirtualBase) {
writeAttributes((Type)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.type.FloatType FloatType} node.
*/
protected void writeAttributes(FloatType node, boolean callVirtualBase) {
writeAttributes((PrimitiveType)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.type.IntType IntType} node.
*/
protected void writeAttributes(IntType node, boolean callVirtualBase) {
writeAttributes((PrimitiveType)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.type.IntersectionType IntersectionType} node.
*/
protected void writeAttributes(IntersectionType node, boolean callVirtualBase) {
writeAttributes((Type)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.type.LongType LongType} node.
*/
protected void writeAttributes(LongType node, boolean callVirtualBase) {
writeAttributes((PrimitiveType)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.type.LowerBoundedWildcardType LowerBoundedWildcardType} node.
*/
protected void writeAttributes(LowerBoundedWildcardType node, boolean callVirtualBase) {
writeAttributes((BoundedWildcardType)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.type.MethodType MethodType} node.
*/
protected void writeAttributes(MethodType node, boolean callVirtualBase) {
writeAttributes((Type)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.type.ModuleType ModuleType} node.
*/
protected void writeAttributes(ModuleType node, boolean callVirtualBase) {
writeAttributes((Type)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.type.NoType NoType} node.
*/
protected void writeAttributes(NoType node, boolean callVirtualBase) {
writeAttributes((Type)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.type.NullType NullType} node.
*/
protected void writeAttributes(NullType node, boolean callVirtualBase) {
writeAttributes((Type)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.type.PackageType PackageType} node.
*/
protected void writeAttributes(PackageType node, boolean callVirtualBase) {
writeAttributes((Type)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.type.ParameterizedType ParameterizedType} node.
*/
protected void writeAttributes(ParameterizedType node, boolean callVirtualBase) {
writeAttributes((ScopedType)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.type.PrimitiveType PrimitiveType} node.
*/
protected void writeAttributes(PrimitiveType node, boolean callVirtualBase) {
writeAttributes((Type)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.type.ScopedType ScopedType} node.
*/
protected void writeAttributes(ScopedType node, boolean callVirtualBase) {
writeAttributes((Type)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.type.ShortType ShortType} node.
*/
protected void writeAttributes(ShortType node, boolean callVirtualBase) {
writeAttributes((PrimitiveType)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.type.Type Type} node.
*/
protected void writeAttributes(Type node, boolean callVirtualBase) {
writeAttributes((Base)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.type.TypeVariable TypeVariable} node.
*/
protected void writeAttributes(TypeVariable node, boolean callVirtualBase) {
writeAttributes((Type)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.type.UnboundedWildcardType UnboundedWildcardType} node.
*/
protected void writeAttributes(UnboundedWildcardType node, boolean callVirtualBase) {
writeAttributes((WildcardType)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.type.UnionType UnionType} node.
*/
protected void writeAttributes(UnionType node, boolean callVirtualBase) {
writeAttributes((Type)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.type.UpperBoundedWildcardType UpperBoundedWildcardType} node.
*/
protected void writeAttributes(UpperBoundedWildcardType node, boolean callVirtualBase) {
writeAttributes((BoundedWildcardType)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.type.VoidType VoidType} node.
*/
protected void writeAttributes(VoidType node, boolean callVirtualBase) {
writeAttributes((PrimitiveType)node, false);
}
/**
* Writes out the attributes of the {@link columbus.java.asg.type.WildcardType WildcardType} node.
*/
protected void writeAttributes(WildcardType node, boolean callVirtualBase) {
writeAttributes((Type)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.base.Base Base} node.
*/
protected void writeCompositeAttributes(Base node, boolean callVirtualBase) {
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.base.BlockComment BlockComment} node.
*/
protected void writeCompositeAttributes(BlockComment node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
writeCompositeAttributes((NonJavadocComment)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.base.Comment Comment} node.
*/
protected void writeCompositeAttributes(Comment node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
writeCompositeAttributes((PositionedWithoutComment)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.base.Commentable Commentable} node.
*/
protected void writeCompositeAttributes(Commentable node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.base.JavadocComment JavadocComment} node.
*/
protected void writeCompositeAttributes(JavadocComment node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
writeCompositeAttributes((Comment)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.base.LineComment LineComment} node.
*/
protected void writeCompositeAttributes(LineComment node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
writeCompositeAttributes((NonJavadocComment)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.base.Named Named} node.
*/
protected void writeCompositeAttributes(Named node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
writeRange("NamePosition", node.getNamePosition());
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.base.NonJavadocComment NonJavadocComment} node.
*/
protected void writeCompositeAttributes(NonJavadocComment node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
writeCompositeAttributes((Comment)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.base.Positioned Positioned} node.
*/
protected void writeCompositeAttributes(Positioned node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((PositionedWithoutComment)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.base.PositionedWithoutComment PositionedWithoutComment} node.
*/
protected void writeCompositeAttributes(PositionedWithoutComment node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
writeRange("Position", node.getPosition());
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.AnnotatedTypeExpression AnnotatedTypeExpression} node.
*/
protected void writeCompositeAttributes(AnnotatedTypeExpression node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((TypeExpression)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.Annotation Annotation} node.
*/
protected void writeCompositeAttributes(Annotation node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Expression)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.ArrayAccess ArrayAccess} node.
*/
protected void writeCompositeAttributes(ArrayAccess node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Binary)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.ArrayTypeExpression ArrayTypeExpression} node.
*/
protected void writeCompositeAttributes(ArrayTypeExpression node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((TypeExpression)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.Assignment Assignment} node.
*/
protected void writeCompositeAttributes(Assignment node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Binary)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.Binary Binary} node.
*/
protected void writeCompositeAttributes(Binary node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Expression)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.BooleanLiteral BooleanLiteral} node.
*/
protected void writeCompositeAttributes(BooleanLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Literal)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.CharacterLiteral CharacterLiteral} node.
*/
protected void writeCompositeAttributes(CharacterLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Literal)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.ClassLiteral ClassLiteral} node.
*/
protected void writeCompositeAttributes(ClassLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Literal)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.Conditional Conditional} node.
*/
protected void writeCompositeAttributes(Conditional node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Expression)node, false);
writeRange("ColonPosition", node.getColonPosition());
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.DoubleLiteral DoubleLiteral} node.
*/
protected void writeCompositeAttributes(DoubleLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((NumberLiteral)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.Erroneous Erroneous} node.
*/
protected void writeCompositeAttributes(Erroneous node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Expression)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.ErroneousTypeExpression ErroneousTypeExpression} node.
*/
protected void writeCompositeAttributes(ErroneousTypeExpression node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((TypeExpression)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.Expression Expression} node.
*/
protected void writeCompositeAttributes(Expression node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Positioned)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.ExternalTypeExpression ExternalTypeExpression} node.
*/
protected void writeCompositeAttributes(ExternalTypeExpression node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((TypeExpression)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.FieldAccess FieldAccess} node.
*/
protected void writeCompositeAttributes(FieldAccess node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Binary)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.FloatLiteral FloatLiteral} node.
*/
protected void writeCompositeAttributes(FloatLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((NumberLiteral)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.FunctionalExpression FunctionalExpression} node.
*/
protected void writeCompositeAttributes(FunctionalExpression node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((PolyExpression)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.Identifier Identifier} node.
*/
protected void writeCompositeAttributes(Identifier node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Expression)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.InfixExpression InfixExpression} node.
*/
protected void writeCompositeAttributes(InfixExpression node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Binary)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.InstanceOf InstanceOf} node.
*/
protected void writeCompositeAttributes(InstanceOf node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Unary)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.IntegerLiteral IntegerLiteral} node.
*/
protected void writeCompositeAttributes(IntegerLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((NumberLiteral)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.Lambda Lambda} node.
*/
protected void writeCompositeAttributes(Lambda node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((FunctionalExpression)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.Literal Literal} node.
*/
protected void writeCompositeAttributes(Literal node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Expression)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.LongLiteral LongLiteral} node.
*/
protected void writeCompositeAttributes(LongLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((NumberLiteral)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.MarkerAnnotation MarkerAnnotation} node.
*/
protected void writeCompositeAttributes(MarkerAnnotation node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Annotation)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.MemberReference MemberReference} node.
*/
protected void writeCompositeAttributes(MemberReference node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((FunctionalExpression)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.MethodInvocation MethodInvocation} node.
*/
protected void writeCompositeAttributes(MethodInvocation node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Unary)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.NewArray NewArray} node.
*/
protected void writeCompositeAttributes(NewArray node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Expression)node, false);
writeRange("LeftBracePosition", node.getLeftBracePosition());
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.NewClass NewClass} node.
*/
protected void writeCompositeAttributes(NewClass node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Expression)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.NormalAnnotation NormalAnnotation} node.
*/
protected void writeCompositeAttributes(NormalAnnotation node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Annotation)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.NullLiteral NullLiteral} node.
*/
protected void writeCompositeAttributes(NullLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Literal)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.NumberLiteral NumberLiteral} node.
*/
protected void writeCompositeAttributes(NumberLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Literal)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.ParenthesizedExpression ParenthesizedExpression} node.
*/
protected void writeCompositeAttributes(ParenthesizedExpression node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Unary)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.PolyExpression PolyExpression} node.
*/
protected void writeCompositeAttributes(PolyExpression node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Expression)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.PostfixExpression PostfixExpression} node.
*/
protected void writeCompositeAttributes(PostfixExpression node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Unary)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.PrefixExpression PrefixExpression} node.
*/
protected void writeCompositeAttributes(PrefixExpression node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Unary)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.PrimitiveTypeExpression PrimitiveTypeExpression} node.
*/
protected void writeCompositeAttributes(PrimitiveTypeExpression node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((TypeExpression)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.QualifiedTypeExpression QualifiedTypeExpression} node.
*/
protected void writeCompositeAttributes(QualifiedTypeExpression node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((TypeExpression)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.SimpleTypeExpression SimpleTypeExpression} node.
*/
protected void writeCompositeAttributes(SimpleTypeExpression node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((TypeExpression)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.SingleElementAnnotation SingleElementAnnotation} node.
*/
protected void writeCompositeAttributes(SingleElementAnnotation node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Annotation)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.StringLiteral StringLiteral} node.
*/
protected void writeCompositeAttributes(StringLiteral node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Literal)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.Super Super} node.
*/
protected void writeCompositeAttributes(Super node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Expression)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.This This} node.
*/
protected void writeCompositeAttributes(This node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Expression)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.TypeApplyExpression TypeApplyExpression} node.
*/
protected void writeCompositeAttributes(TypeApplyExpression node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((TypeExpression)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.TypeCast TypeCast} node.
*/
protected void writeCompositeAttributes(TypeCast node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Unary)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.TypeExpression TypeExpression} node.
*/
protected void writeCompositeAttributes(TypeExpression node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Expression)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.TypeIntersectionExpression TypeIntersectionExpression} node.
*/
protected void writeCompositeAttributes(TypeIntersectionExpression node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((TypeExpression)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.TypeUnionExpression TypeUnionExpression} node.
*/
protected void writeCompositeAttributes(TypeUnionExpression node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((TypeExpression)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.Unary Unary} node.
*/
protected void writeCompositeAttributes(Unary node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Expression)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.expr.WildcardExpression WildcardExpression} node.
*/
protected void writeCompositeAttributes(WildcardExpression node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((TypeExpression)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.module.Exports Exports} node.
*/
protected void writeCompositeAttributes(Exports node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((ModuleDirective)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.module.ModuleDirective ModuleDirective} node.
*/
protected void writeCompositeAttributes(ModuleDirective node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Positioned)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.module.Opens Opens} node.
*/
protected void writeCompositeAttributes(Opens node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((ModuleDirective)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.module.Provides Provides} node.
*/
protected void writeCompositeAttributes(Provides node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((ModuleDirective)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.module.Requires Requires} node.
*/
protected void writeCompositeAttributes(Requires node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((ModuleDirective)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.module.Uses Uses} node.
*/
protected void writeCompositeAttributes(Uses node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((ModuleDirective)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.statm.Assert Assert} node.
*/
protected void writeCompositeAttributes(Assert node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Statement)node, false);
writeRange("ColonPosition", node.getColonPosition());
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.statm.BasicFor BasicFor} node.
*/
protected void writeCompositeAttributes(BasicFor node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((For)node, false);
writeRange("FirstSemiPosition", node.getFirstSemiPosition());
writeRange("SecondSemiPosition", node.getSecondSemiPosition());
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.statm.Block Block} node.
*/
protected void writeCompositeAttributes(Block node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Statement)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.statm.Break Break} node.
*/
protected void writeCompositeAttributes(Break node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Jump)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.statm.Case Case} node.
*/
protected void writeCompositeAttributes(Case node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((SwitchLabel)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.statm.Continue Continue} node.
*/
protected void writeCompositeAttributes(Continue node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Jump)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.statm.Default Default} node.
*/
protected void writeCompositeAttributes(Default node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((SwitchLabel)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.statm.Do Do} node.
*/
protected void writeCompositeAttributes(Do node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Iteration)node, false);
writeRange("WhilePosition", node.getWhilePosition());
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.statm.Empty Empty} node.
*/
protected void writeCompositeAttributes(Empty node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Statement)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.statm.EnhancedFor EnhancedFor} node.
*/
protected void writeCompositeAttributes(EnhancedFor node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((For)node, false);
writeRange("ColonPosition", node.getColonPosition());
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.statm.ExpressionStatement ExpressionStatement} node.
*/
protected void writeCompositeAttributes(ExpressionStatement node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Statement)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.statm.For For} node.
*/
protected void writeCompositeAttributes(For node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Iteration)node, false);
writeRange("LeftParenPosition", node.getLeftParenPosition());
writeRange("RightParenPosition", node.getRightParenPosition());
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.statm.Handler Handler} node.
*/
protected void writeCompositeAttributes(Handler node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Positioned)node, false);
writeRange("LeftParenPosition", node.getLeftParenPosition());
writeRange("RightParenPosition", node.getRightParenPosition());
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.statm.If If} node.
*/
protected void writeCompositeAttributes(If node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Selection)node, false);
writeRange("ElsePosition", node.getElsePosition());
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.statm.Iteration Iteration} node.
*/
protected void writeCompositeAttributes(Iteration node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Statement)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.statm.Jump Jump} node.
*/
protected void writeCompositeAttributes(Jump node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Statement)node, false);
writeRange("LabelPosition", node.getLabelPosition());
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.statm.LabeledStatement LabeledStatement} node.
*/
protected void writeCompositeAttributes(LabeledStatement node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Statement)node, false);
writeRange("ColonPosition", node.getColonPosition());
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.statm.Return Return} node.
*/
protected void writeCompositeAttributes(Return node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Statement)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.statm.Selection Selection} node.
*/
protected void writeCompositeAttributes(Selection node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Statement)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.statm.Statement Statement} node.
*/
protected void writeCompositeAttributes(Statement node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Positioned)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.statm.Switch Switch} node.
*/
protected void writeCompositeAttributes(Switch node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Selection)node, false);
writeRange("BlockStartPosition", node.getBlockStartPosition());
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.statm.SwitchLabel SwitchLabel} node.
*/
protected void writeCompositeAttributes(SwitchLabel node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Positioned)node, false);
writeRange("ColonPosition", node.getColonPosition());
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.statm.Synchronized Synchronized} node.
*/
protected void writeCompositeAttributes(Synchronized node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Statement)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.statm.Throw Throw} node.
*/
protected void writeCompositeAttributes(Throw node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Statement)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.statm.Try Try} node.
*/
protected void writeCompositeAttributes(Try node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Statement)node, false);
writeRange("ResourceLeftParenPosition", node.getResourceLeftParenPosition());
writeRange("ResourceRightParenPosition", node.getResourceRightParenPosition());
writeRange("FinallyPosition", node.getFinallyPosition());
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.statm.While While} node.
*/
protected void writeCompositeAttributes(While node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Iteration)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.struc.AnnotatedElement AnnotatedElement} node.
*/
protected void writeCompositeAttributes(AnnotatedElement node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.struc.AnnotationType AnnotationType} node.
*/
protected void writeCompositeAttributes(AnnotationType node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
if (callVirtualBase)
writeCompositeAttributes((Member)node, false);
writeCompositeAttributes((TypeDeclaration)node, false);
writeRange("AtSignPosition", node.getAtSignPosition());
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.struc.AnnotationTypeElement AnnotationTypeElement} node.
*/
protected void writeCompositeAttributes(AnnotationTypeElement node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
if (callVirtualBase)
writeCompositeAttributes((Member)node, false);
writeCompositeAttributes((MethodDeclaration)node, false);
writeRange("DefaultPosition", node.getDefaultPosition());
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.struc.AnonymousClass AnonymousClass} node.
*/
protected void writeCompositeAttributes(AnonymousClass node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
if (callVirtualBase)
writeCompositeAttributes((Member)node, false);
writeCompositeAttributes((ClassDeclaration)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.struc.Class Class} node.
*/
protected void writeCompositeAttributes(Class node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
if (callVirtualBase)
writeCompositeAttributes((Member)node, false);
writeCompositeAttributes((ClassDeclaration)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.struc.ClassDeclaration ClassDeclaration} node.
*/
protected void writeCompositeAttributes(ClassDeclaration node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
if (callVirtualBase)
writeCompositeAttributes((Member)node, false);
writeCompositeAttributes((TypeDeclaration)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.struc.ClassGeneric ClassGeneric} node.
*/
protected void writeCompositeAttributes(ClassGeneric node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
if (callVirtualBase)
writeCompositeAttributes((Member)node, false);
writeCompositeAttributes((ClassDeclaration)node, false);
writeCompositeAttributes((GenericDeclaration)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.struc.CompilationUnit CompilationUnit} node.
*/
protected void writeCompositeAttributes(CompilationUnit node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
writeCompositeAttributes((PositionedWithoutComment)node, false);
writeCompositeAttributes((Commentable)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.struc.Declaration Declaration} node.
*/
protected void writeCompositeAttributes(Declaration node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
if (callVirtualBase)
writeCompositeAttributes((Member)node, false);
writeCompositeAttributes((Statement)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.struc.Enum Enum} node.
*/
protected void writeCompositeAttributes(Enum node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
if (callVirtualBase)
writeCompositeAttributes((Member)node, false);
writeCompositeAttributes((TypeDeclaration)node, false);
writeRange("SemiPosition", node.getSemiPosition());
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.struc.EnumConstant EnumConstant} node.
*/
protected void writeCompositeAttributes(EnumConstant node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
if (callVirtualBase)
writeCompositeAttributes((Member)node, false);
writeCompositeAttributes((VariableDeclaration)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.struc.GenericDeclaration GenericDeclaration} node.
*/
protected void writeCompositeAttributes(GenericDeclaration node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.struc.Import Import} node.
*/
protected void writeCompositeAttributes(Import node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Positioned)node, false);
writeRange("StaticPosition", node.getStaticPosition());
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.struc.InitializerBlock InitializerBlock} node.
*/
protected void writeCompositeAttributes(InitializerBlock node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
if (callVirtualBase)
writeCompositeAttributes((Member)node, false);
writeCompositeAttributes((Declaration)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.struc.InstanceInitializerBlock InstanceInitializerBlock} node.
*/
protected void writeCompositeAttributes(InstanceInitializerBlock node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
if (callVirtualBase)
writeCompositeAttributes((Member)node, false);
writeCompositeAttributes((InitializerBlock)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.struc.Interface Interface} node.
*/
protected void writeCompositeAttributes(Interface node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
if (callVirtualBase)
writeCompositeAttributes((Member)node, false);
writeCompositeAttributes((InterfaceDeclaration)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.struc.InterfaceDeclaration InterfaceDeclaration} node.
*/
protected void writeCompositeAttributes(InterfaceDeclaration node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
if (callVirtualBase)
writeCompositeAttributes((Member)node, false);
writeCompositeAttributes((TypeDeclaration)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.struc.InterfaceGeneric InterfaceGeneric} node.
*/
protected void writeCompositeAttributes(InterfaceGeneric node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
if (callVirtualBase)
writeCompositeAttributes((Member)node, false);
writeCompositeAttributes((InterfaceDeclaration)node, false);
writeCompositeAttributes((GenericDeclaration)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.struc.Member Member} node.
*/
protected void writeCompositeAttributes(Member node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((AnnotatedElement)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.struc.Method Method} node.
*/
protected void writeCompositeAttributes(Method node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
if (callVirtualBase)
writeCompositeAttributes((Member)node, false);
writeCompositeAttributes((NormalMethod)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.struc.MethodDeclaration MethodDeclaration} node.
*/
protected void writeCompositeAttributes(MethodDeclaration node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
if (callVirtualBase)
writeCompositeAttributes((Member)node, false);
writeCompositeAttributes((NamedDeclaration)node, false);
writeRange("AbstractPosition", node.getAbstractPosition());
writeRange("StrictfpPosition", node.getStrictfpPosition());
writeRange("ParametersStartPosition", node.getParametersStartPosition());
writeRange("ParametersEndPosition", node.getParametersEndPosition());
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.struc.MethodGeneric MethodGeneric} node.
*/
protected void writeCompositeAttributes(MethodGeneric node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
if (callVirtualBase)
writeCompositeAttributes((Member)node, false);
writeCompositeAttributes((NormalMethod)node, false);
writeCompositeAttributes((GenericDeclaration)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.struc.Module Module} node.
*/
protected void writeCompositeAttributes(Module node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
writeCompositeAttributes((Named)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.struc.ModuleDeclaration ModuleDeclaration} node.
*/
protected void writeCompositeAttributes(ModuleDeclaration node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Positioned)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.struc.NamedDeclaration NamedDeclaration} node.
*/
protected void writeCompositeAttributes(NamedDeclaration node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
if (callVirtualBase)
writeCompositeAttributes((Member)node, false);
writeCompositeAttributes((Declaration)node, false);
writeCompositeAttributes((Named)node, false);
writeRange("AccessibilityPosition", node.getAccessibilityPosition());
writeRange("StaticPosition", node.getStaticPosition());
writeRange("FinalPosition", node.getFinalPosition());
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.struc.NormalMethod NormalMethod} node.
*/
protected void writeCompositeAttributes(NormalMethod node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
if (callVirtualBase)
writeCompositeAttributes((Member)node, false);
writeCompositeAttributes((MethodDeclaration)node, false);
writeRange("SynchronizedPosition", node.getSynchronizedPosition());
writeRange("NativePosition", node.getNativePosition());
writeRange("ThrowsPosition", node.getThrowsPosition());
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.struc.Package Package} node.
*/
protected void writeCompositeAttributes(Package node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
if (callVirtualBase)
writeCompositeAttributes((Member)node, false);
writeCompositeAttributes((Named)node, false);
writeCompositeAttributes((Scope)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.struc.PackageDeclaration PackageDeclaration} node.
*/
protected void writeCompositeAttributes(PackageDeclaration node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Positioned)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.struc.Parameter Parameter} node.
*/
protected void writeCompositeAttributes(Parameter node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
if (callVirtualBase)
writeCompositeAttributes((Member)node, false);
writeCompositeAttributes((VariableDeclaration)node, false);
writeRange("VarargsPosition", node.getVarargsPosition());
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.struc.Scope Scope} node.
*/
protected void writeCompositeAttributes(Scope node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
if (callVirtualBase)
writeCompositeAttributes((Member)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.struc.StaticInitializerBlock StaticInitializerBlock} node.
*/
protected void writeCompositeAttributes(StaticInitializerBlock node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
if (callVirtualBase)
writeCompositeAttributes((Member)node, false);
writeCompositeAttributes((InitializerBlock)node, false);
writeRange("BlockStartPosition", node.getBlockStartPosition());
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.struc.TypeDeclaration TypeDeclaration} node.
*/
protected void writeCompositeAttributes(TypeDeclaration node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
if (callVirtualBase)
writeCompositeAttributes((Member)node, false);
writeCompositeAttributes((NamedDeclaration)node, false);
writeCompositeAttributes((Scope)node, false);
writeRange("TypeNamePosition", node.getTypeNamePosition());
writeRange("AbstractPosition", node.getAbstractPosition());
writeRange("StrictfpPosition", node.getStrictfpPosition());
writeRange("ExtendsPosition", node.getExtendsPosition());
writeRange("ImplementsPosition", node.getImplementsPosition());
writeRange("BodyStartPosition", node.getBodyStartPosition());
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.struc.TypeParameter TypeParameter} node.
*/
protected void writeCompositeAttributes(TypeParameter node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
writeCompositeAttributes((Positioned)node, false);
writeCompositeAttributes((Named)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.struc.Variable Variable} node.
*/
protected void writeCompositeAttributes(Variable node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
if (callVirtualBase)
writeCompositeAttributes((Member)node, false);
writeCompositeAttributes((VariableDeclaration)node, false);
writeRange("TransientPosition", node.getTransientPosition());
writeRange("VolatilePosition", node.getVolatilePosition());
writeRange("EqualSignPosition", node.getEqualSignPosition());
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.struc.VariableDeclaration VariableDeclaration} node.
*/
protected void writeCompositeAttributes(VariableDeclaration node, boolean callVirtualBase) {
if (callVirtualBase)
writeCompositeAttributes((Base)node, false);
if (callVirtualBase)
writeCompositeAttributes((Commentable)node, false);
if (callVirtualBase)
writeCompositeAttributes((Member)node, false);
writeCompositeAttributes((NamedDeclaration)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.type.ArrayType ArrayType} node.
*/
protected void writeCompositeAttributes(ArrayType node, boolean callVirtualBase) {
writeCompositeAttributes((Type)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.type.BooleanType BooleanType} node.
*/
protected void writeCompositeAttributes(BooleanType node, boolean callVirtualBase) {
writeCompositeAttributes((PrimitiveType)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.type.BoundedWildcardType BoundedWildcardType} node.
*/
protected void writeCompositeAttributes(BoundedWildcardType node, boolean callVirtualBase) {
writeCompositeAttributes((WildcardType)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.type.ByteType ByteType} node.
*/
protected void writeCompositeAttributes(ByteType node, boolean callVirtualBase) {
writeCompositeAttributes((PrimitiveType)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.type.CharType CharType} node.
*/
protected void writeCompositeAttributes(CharType node, boolean callVirtualBase) {
writeCompositeAttributes((PrimitiveType)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.type.ClassType ClassType} node.
*/
protected void writeCompositeAttributes(ClassType node, boolean callVirtualBase) {
writeCompositeAttributes((ScopedType)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.type.DoubleType DoubleType} node.
*/
protected void writeCompositeAttributes(DoubleType node, boolean callVirtualBase) {
writeCompositeAttributes((PrimitiveType)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.type.ErrorType ErrorType} node.
*/
protected void writeCompositeAttributes(ErrorType node, boolean callVirtualBase) {
writeCompositeAttributes((Type)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.type.FloatType FloatType} node.
*/
protected void writeCompositeAttributes(FloatType node, boolean callVirtualBase) {
writeCompositeAttributes((PrimitiveType)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.type.IntType IntType} node.
*/
protected void writeCompositeAttributes(IntType node, boolean callVirtualBase) {
writeCompositeAttributes((PrimitiveType)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.type.IntersectionType IntersectionType} node.
*/
protected void writeCompositeAttributes(IntersectionType node, boolean callVirtualBase) {
writeCompositeAttributes((Type)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.type.LongType LongType} node.
*/
protected void writeCompositeAttributes(LongType node, boolean callVirtualBase) {
writeCompositeAttributes((PrimitiveType)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.type.LowerBoundedWildcardType LowerBoundedWildcardType} node.
*/
protected void writeCompositeAttributes(LowerBoundedWildcardType node, boolean callVirtualBase) {
writeCompositeAttributes((BoundedWildcardType)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.type.MethodType MethodType} node.
*/
protected void writeCompositeAttributes(MethodType node, boolean callVirtualBase) {
writeCompositeAttributes((Type)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.type.ModuleType ModuleType} node.
*/
protected void writeCompositeAttributes(ModuleType node, boolean callVirtualBase) {
writeCompositeAttributes((Type)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.type.NoType NoType} node.
*/
protected void writeCompositeAttributes(NoType node, boolean callVirtualBase) {
writeCompositeAttributes((Type)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.type.NullType NullType} node.
*/
protected void writeCompositeAttributes(NullType node, boolean callVirtualBase) {
writeCompositeAttributes((Type)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.type.PackageType PackageType} node.
*/
protected void writeCompositeAttributes(PackageType node, boolean callVirtualBase) {
writeCompositeAttributes((Type)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.type.ParameterizedType ParameterizedType} node.
*/
protected void writeCompositeAttributes(ParameterizedType node, boolean callVirtualBase) {
writeCompositeAttributes((ScopedType)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.type.PrimitiveType PrimitiveType} node.
*/
protected void writeCompositeAttributes(PrimitiveType node, boolean callVirtualBase) {
writeCompositeAttributes((Type)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.type.ScopedType ScopedType} node.
*/
protected void writeCompositeAttributes(ScopedType node, boolean callVirtualBase) {
writeCompositeAttributes((Type)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.type.ShortType ShortType} node.
*/
protected void writeCompositeAttributes(ShortType node, boolean callVirtualBase) {
writeCompositeAttributes((PrimitiveType)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.type.Type Type} node.
*/
protected void writeCompositeAttributes(Type node, boolean callVirtualBase) {
writeCompositeAttributes((Base)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.type.TypeVariable TypeVariable} node.
*/
protected void writeCompositeAttributes(TypeVariable node, boolean callVirtualBase) {
writeCompositeAttributes((Type)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.type.UnboundedWildcardType UnboundedWildcardType} node.
*/
protected void writeCompositeAttributes(UnboundedWildcardType node, boolean callVirtualBase) {
writeCompositeAttributes((WildcardType)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.type.UnionType UnionType} node.
*/
protected void writeCompositeAttributes(UnionType node, boolean callVirtualBase) {
writeCompositeAttributes((Type)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.type.UpperBoundedWildcardType UpperBoundedWildcardType} node.
*/
protected void writeCompositeAttributes(UpperBoundedWildcardType node, boolean callVirtualBase) {
writeCompositeAttributes((BoundedWildcardType)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.type.VoidType VoidType} node.
*/
protected void writeCompositeAttributes(VoidType node, boolean callVirtualBase) {
writeCompositeAttributes((PrimitiveType)node, false);
}
/**
* Writes out the composite attributes of the {@link columbus.java.asg.type.WildcardType WildcardType} node.
*/
protected void writeCompositeAttributes(WildcardType node, boolean callVirtualBase) {
writeCompositeAttributes((Type)node, false);
}
}
| 368,172 | 35.109553 | 174 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/MethodGeneric.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
/**
* Interface MethodGeneric, which represents the {@link columbus.java.asg.struc.MethodGeneric MethodGeneric} node.
* @columbus.node (missing)
*/
public interface MethodGeneric extends NormalMethod, GenericDeclaration {
}
| 995 | 30.125 | 114 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/AnnotationType.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
import columbus.java.asg.*;
/**
* Interface AnnotationType, which represents the {@link columbus.java.asg.struc.AnnotationType AnnotationType} node.
* @columbus.node (missing)
* @columbus.attr atSignPosition (Range) : (missing)
*/
public interface AnnotationType extends TypeDeclaration {
/**
* Gives back the {@link columbus.java.asg.struc.AnnotationType#attributeAtSignPosition atSignPosition} of the node.
* @return Returns with the atSignPosition.
*/
public Range getAtSignPosition();
/**
* Sets the {@link columbus.java.asg.struc.AnnotationType#attributeAtSignPosition atSignPosition} of the node.
* @param value The new value of the atSignPosition.
*/
public void setAtSignPosition(Range value);
}
| 1,494 | 31.5 | 117 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/ClassDeclaration.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
/**
* Interface ClassDeclaration, which represents the {@link columbus.java.asg.struc.ClassDeclaration ClassDeclaration} node.
* @columbus.node (missing)
*/
public interface ClassDeclaration extends TypeDeclaration {
}
| 990 | 29.96875 | 123 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/InstanceInitializerBlockImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.base.Base;
import columbus.java.asg.statm.Block;
import columbus.java.asg.base.Comment;
import columbus.java.asg.expr.Annotation;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.struc.InstanceInitializerBlock InstanceInitializerBlock} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class InstanceInitializerBlockImpl extends BaseImpl implements InstanceInitializerBlock {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(InstanceInitializerBlockImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
protected EdgeList<Comment> _comments;
protected EdgeList<Annotation> _hasAnnotations;
protected Object position;
protected boolean isCompilerGenerated;
protected boolean isToolGenerated;
protected int lloc;
protected int _hasBody;
public InstanceInitializerBlockImpl(int id, Factory factory) {
super(id, factory);
position = new Range(factory.getStringTable());
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkInstanceInitializerBlock;
}
@Override
public Range getPosition() {
return (Range)position;
}
@Override
public void setPosition(Range _position) {
if (factory.getStringTable() == _position.getStringTable())
position = _position;
else
position = new Range(factory.getStringTable(), _position);
}
@Override
public boolean getIsCompilerGenerated() {
return isCompilerGenerated;
}
@Override
public boolean getIsToolGenerated() {
return isToolGenerated;
}
@Override
public void setIsCompilerGenerated(boolean _isCompilerGenerated) {
isCompilerGenerated = _isCompilerGenerated;
}
@Override
public void setIsToolGenerated(boolean _isToolGenerated) {
isToolGenerated = _isToolGenerated;
}
@Override
public int getLloc() {
return lloc;
}
@Override
public void setLloc(int _lloc) {
lloc = _lloc;
}
@Override
public EdgeIterator<Comment> getCommentsIterator() {
if (_comments == null)
return EdgeList.<Comment>emptyList().iterator();
else
return _comments.iterator();
}
@Override
public boolean getCommentsIsEmpty() {
if (_comments == null)
return true;
else
return _comments.isEmpty();
}
@Override
public int getCommentsSize() {
if (_comments == null)
return 0;
else
return _comments.size();
}
@Override
public void addComments(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkComment)) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void addComments(Comment _node) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_node);
}
@Override
public EdgeIterator<Annotation> getAnnotationsIterator() {
if (_hasAnnotations == null)
return EdgeList.<Annotation>emptyList().iterator();
else
return _hasAnnotations.iterator();
}
@Override
public boolean getAnnotationsIsEmpty() {
if (_hasAnnotations == null)
return true;
else
return _hasAnnotations.isEmpty();
}
@Override
public int getAnnotationsSize() {
if (_hasAnnotations == null)
return 0;
else
return _hasAnnotations.size();
}
@Override
public void addAnnotations(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkAnnotation)) {
if (_hasAnnotations == null)
_hasAnnotations = new EdgeList<Annotation>(factory);
_hasAnnotations.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addAnnotations(Annotation _node) {
if (_hasAnnotations == null)
_hasAnnotations = new EdgeList<Annotation>(factory);
_hasAnnotations.add(_node);
setParentEdge(_node);
}
@Override
public Block getBody() {
if (_hasBody == 0)
return null;
if (factory.getIsFiltered(_hasBody))
return null;
return (Block)factory.getRef(_hasBody);
}
@Override
public void setBody(int _id) {
if (_hasBody != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasBody" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (_node.getNodeKind() == NodeKind.ndkBlock) {
_hasBody = _id;
setParentEdge(_hasBody);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setBody(Block _node) {
if (_hasBody != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasBody" ));
_hasBody = _node.getId();
setParentEdge(_hasBody);
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
if (_comments != null) {
EdgeIterator<Comment> it = getCommentsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
if (_hasAnnotations != null) {
EdgeIterator<Annotation> it = getAnnotationsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
io.writeInt4(((Range)position).getPathKey());
io.writeInt4(((Range)position).getLine());
io.writeInt4(((Range)position).getCol());
io.writeInt4(((Range)position).getEndLine());
io.writeInt4(((Range)position).getEndCol());
io.writeInt4(((Range)position).getWideLine());
io.writeInt4(((Range)position).getWideCol());
io.writeInt4(((Range)position).getWideEndLine());
io.writeInt4(((Range)position).getWideEndCol());
{
byte boolValues = 0;
boolValues <<= 1;
if (isCompilerGenerated)
boolValues |= 1;
boolValues <<= 1;
if (isToolGenerated)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeInt4(lloc);
io.writeInt4(!factory.getIsFiltered(_hasBody) ? _hasBody : 0);
}
// ---------- Load ----------
@Override
public void load(IO io) {
int _id;
_id = io.readInt4();
if (_id != 0) {
_comments = new EdgeList<Comment>(factory);
while (_id != 0) {
_comments.add(_id);
_id = io.readInt4();
}
}
_id = io.readInt4();
if (_id != 0) {
_hasAnnotations = new EdgeList<Annotation>(factory);
while (_id != 0) {
_hasAnnotations.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
((Range)position).setPathKey(io.readInt4());
((Range)position).setLine(io.readInt4());
((Range)position).setCol(io.readInt4());
((Range)position).setEndLine(io.readInt4());
((Range)position).setEndCol(io.readInt4());
((Range)position).setWideLine(io.readInt4());
((Range)position).setWideCol(io.readInt4());
((Range)position).setWideEndLine(io.readInt4());
((Range)position).setWideEndCol(io.readInt4());
{
byte boolValues = io.readByte1();
isToolGenerated = (boolValues & 1) != 0;
boolValues >>>= 1;
isCompilerGenerated = (boolValues & 1) != 0;
boolValues >>>= 1;
}
lloc = io.readInt4();
_hasBody = io.readInt4();
if (_hasBody != 0)
setParentEdge(_hasBody);
}
}
| 8,750 | 23.512605 | 146 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/ImportImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.base.Base;
import columbus.java.asg.expr.Expression;
import columbus.java.asg.base.Comment;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.struc.Import Import} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class ImportImpl extends BaseImpl implements Import {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(ImportImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
protected EdgeList<Comment> _comments;
protected Object position;
protected boolean isCompilerGenerated;
protected boolean isToolGenerated;
protected boolean isStatic;
protected Object staticPosition;
protected int _hasTarget;
public ImportImpl(int id, Factory factory) {
super(id, factory);
position = new Range(factory.getStringTable());
staticPosition = new Range(factory.getStringTable());
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkImport;
}
@Override
public Range getPosition() {
return (Range)position;
}
@Override
public void setPosition(Range _position) {
if (factory.getStringTable() == _position.getStringTable())
position = _position;
else
position = new Range(factory.getStringTable(), _position);
}
@Override
public boolean getIsCompilerGenerated() {
return isCompilerGenerated;
}
@Override
public boolean getIsToolGenerated() {
return isToolGenerated;
}
@Override
public void setIsCompilerGenerated(boolean _isCompilerGenerated) {
isCompilerGenerated = _isCompilerGenerated;
}
@Override
public void setIsToolGenerated(boolean _isToolGenerated) {
isToolGenerated = _isToolGenerated;
}
@Override
public boolean getIsStatic() {
return isStatic;
}
@Override
public Range getStaticPosition() {
return (Range)staticPosition;
}
@Override
public void setIsStatic(boolean _isStatic) {
isStatic = _isStatic;
}
@Override
public void setStaticPosition(Range _staticPosition) {
if (factory.getStringTable() == _staticPosition.getStringTable())
staticPosition = _staticPosition;
else
staticPosition = new Range(factory.getStringTable(), _staticPosition);
}
@Override
public EdgeIterator<Comment> getCommentsIterator() {
if (_comments == null)
return EdgeList.<Comment>emptyList().iterator();
else
return _comments.iterator();
}
@Override
public boolean getCommentsIsEmpty() {
if (_comments == null)
return true;
else
return _comments.isEmpty();
}
@Override
public int getCommentsSize() {
if (_comments == null)
return 0;
else
return _comments.size();
}
@Override
public void addComments(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkComment)) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void addComments(Comment _node) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_node);
}
@Override
public Expression getTarget() {
if (_hasTarget == 0)
return null;
if (factory.getIsFiltered(_hasTarget))
return null;
return (Expression)factory.getRef(_hasTarget);
}
@Override
public void setTarget(int _id) {
if (_hasTarget != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasTarget" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkExpression)) {
_hasTarget = _id;
setParentEdge(_hasTarget);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setTarget(Expression _node) {
if (_hasTarget != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasTarget" ));
_hasTarget = _node.getId();
setParentEdge(_hasTarget);
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
if (_comments != null) {
EdgeIterator<Comment> it = getCommentsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
io.writeInt4(((Range)position).getPathKey());
io.writeInt4(((Range)position).getLine());
io.writeInt4(((Range)position).getCol());
io.writeInt4(((Range)position).getEndLine());
io.writeInt4(((Range)position).getEndCol());
io.writeInt4(((Range)position).getWideLine());
io.writeInt4(((Range)position).getWideCol());
io.writeInt4(((Range)position).getWideEndLine());
io.writeInt4(((Range)position).getWideEndCol());
{
byte boolValues = 0;
boolValues <<= 1;
if (isCompilerGenerated)
boolValues |= 1;
boolValues <<= 1;
if (isToolGenerated)
boolValues |= 1;
io.writeByte1(boolValues);
}
{
byte boolValues = 0;
boolValues <<= 1;
if (isStatic)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeInt4(((Range)staticPosition).getPathKey());
io.writeInt4(((Range)staticPosition).getLine());
io.writeInt4(((Range)staticPosition).getCol());
io.writeInt4(((Range)staticPosition).getEndLine());
io.writeInt4(((Range)staticPosition).getEndCol());
io.writeInt4(((Range)staticPosition).getWideLine());
io.writeInt4(((Range)staticPosition).getWideCol());
io.writeInt4(((Range)staticPosition).getWideEndLine());
io.writeInt4(((Range)staticPosition).getWideEndCol());
io.writeInt4(!factory.getIsFiltered(_hasTarget) ? _hasTarget : 0);
}
// ---------- Load ----------
@Override
public void load(IO io) {
int _id;
_id = io.readInt4();
if (_id != 0) {
_comments = new EdgeList<Comment>(factory);
while (_id != 0) {
_comments.add(_id);
_id = io.readInt4();
}
}
((Range)position).setPathKey(io.readInt4());
((Range)position).setLine(io.readInt4());
((Range)position).setCol(io.readInt4());
((Range)position).setEndLine(io.readInt4());
((Range)position).setEndCol(io.readInt4());
((Range)position).setWideLine(io.readInt4());
((Range)position).setWideCol(io.readInt4());
((Range)position).setWideEndLine(io.readInt4());
((Range)position).setWideEndCol(io.readInt4());
{
byte boolValues = io.readByte1();
isToolGenerated = (boolValues & 1) != 0;
boolValues >>>= 1;
isCompilerGenerated = (boolValues & 1) != 0;
boolValues >>>= 1;
}
{
byte boolValues = io.readByte1();
isStatic = (boolValues & 1) != 0;
boolValues >>>= 1;
}
((Range)staticPosition).setPathKey(io.readInt4());
((Range)staticPosition).setLine(io.readInt4());
((Range)staticPosition).setCol(io.readInt4());
((Range)staticPosition).setEndLine(io.readInt4());
((Range)staticPosition).setEndCol(io.readInt4());
((Range)staticPosition).setWideLine(io.readInt4());
((Range)staticPosition).setWideCol(io.readInt4());
((Range)staticPosition).setWideEndLine(io.readInt4());
((Range)staticPosition).setWideEndCol(io.readInt4());
_hasTarget = io.readInt4();
if (_hasTarget != 0)
setParentEdge(_hasTarget);
}
}
| 8,606 | 25.081818 | 128 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/AnnotatedElement.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
import columbus.java.asg.*;
import columbus.java.asg.expr.Annotation;
import columbus.java.asg.base.Base;
/**
* Interface AnnotatedElement, which represents the {@link columbus.java.asg.struc.AnnotatedElement AnnotatedElement} node.
* @columbus.node (missing)
* @columbus.edge hasAnnotations ({@link columbus.java.asg.expr.Annotation Annotation}, multiple) : (missing)
*/
public interface AnnotatedElement extends Base {
/**
* Gives back iterator for the {@link columbus.java.asg.struc.AnnotatedElement#edgeHasAnnotations hasAnnotations} edges.
* @return Returns an iterator for the hasAnnotations edges.
*/
public EdgeIterator<Annotation> getAnnotationsIterator();
/**
* Tells whether the node has {@link columbus.java.asg.struc.AnnotatedElement#edgeHasAnnotations hasAnnotations} edges or not.
* @return Returns true if the node doesn't have any hasAnnotations edge.
*/
public boolean getAnnotationsIsEmpty();
/**
* Gives back how many {@link columbus.java.asg.struc.AnnotatedElement#edgeHasAnnotations hasAnnotations} edges the node has.
* @return Returns with the number of hasAnnotations edges.
*/
public int getAnnotationsSize();
/**
* Adds a new {@link columbus.java.asg.struc.AnnotatedElement#edgeHasAnnotations hasAnnotations} edge to the node.
* @param id The end point of the new hasAnnotations edge.
*/
public void addAnnotations(int id);
/**
* Adds a new {@link columbus.java.asg.struc.AnnotatedElement#edgeHasAnnotations hasAnnotations} edge to the node.
* @param node The end point of the new hasAnnotations edge.
*/
public void addAnnotations(Annotation node);
}
| 2,396 | 35.318182 | 127 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/NamedDeclaration.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
import columbus.java.asg.*;
import columbus.java.asg.base.Named;
import columbus.java.asg.enums.*;
/**
* Interface NamedDeclaration, which represents the {@link columbus.java.asg.struc.NamedDeclaration NamedDeclaration} node.
* @columbus.node (missing)
* @columbus.attr accessibility ({@link columbus.java.asg.enums.AccessibilityKind AccessibilityKind}) : (missing)
* @columbus.attr accessibilityPosition (Range) : (missing)
* @columbus.attr isStatic (boolean) : (missing)
* @columbus.attr staticPosition (Range) : (missing)
* @columbus.attr isFinal (boolean) : (missing)
* @columbus.attr finalPosition (Range) : (missing)
*/
public interface NamedDeclaration extends Declaration, Named {
/**
* Gives back the {@link columbus.java.asg.struc.NamedDeclaration#attributeAccessibility accessibility} of the node.
* @return Returns with the accessibility.
*/
public AccessibilityKind getAccessibility();
/**
* Sets the {@link columbus.java.asg.struc.NamedDeclaration#attributeAccessibility accessibility} of the node.
* @param value The new value of the accessibility.
*/
public void setAccessibility(AccessibilityKind value);
/**
* Gives back the {@link columbus.java.asg.struc.NamedDeclaration#attributeAccessibilityPosition accessibilityPosition} of the node.
* @return Returns with the accessibilityPosition.
*/
public Range getAccessibilityPosition();
/**
* Sets the {@link columbus.java.asg.struc.NamedDeclaration#attributeAccessibilityPosition accessibilityPosition} of the node.
* @param value The new value of the accessibilityPosition.
*/
public void setAccessibilityPosition(Range value);
/**
* Gives back the {@link columbus.java.asg.struc.NamedDeclaration#attributeIsStatic isStatic} of the node.
* @return Returns with the isStatic.
*/
public boolean getIsStatic();
/**
* Sets the {@link columbus.java.asg.struc.NamedDeclaration#attributeIsStatic isStatic} of the node.
* @param value The new value of the isStatic.
*/
public void setIsStatic(boolean value);
/**
* Gives back the {@link columbus.java.asg.struc.NamedDeclaration#attributeStaticPosition staticPosition} of the node.
* @return Returns with the staticPosition.
*/
public Range getStaticPosition();
/**
* Sets the {@link columbus.java.asg.struc.NamedDeclaration#attributeStaticPosition staticPosition} of the node.
* @param value The new value of the staticPosition.
*/
public void setStaticPosition(Range value);
/**
* Gives back the {@link columbus.java.asg.struc.NamedDeclaration#attributeIsFinal isFinal} of the node.
* @return Returns with the isFinal.
*/
public boolean getIsFinal();
/**
* Sets the {@link columbus.java.asg.struc.NamedDeclaration#attributeIsFinal isFinal} of the node.
* @param value The new value of the isFinal.
*/
public void setIsFinal(boolean value);
/**
* Gives back the {@link columbus.java.asg.struc.NamedDeclaration#attributeFinalPosition finalPosition} of the node.
* @return Returns with the finalPosition.
*/
public Range getFinalPosition();
/**
* Sets the {@link columbus.java.asg.struc.NamedDeclaration#attributeFinalPosition finalPosition} of the node.
* @param value The new value of the finalPosition.
*/
public void setFinalPosition(Range value);
}
| 4,046 | 34.814159 | 133 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/AnonymousClass.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
/**
* Interface AnonymousClass, which represents the {@link columbus.java.asg.struc.AnonymousClass AnonymousClass} node.
* @columbus.node (missing)
*/
public interface AnonymousClass extends ClassDeclaration {
}
| 983 | 29.75 | 117 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/PackageDeclarationImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.base.Base;
import columbus.java.asg.expr.Expression;
import columbus.java.asg.base.Comment;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.struc.PackageDeclaration PackageDeclaration} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class PackageDeclarationImpl extends BaseImpl implements PackageDeclaration {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(PackageDeclarationImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
protected EdgeList<Comment> _comments;
protected Object position;
protected boolean isCompilerGenerated;
protected boolean isToolGenerated;
protected int _hasPackageName;
protected int _refersTo;
public PackageDeclarationImpl(int id, Factory factory) {
super(id, factory);
position = new Range(factory.getStringTable());
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkPackageDeclaration;
}
@Override
public Range getPosition() {
return (Range)position;
}
@Override
public void setPosition(Range _position) {
if (factory.getStringTable() == _position.getStringTable())
position = _position;
else
position = new Range(factory.getStringTable(), _position);
}
@Override
public boolean getIsCompilerGenerated() {
return isCompilerGenerated;
}
@Override
public boolean getIsToolGenerated() {
return isToolGenerated;
}
@Override
public void setIsCompilerGenerated(boolean _isCompilerGenerated) {
isCompilerGenerated = _isCompilerGenerated;
}
@Override
public void setIsToolGenerated(boolean _isToolGenerated) {
isToolGenerated = _isToolGenerated;
}
@Override
public EdgeIterator<Comment> getCommentsIterator() {
if (_comments == null)
return EdgeList.<Comment>emptyList().iterator();
else
return _comments.iterator();
}
@Override
public boolean getCommentsIsEmpty() {
if (_comments == null)
return true;
else
return _comments.isEmpty();
}
@Override
public int getCommentsSize() {
if (_comments == null)
return 0;
else
return _comments.size();
}
@Override
public void addComments(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkComment)) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void addComments(Comment _node) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_node);
}
@Override
public Expression getPackageName() {
if (_hasPackageName == 0)
return null;
if (factory.getIsFiltered(_hasPackageName))
return null;
return (Expression)factory.getRef(_hasPackageName);
}
@Override
public Package getRefersTo() {
if (_refersTo == 0)
return null;
if (factory.getIsFiltered(_refersTo))
return null;
return (Package)factory.getRef(_refersTo);
}
@Override
public void setPackageName(int _id) {
if (_hasPackageName != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasPackageName" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkExpression)) {
_hasPackageName = _id;
setParentEdge(_hasPackageName);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setPackageName(Expression _node) {
if (_hasPackageName != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasPackageName" ));
_hasPackageName = _node.getId();
setParentEdge(_hasPackageName);
}
@Override
public void setRefersTo(int _id) {
if (_refersTo != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","refersTo" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (_node.getNodeKind() == NodeKind.ndkPackage) {
_refersTo = _id;
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setRefersTo(Package _node) {
if (_refersTo != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","refersTo" ));
_refersTo = _node.getId();
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
if (_comments != null) {
EdgeIterator<Comment> it = getCommentsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
io.writeInt4(((Range)position).getPathKey());
io.writeInt4(((Range)position).getLine());
io.writeInt4(((Range)position).getCol());
io.writeInt4(((Range)position).getEndLine());
io.writeInt4(((Range)position).getEndCol());
io.writeInt4(((Range)position).getWideLine());
io.writeInt4(((Range)position).getWideCol());
io.writeInt4(((Range)position).getWideEndLine());
io.writeInt4(((Range)position).getWideEndCol());
{
byte boolValues = 0;
boolValues <<= 1;
if (isCompilerGenerated)
boolValues |= 1;
boolValues <<= 1;
if (isToolGenerated)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeInt4(!factory.getIsFiltered(_hasPackageName) ? _hasPackageName : 0);
io.writeInt4(!factory.getIsFiltered(_refersTo) ? _refersTo : 0);
}
// ---------- Load ----------
@Override
public void load(IO io) {
int _id;
_id = io.readInt4();
if (_id != 0) {
_comments = new EdgeList<Comment>(factory);
while (_id != 0) {
_comments.add(_id);
_id = io.readInt4();
}
}
((Range)position).setPathKey(io.readInt4());
((Range)position).setLine(io.readInt4());
((Range)position).setCol(io.readInt4());
((Range)position).setEndLine(io.readInt4());
((Range)position).setEndCol(io.readInt4());
((Range)position).setWideLine(io.readInt4());
((Range)position).setWideCol(io.readInt4());
((Range)position).setWideEndLine(io.readInt4());
((Range)position).setWideEndCol(io.readInt4());
{
byte boolValues = io.readByte1();
isToolGenerated = (boolValues & 1) != 0;
boolValues >>>= 1;
isCompilerGenerated = (boolValues & 1) != 0;
boolValues >>>= 1;
}
_hasPackageName = io.readInt4();
if (_hasPackageName != 0)
setParentEdge(_hasPackageName);
_refersTo = io.readInt4();
}
}
| 8,024 | 24.887097 | 140 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/Declaration.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
import columbus.java.asg.statm.Statement;
/**
* Interface Declaration, which represents the {@link columbus.java.asg.struc.Declaration Declaration} node.
* @columbus.node (missing)
*/
public interface Declaration extends Member, Statement {
}
| 1,014 | 29.757576 | 108 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/ModuleDeclarationImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.base.Base;
import columbus.java.asg.expr.Expression;
import columbus.java.asg.module.ModuleDirective;
import columbus.java.asg.type.ModuleType;
import columbus.java.asg.base.Comment;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.struc.ModuleDeclaration ModuleDeclaration} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class ModuleDeclarationImpl extends BaseImpl implements ModuleDeclaration {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(ModuleDeclarationImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
protected EdgeList<Comment> _comments;
protected Object position;
protected boolean isCompilerGenerated;
protected boolean isToolGenerated;
protected ModuleKind moduleKind = ModuleKind.mkOpen;
protected int _hasName;
protected EdgeList<ModuleDirective> _hasDirectives;
protected int _moduleType;
protected int _refersTo;
public ModuleDeclarationImpl(int id, Factory factory) {
super(id, factory);
position = new Range(factory.getStringTable());
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkModuleDeclaration;
}
@Override
public Range getPosition() {
return (Range)position;
}
@Override
public void setPosition(Range _position) {
if (factory.getStringTable() == _position.getStringTable())
position = _position;
else
position = new Range(factory.getStringTable(), _position);
}
@Override
public boolean getIsCompilerGenerated() {
return isCompilerGenerated;
}
@Override
public boolean getIsToolGenerated() {
return isToolGenerated;
}
@Override
public void setIsCompilerGenerated(boolean _isCompilerGenerated) {
isCompilerGenerated = _isCompilerGenerated;
}
@Override
public void setIsToolGenerated(boolean _isToolGenerated) {
isToolGenerated = _isToolGenerated;
}
@Override
public ModuleKind getModuleKind() {
return moduleKind;
}
@Override
public void setModuleKind(ModuleKind _moduleKind) {
moduleKind = _moduleKind;
}
@Override
public EdgeIterator<Comment> getCommentsIterator() {
if (_comments == null)
return EdgeList.<Comment>emptyList().iterator();
else
return _comments.iterator();
}
@Override
public boolean getCommentsIsEmpty() {
if (_comments == null)
return true;
else
return _comments.isEmpty();
}
@Override
public int getCommentsSize() {
if (_comments == null)
return 0;
else
return _comments.size();
}
@Override
public void addComments(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkComment)) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void addComments(Comment _node) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_node);
}
@Override
public Expression getName() {
if (_hasName == 0)
return null;
if (factory.getIsFiltered(_hasName))
return null;
return (Expression)factory.getRef(_hasName);
}
@Override
public EdgeIterator<ModuleDirective> getDirectivesIterator() {
if (_hasDirectives == null)
return EdgeList.<ModuleDirective>emptyList().iterator();
else
return _hasDirectives.iterator();
}
@Override
public boolean getDirectivesIsEmpty() {
if (_hasDirectives == null)
return true;
else
return _hasDirectives.isEmpty();
}
@Override
public int getDirectivesSize() {
if (_hasDirectives == null)
return 0;
else
return _hasDirectives.size();
}
@Override
public ModuleType getModuleType() {
if (_moduleType == 0)
return null;
if (factory.getIsFiltered(_moduleType))
return null;
return (ModuleType)factory.getRef(_moduleType);
}
@Override
public Module getRefersTo() {
if (_refersTo == 0)
return null;
if (factory.getIsFiltered(_refersTo))
return null;
return (Module)factory.getRef(_refersTo);
}
@Override
public void setName(int _id) {
if (_hasName != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasName" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkExpression)) {
_hasName = _id;
setParentEdge(_hasName);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setName(Expression _node) {
if (_hasName != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasName" ));
_hasName = _node.getId();
setParentEdge(_hasName);
}
@Override
public void addDirectives(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkModuleDirective)) {
if (_hasDirectives == null)
_hasDirectives = new EdgeList<ModuleDirective>(factory);
_hasDirectives.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addDirectives(ModuleDirective _node) {
if (_hasDirectives == null)
_hasDirectives = new EdgeList<ModuleDirective>(factory);
_hasDirectives.add(_node);
setParentEdge(_node);
}
@Override
public void setModuleType(int _id) {
if (_moduleType != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","moduleType" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (_node.getNodeKind() == NodeKind.ndkModuleType) {
_moduleType = _id;
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setModuleType(ModuleType _node) {
if (_moduleType != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","moduleType" ));
_moduleType = _node.getId();
}
@Override
public void setRefersTo(int _id) {
if (_refersTo != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","refersTo" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (_node.getNodeKind() == NodeKind.ndkModule) {
_refersTo = _id;
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setRefersTo(Module _node) {
if (_refersTo != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","refersTo" ));
_refersTo = _node.getId();
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
if (_comments != null) {
EdgeIterator<Comment> it = getCommentsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
io.writeInt4(((Range)position).getPathKey());
io.writeInt4(((Range)position).getLine());
io.writeInt4(((Range)position).getCol());
io.writeInt4(((Range)position).getEndLine());
io.writeInt4(((Range)position).getEndCol());
io.writeInt4(((Range)position).getWideLine());
io.writeInt4(((Range)position).getWideCol());
io.writeInt4(((Range)position).getWideEndLine());
io.writeInt4(((Range)position).getWideEndCol());
{
byte boolValues = 0;
boolValues <<= 1;
if (isCompilerGenerated)
boolValues |= 1;
boolValues <<= 1;
if (isToolGenerated)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeUByte1(moduleKind.ordinal());
io.writeInt4(!factory.getIsFiltered(_hasName) ? _hasName : 0);
io.writeInt4(!factory.getIsFiltered(_moduleType) ? _moduleType : 0);
io.writeInt4(!factory.getIsFiltered(_refersTo) ? _refersTo : 0);
if (_hasDirectives != null) {
EdgeIterator<ModuleDirective> it = getDirectivesIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
}
// ---------- Load ----------
@Override
public void load(IO io) {
int _id;
_id = io.readInt4();
if (_id != 0) {
_comments = new EdgeList<Comment>(factory);
while (_id != 0) {
_comments.add(_id);
_id = io.readInt4();
}
}
((Range)position).setPathKey(io.readInt4());
((Range)position).setLine(io.readInt4());
((Range)position).setCol(io.readInt4());
((Range)position).setEndLine(io.readInt4());
((Range)position).setEndCol(io.readInt4());
((Range)position).setWideLine(io.readInt4());
((Range)position).setWideCol(io.readInt4());
((Range)position).setWideEndLine(io.readInt4());
((Range)position).setWideEndCol(io.readInt4());
{
byte boolValues = io.readByte1();
isToolGenerated = (boolValues & 1) != 0;
boolValues >>>= 1;
isCompilerGenerated = (boolValues & 1) != 0;
boolValues >>>= 1;
}
moduleKind = ModuleKind.values()[io.readUByte1()];
_hasName = io.readInt4();
if (_hasName != 0)
setParentEdge(_hasName);
_moduleType = io.readInt4();
_refersTo = io.readInt4();
_id = io.readInt4();
if (_id != 0) {
_hasDirectives = new EdgeList<ModuleDirective>(factory);
while (_id != 0) {
_hasDirectives.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
}
}
| 11,064 | 24.37844 | 139 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/Interface.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
/**
* Interface Interface, which represents the {@link columbus.java.asg.struc.Interface Interface} node.
* @columbus.node (missing)
*/
public interface Interface extends InterfaceDeclaration {
}
| 967 | 29.25 | 102 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/Package.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
import columbus.java.asg.*;
import columbus.java.asg.base.Named;
/**
* Interface Package, which represents the {@link columbus.java.asg.struc.Package Package} node.
* @columbus.node (missing)
* @columbus.attr qualifiedName (String) : (missing)
* @columbus.edge hasCompilationUnits ({@link columbus.java.asg.struc.CompilationUnit CompilationUnit}, multiple) : (missing)
* @columbus.edge isInModule ({@link columbus.java.asg.struc.Module Module}, multiple) : (missing)
*/
public interface Package extends Named, Scope {
/**
* Gives back the {@link columbus.java.asg.struc.Package#attributeQualifiedName qualifiedName} of the node.
* @return Returns with the qualifiedName.
*/
public String getQualifiedName();
/**
* Gives back the Key of {@link columbus.java.asg.struc.Package#attributeQualifiedName qualifiedName} of the node.
* @return Returns with the Key of the qualifiedName.
*/
public int getQualifiedNameKey();
/**
* Sets the {@link columbus.java.asg.struc.Package#attributeQualifiedName qualifiedName} of the node.
* @param value The new value of the qualifiedName.
*/
public void setQualifiedName(String value);
/**
* Gives back iterator for the {@link columbus.java.asg.struc.Package#edgeHasCompilationUnits hasCompilationUnits} edges.
* @return Returns an iterator for the hasCompilationUnits edges.
*/
public EdgeIterator<CompilationUnit> getCompilationUnitsIterator();
/**
* Tells whether the node has {@link columbus.java.asg.struc.Package#edgeHasCompilationUnits hasCompilationUnits} edges or not.
* @return Returns true if the node doesn't have any hasCompilationUnits edge.
*/
public boolean getCompilationUnitsIsEmpty();
/**
* Gives back how many {@link columbus.java.asg.struc.Package#edgeHasCompilationUnits hasCompilationUnits} edges the node has.
* @return Returns with the number of hasCompilationUnits edges.
*/
public int getCompilationUnitsSize();
/**
* Adds a new {@link columbus.java.asg.struc.Package#edgeHasCompilationUnits hasCompilationUnits} edge to the node.
* @param id The end point of the new hasCompilationUnits edge.
*/
public void addCompilationUnits(int id);
/**
* Adds a new {@link columbus.java.asg.struc.Package#edgeHasCompilationUnits hasCompilationUnits} edge to the node.
* @param node The end point of the new hasCompilationUnits edge.
*/
public void addCompilationUnits(CompilationUnit node);
/**
* Gives back iterator for the {@link columbus.java.asg.struc.Package#edgeIsInModule isInModule} edges.
* @return Returns an iterator for the isInModule edges.
*/
public EdgeIterator<Module> getIsInModuleIterator();
/**
* Tells whether the node has {@link columbus.java.asg.struc.Package#edgeIsInModule isInModule} edges or not.
* @return Returns true if the node doesn't have any isInModule edge.
*/
public boolean getIsInModuleIsEmpty();
/**
* Gives back how many {@link columbus.java.asg.struc.Package#edgeIsInModule isInModule} edges the node has.
* @return Returns with the number of isInModule edges.
*/
public int getIsInModuleSize();
/**
* Adds a new {@link columbus.java.asg.struc.Package#edgeIsInModule isInModule} edge to the node.
* @param id The end point of the new isInModule edge.
*/
public void addIsInModule(int id);
/**
* Adds a new {@link columbus.java.asg.struc.Package#edgeIsInModule isInModule} edge to the node.
* @param node The end point of the new isInModule edge.
*/
public void addIsInModule(Module node);
}
| 4,271 | 36.147826 | 128 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/ModuleDeclaration.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
import columbus.java.asg.*;
import columbus.java.asg.expr.Expression;
import columbus.java.asg.module.ModuleDirective;
import columbus.java.asg.type.ModuleType;
import columbus.java.asg.base.Positioned;
import columbus.java.asg.enums.*;
/**
* Interface ModuleDeclaration, which represents the {@link columbus.java.asg.struc.ModuleDeclaration ModuleDeclaration} node.
* @columbus.node (missing)
* @columbus.attr moduleKind ({@link columbus.java.asg.enums.ModuleKind ModuleKind}) : (missing)
* @columbus.edge hasName ({@link columbus.java.asg.expr.Expression Expression}, single) : (missing)
* @columbus.edge hasDirectives ({@link columbus.java.asg.module.ModuleDirective ModuleDirective}, multiple) : (missing)
* @columbus.edge moduleType ({@link columbus.java.asg.type.ModuleType ModuleType}, single) : (missing)
* @columbus.edge refersTo ({@link columbus.java.asg.struc.Module Module}, single) : (missing)
*/
public interface ModuleDeclaration extends Positioned {
/**
* Gives back the {@link columbus.java.asg.struc.ModuleDeclaration#attributeModuleKind moduleKind} of the node.
* @return Returns with the moduleKind.
*/
public ModuleKind getModuleKind();
/**
* Sets the {@link columbus.java.asg.struc.ModuleDeclaration#attributeModuleKind moduleKind} of the node.
* @param value The new value of the moduleKind.
*/
public void setModuleKind(ModuleKind value);
/**
* Gives back the reference of the node the {@link columbus.java.asg.struc.ModuleDeclaration#edgeHasName hasName} edge points to.
* @return Returns the end point of the hasName edge.
*/
public Expression getName();
/**
* Sets the {@link columbus.java.asg.struc.ModuleDeclaration#edgeHasName hasName} edge.
* @param id The new end point of the hasName edge.
*/
public void setName(int id);
/**
* Sets the {@link columbus.java.asg.struc.ModuleDeclaration#edgeHasName hasName} edge.
* @param node The new end point of the hasName edge.
*/
public void setName(Expression node);
/**
* Gives back iterator for the {@link columbus.java.asg.struc.ModuleDeclaration#edgeHasDirectives hasDirectives} edges.
* @return Returns an iterator for the hasDirectives edges.
*/
public EdgeIterator<ModuleDirective> getDirectivesIterator();
/**
* Tells whether the node has {@link columbus.java.asg.struc.ModuleDeclaration#edgeHasDirectives hasDirectives} edges or not.
* @return Returns true if the node doesn't have any hasDirectives edge.
*/
public boolean getDirectivesIsEmpty();
/**
* Gives back how many {@link columbus.java.asg.struc.ModuleDeclaration#edgeHasDirectives hasDirectives} edges the node has.
* @return Returns with the number of hasDirectives edges.
*/
public int getDirectivesSize();
/**
* Adds a new {@link columbus.java.asg.struc.ModuleDeclaration#edgeHasDirectives hasDirectives} edge to the node.
* @param id The end point of the new hasDirectives edge.
*/
public void addDirectives(int id);
/**
* Adds a new {@link columbus.java.asg.struc.ModuleDeclaration#edgeHasDirectives hasDirectives} edge to the node.
* @param node The end point of the new hasDirectives edge.
*/
public void addDirectives(ModuleDirective node);
/**
* Gives back the reference of the node the {@link columbus.java.asg.struc.ModuleDeclaration#edgeModuleType moduleType} edge points to.
* @return Returns the end point of the moduleType edge.
*/
public ModuleType getModuleType();
/**
* Sets the {@link columbus.java.asg.struc.ModuleDeclaration#edgeModuleType moduleType} edge.
* @param id The new end point of the moduleType edge.
*/
public void setModuleType(int id);
/**
* Sets the {@link columbus.java.asg.struc.ModuleDeclaration#edgeModuleType moduleType} edge.
* @param node The new end point of the moduleType edge.
*/
public void setModuleType(ModuleType node);
/**
* Gives back the reference of the node the {@link columbus.java.asg.struc.ModuleDeclaration#edgeRefersTo refersTo} edge points to.
* @return Returns the end point of the refersTo edge.
*/
public Module getRefersTo();
/**
* Sets the {@link columbus.java.asg.struc.ModuleDeclaration#edgeRefersTo refersTo} edge.
* @param id The new end point of the refersTo edge.
*/
public void setRefersTo(int id);
/**
* Sets the {@link columbus.java.asg.struc.ModuleDeclaration#edgeRefersTo refersTo} edge.
* @param node The new end point of the refersTo edge.
*/
public void setRefersTo(Module node);
}
| 5,225 | 36.597122 | 136 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/ParameterImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.base.Base;
import columbus.java.asg.expr.TypeExpression;
import columbus.java.asg.base.Comment;
import columbus.java.asg.expr.Annotation;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.struc.Parameter Parameter} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class ParameterImpl extends BaseImpl implements Parameter {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(ParameterImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
protected EdgeList<Comment> _comments;
protected EdgeList<Annotation> _hasAnnotations;
protected Object position;
protected boolean isCompilerGenerated;
protected boolean isToolGenerated;
protected int name;
protected Object namePosition;
protected AccessibilityKind accessibility = AccessibilityKind.ackNone;
protected Object accessibilityPosition;
protected boolean isStatic;
protected Object staticPosition;
protected boolean isFinal;
protected Object finalPosition;
protected int _hasType;
protected boolean isVarargs;
protected Object varargsPosition;
public ParameterImpl(int id, Factory factory) {
super(id, factory);
position = new Range(factory.getStringTable());
namePosition = new Range(factory.getStringTable());
accessibilityPosition = new Range(factory.getStringTable());
staticPosition = new Range(factory.getStringTable());
finalPosition = new Range(factory.getStringTable());
varargsPosition = new Range(factory.getStringTable());
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkParameter;
}
@Override
public Range getPosition() {
return (Range)position;
}
@Override
public void setPosition(Range _position) {
if (factory.getStringTable() == _position.getStringTable())
position = _position;
else
position = new Range(factory.getStringTable(), _position);
}
@Override
public boolean getIsCompilerGenerated() {
return isCompilerGenerated;
}
@Override
public boolean getIsToolGenerated() {
return isToolGenerated;
}
@Override
public void setIsCompilerGenerated(boolean _isCompilerGenerated) {
isCompilerGenerated = _isCompilerGenerated;
}
@Override
public void setIsToolGenerated(boolean _isToolGenerated) {
isToolGenerated = _isToolGenerated;
}
@Override
public String getName() {
return factory.getStringTable().get(name);
}
@Override
public int getNameKey() {
return name;
}
@Override
public Range getNamePosition() {
return (Range)namePosition;
}
@Override
public void setName(String _name) {
name = factory.getStringTable().set(_name);
}
@Override
public void setNamePosition(Range _namePosition) {
if (factory.getStringTable() == _namePosition.getStringTable())
namePosition = _namePosition;
else
namePosition = new Range(factory.getStringTable(), _namePosition);
}
@Override
public AccessibilityKind getAccessibility() {
return accessibility;
}
@Override
public Range getAccessibilityPosition() {
return (Range)accessibilityPosition;
}
@Override
public boolean getIsStatic() {
return isStatic;
}
@Override
public Range getStaticPosition() {
return (Range)staticPosition;
}
@Override
public boolean getIsFinal() {
return isFinal;
}
@Override
public Range getFinalPosition() {
return (Range)finalPosition;
}
@Override
public void setAccessibility(AccessibilityKind _accessibility) {
accessibility = _accessibility;
}
@Override
public void setAccessibilityPosition(Range _accessibilityPosition) {
if (factory.getStringTable() == _accessibilityPosition.getStringTable())
accessibilityPosition = _accessibilityPosition;
else
accessibilityPosition = new Range(factory.getStringTable(), _accessibilityPosition);
}
@Override
public void setIsStatic(boolean _isStatic) {
isStatic = _isStatic;
}
@Override
public void setStaticPosition(Range _staticPosition) {
if (factory.getStringTable() == _staticPosition.getStringTable())
staticPosition = _staticPosition;
else
staticPosition = new Range(factory.getStringTable(), _staticPosition);
}
@Override
public void setIsFinal(boolean _isFinal) {
isFinal = _isFinal;
}
@Override
public void setFinalPosition(Range _finalPosition) {
if (factory.getStringTable() == _finalPosition.getStringTable())
finalPosition = _finalPosition;
else
finalPosition = new Range(factory.getStringTable(), _finalPosition);
}
@Override
public boolean getIsVarargs() {
return isVarargs;
}
@Override
public Range getVarargsPosition() {
return (Range)varargsPosition;
}
@Override
public void setIsVarargs(boolean _isVarargs) {
isVarargs = _isVarargs;
}
@Override
public void setVarargsPosition(Range _varargsPosition) {
if (factory.getStringTable() == _varargsPosition.getStringTable())
varargsPosition = _varargsPosition;
else
varargsPosition = new Range(factory.getStringTable(), _varargsPosition);
}
@Override
public EdgeIterator<Comment> getCommentsIterator() {
if (_comments == null)
return EdgeList.<Comment>emptyList().iterator();
else
return _comments.iterator();
}
@Override
public boolean getCommentsIsEmpty() {
if (_comments == null)
return true;
else
return _comments.isEmpty();
}
@Override
public int getCommentsSize() {
if (_comments == null)
return 0;
else
return _comments.size();
}
@Override
public void addComments(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkComment)) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void addComments(Comment _node) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_node);
}
@Override
public EdgeIterator<Annotation> getAnnotationsIterator() {
if (_hasAnnotations == null)
return EdgeList.<Annotation>emptyList().iterator();
else
return _hasAnnotations.iterator();
}
@Override
public boolean getAnnotationsIsEmpty() {
if (_hasAnnotations == null)
return true;
else
return _hasAnnotations.isEmpty();
}
@Override
public int getAnnotationsSize() {
if (_hasAnnotations == null)
return 0;
else
return _hasAnnotations.size();
}
@Override
public void addAnnotations(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkAnnotation)) {
if (_hasAnnotations == null)
_hasAnnotations = new EdgeList<Annotation>(factory);
_hasAnnotations.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addAnnotations(Annotation _node) {
if (_hasAnnotations == null)
_hasAnnotations = new EdgeList<Annotation>(factory);
_hasAnnotations.add(_node);
setParentEdge(_node);
}
@Override
public TypeExpression getType() {
if (_hasType == 0)
return null;
if (factory.getIsFiltered(_hasType))
return null;
return (TypeExpression)factory.getRef(_hasType);
}
@Override
public void setType(int _id) {
if (_hasType != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasType" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkTypeExpression)) {
_hasType = _id;
setParentEdge(_hasType);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setType(TypeExpression _node) {
if (_hasType != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasType" ));
_hasType = _node.getId();
setParentEdge(_hasType);
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
if (_comments != null) {
EdgeIterator<Comment> it = getCommentsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
if (_hasAnnotations != null) {
EdgeIterator<Annotation> it = getAnnotationsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
io.writeInt4(((Range)position).getPathKey());
io.writeInt4(((Range)position).getLine());
io.writeInt4(((Range)position).getCol());
io.writeInt4(((Range)position).getEndLine());
io.writeInt4(((Range)position).getEndCol());
io.writeInt4(((Range)position).getWideLine());
io.writeInt4(((Range)position).getWideCol());
io.writeInt4(((Range)position).getWideEndLine());
io.writeInt4(((Range)position).getWideEndCol());
{
byte boolValues = 0;
boolValues <<= 1;
if (isCompilerGenerated)
boolValues |= 1;
boolValues <<= 1;
if (isToolGenerated)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeInt4(name);
io.writeInt4(((Range)namePosition).getPathKey());
io.writeInt4(((Range)namePosition).getLine());
io.writeInt4(((Range)namePosition).getCol());
io.writeInt4(((Range)namePosition).getEndLine());
io.writeInt4(((Range)namePosition).getEndCol());
io.writeInt4(((Range)namePosition).getWideLine());
io.writeInt4(((Range)namePosition).getWideCol());
io.writeInt4(((Range)namePosition).getWideEndLine());
io.writeInt4(((Range)namePosition).getWideEndCol());
{
byte boolValues = 0;
boolValues <<= 1;
if (isStatic)
boolValues |= 1;
boolValues <<= 1;
if (isFinal)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeUByte1(accessibility.ordinal());
io.writeInt4(((Range)accessibilityPosition).getPathKey());
io.writeInt4(((Range)accessibilityPosition).getLine());
io.writeInt4(((Range)accessibilityPosition).getCol());
io.writeInt4(((Range)accessibilityPosition).getEndLine());
io.writeInt4(((Range)accessibilityPosition).getEndCol());
io.writeInt4(((Range)accessibilityPosition).getWideLine());
io.writeInt4(((Range)accessibilityPosition).getWideCol());
io.writeInt4(((Range)accessibilityPosition).getWideEndLine());
io.writeInt4(((Range)accessibilityPosition).getWideEndCol());
io.writeInt4(((Range)staticPosition).getPathKey());
io.writeInt4(((Range)staticPosition).getLine());
io.writeInt4(((Range)staticPosition).getCol());
io.writeInt4(((Range)staticPosition).getEndLine());
io.writeInt4(((Range)staticPosition).getEndCol());
io.writeInt4(((Range)staticPosition).getWideLine());
io.writeInt4(((Range)staticPosition).getWideCol());
io.writeInt4(((Range)staticPosition).getWideEndLine());
io.writeInt4(((Range)staticPosition).getWideEndCol());
io.writeInt4(((Range)finalPosition).getPathKey());
io.writeInt4(((Range)finalPosition).getLine());
io.writeInt4(((Range)finalPosition).getCol());
io.writeInt4(((Range)finalPosition).getEndLine());
io.writeInt4(((Range)finalPosition).getEndCol());
io.writeInt4(((Range)finalPosition).getWideLine());
io.writeInt4(((Range)finalPosition).getWideCol());
io.writeInt4(((Range)finalPosition).getWideEndLine());
io.writeInt4(((Range)finalPosition).getWideEndCol());
io.writeInt4(!factory.getIsFiltered(_hasType) ? _hasType : 0);
{
byte boolValues = 0;
boolValues <<= 1;
if (isVarargs)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeInt4(((Range)varargsPosition).getPathKey());
io.writeInt4(((Range)varargsPosition).getLine());
io.writeInt4(((Range)varargsPosition).getCol());
io.writeInt4(((Range)varargsPosition).getEndLine());
io.writeInt4(((Range)varargsPosition).getEndCol());
io.writeInt4(((Range)varargsPosition).getWideLine());
io.writeInt4(((Range)varargsPosition).getWideCol());
io.writeInt4(((Range)varargsPosition).getWideEndLine());
io.writeInt4(((Range)varargsPosition).getWideEndCol());
}
// ---------- Load ----------
@Override
public void load(IO io) {
int _id;
_id = io.readInt4();
if (_id != 0) {
_comments = new EdgeList<Comment>(factory);
while (_id != 0) {
_comments.add(_id);
_id = io.readInt4();
}
}
_id = io.readInt4();
if (_id != 0) {
_hasAnnotations = new EdgeList<Annotation>(factory);
while (_id != 0) {
_hasAnnotations.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
((Range)position).setPathKey(io.readInt4());
((Range)position).setLine(io.readInt4());
((Range)position).setCol(io.readInt4());
((Range)position).setEndLine(io.readInt4());
((Range)position).setEndCol(io.readInt4());
((Range)position).setWideLine(io.readInt4());
((Range)position).setWideCol(io.readInt4());
((Range)position).setWideEndLine(io.readInt4());
((Range)position).setWideEndCol(io.readInt4());
{
byte boolValues = io.readByte1();
isToolGenerated = (boolValues & 1) != 0;
boolValues >>>= 1;
isCompilerGenerated = (boolValues & 1) != 0;
boolValues >>>= 1;
}
name = io.readInt4();
((Range)namePosition).setPathKey(io.readInt4());
((Range)namePosition).setLine(io.readInt4());
((Range)namePosition).setCol(io.readInt4());
((Range)namePosition).setEndLine(io.readInt4());
((Range)namePosition).setEndCol(io.readInt4());
((Range)namePosition).setWideLine(io.readInt4());
((Range)namePosition).setWideCol(io.readInt4());
((Range)namePosition).setWideEndLine(io.readInt4());
((Range)namePosition).setWideEndCol(io.readInt4());
{
byte boolValues = io.readByte1();
isFinal = (boolValues & 1) != 0;
boolValues >>>= 1;
isStatic = (boolValues & 1) != 0;
boolValues >>>= 1;
}
accessibility = AccessibilityKind.values()[io.readUByte1()];
((Range)accessibilityPosition).setPathKey(io.readInt4());
((Range)accessibilityPosition).setLine(io.readInt4());
((Range)accessibilityPosition).setCol(io.readInt4());
((Range)accessibilityPosition).setEndLine(io.readInt4());
((Range)accessibilityPosition).setEndCol(io.readInt4());
((Range)accessibilityPosition).setWideLine(io.readInt4());
((Range)accessibilityPosition).setWideCol(io.readInt4());
((Range)accessibilityPosition).setWideEndLine(io.readInt4());
((Range)accessibilityPosition).setWideEndCol(io.readInt4());
((Range)staticPosition).setPathKey(io.readInt4());
((Range)staticPosition).setLine(io.readInt4());
((Range)staticPosition).setCol(io.readInt4());
((Range)staticPosition).setEndLine(io.readInt4());
((Range)staticPosition).setEndCol(io.readInt4());
((Range)staticPosition).setWideLine(io.readInt4());
((Range)staticPosition).setWideCol(io.readInt4());
((Range)staticPosition).setWideEndLine(io.readInt4());
((Range)staticPosition).setWideEndCol(io.readInt4());
((Range)finalPosition).setPathKey(io.readInt4());
((Range)finalPosition).setLine(io.readInt4());
((Range)finalPosition).setCol(io.readInt4());
((Range)finalPosition).setEndLine(io.readInt4());
((Range)finalPosition).setEndCol(io.readInt4());
((Range)finalPosition).setWideLine(io.readInt4());
((Range)finalPosition).setWideCol(io.readInt4());
((Range)finalPosition).setWideEndLine(io.readInt4());
((Range)finalPosition).setWideEndCol(io.readInt4());
_hasType = io.readInt4();
if (_hasType != 0)
setParentEdge(_hasType);
{
byte boolValues = io.readByte1();
isVarargs = (boolValues & 1) != 0;
boolValues >>>= 1;
}
((Range)varargsPosition).setPathKey(io.readInt4());
((Range)varargsPosition).setLine(io.readInt4());
((Range)varargsPosition).setCol(io.readInt4());
((Range)varargsPosition).setEndLine(io.readInt4());
((Range)varargsPosition).setEndCol(io.readInt4());
((Range)varargsPosition).setWideLine(io.readInt4());
((Range)varargsPosition).setWideCol(io.readInt4());
((Range)varargsPosition).setWideEndLine(io.readInt4());
((Range)varargsPosition).setWideEndCol(io.readInt4());
}
}
| 17,448 | 27.464927 | 131 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/AnonymousClassImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.base.Base;
import columbus.java.asg.expr.TypeExpression;
import columbus.java.asg.base.Positioned;
import columbus.java.asg.base.Comment;
import columbus.java.asg.expr.Annotation;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.struc.AnonymousClass AnonymousClass} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class AnonymousClassImpl extends BaseImpl implements AnonymousClass {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(AnonymousClassImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
protected EdgeList<Comment> _comments;
protected EdgeList<Annotation> _hasAnnotations;
protected Object position;
protected boolean isCompilerGenerated;
protected boolean isToolGenerated;
protected int name;
protected Object namePosition;
protected AccessibilityKind accessibility = AccessibilityKind.ackNone;
protected Object accessibilityPosition;
protected boolean isStatic;
protected Object staticPosition;
protected boolean isFinal;
protected Object finalPosition;
protected EdgeList<Member> _hasMembers;
protected int lloc;
protected Object typeNamePosition;
protected boolean isAbstract;
protected Object abstractPosition;
protected boolean isStrictfp;
protected Object strictfpPosition;
protected int binaryName;
protected Object extendsPosition;
protected Object implementsPosition;
protected Object bodyStartPosition;
protected int _hasSuperClass;
protected EdgeList<TypeExpression> _hasSuperInterfaces;
protected EdgeList<Positioned> _hasOthers;
protected int _isInCompilationUnit;
protected int _isInModule;
public AnonymousClassImpl(int id, Factory factory) {
super(id, factory);
position = new Range(factory.getStringTable());
namePosition = new Range(factory.getStringTable());
accessibilityPosition = new Range(factory.getStringTable());
staticPosition = new Range(factory.getStringTable());
finalPosition = new Range(factory.getStringTable());
typeNamePosition = new Range(factory.getStringTable());
abstractPosition = new Range(factory.getStringTable());
strictfpPosition = new Range(factory.getStringTable());
extendsPosition = new Range(factory.getStringTable());
implementsPosition = new Range(factory.getStringTable());
bodyStartPosition = new Range(factory.getStringTable());
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkAnonymousClass;
}
@Override
public Range getPosition() {
return (Range)position;
}
@Override
public void setPosition(Range _position) {
if (factory.getStringTable() == _position.getStringTable())
position = _position;
else
position = new Range(factory.getStringTable(), _position);
}
@Override
public boolean getIsCompilerGenerated() {
return isCompilerGenerated;
}
@Override
public boolean getIsToolGenerated() {
return isToolGenerated;
}
@Override
public void setIsCompilerGenerated(boolean _isCompilerGenerated) {
isCompilerGenerated = _isCompilerGenerated;
}
@Override
public void setIsToolGenerated(boolean _isToolGenerated) {
isToolGenerated = _isToolGenerated;
}
@Override
public String getName() {
return factory.getStringTable().get(name);
}
@Override
public int getNameKey() {
return name;
}
@Override
public Range getNamePosition() {
return (Range)namePosition;
}
@Override
public void setName(String _name) {
name = factory.getStringTable().set(_name);
}
@Override
public void setNamePosition(Range _namePosition) {
if (factory.getStringTable() == _namePosition.getStringTable())
namePosition = _namePosition;
else
namePosition = new Range(factory.getStringTable(), _namePosition);
}
@Override
public AccessibilityKind getAccessibility() {
return accessibility;
}
@Override
public Range getAccessibilityPosition() {
return (Range)accessibilityPosition;
}
@Override
public boolean getIsStatic() {
return isStatic;
}
@Override
public Range getStaticPosition() {
return (Range)staticPosition;
}
@Override
public boolean getIsFinal() {
return isFinal;
}
@Override
public Range getFinalPosition() {
return (Range)finalPosition;
}
@Override
public void setAccessibility(AccessibilityKind _accessibility) {
accessibility = _accessibility;
}
@Override
public void setAccessibilityPosition(Range _accessibilityPosition) {
if (factory.getStringTable() == _accessibilityPosition.getStringTable())
accessibilityPosition = _accessibilityPosition;
else
accessibilityPosition = new Range(factory.getStringTable(), _accessibilityPosition);
}
@Override
public void setIsStatic(boolean _isStatic) {
isStatic = _isStatic;
}
@Override
public void setStaticPosition(Range _staticPosition) {
if (factory.getStringTable() == _staticPosition.getStringTable())
staticPosition = _staticPosition;
else
staticPosition = new Range(factory.getStringTable(), _staticPosition);
}
@Override
public void setIsFinal(boolean _isFinal) {
isFinal = _isFinal;
}
@Override
public void setFinalPosition(Range _finalPosition) {
if (factory.getStringTable() == _finalPosition.getStringTable())
finalPosition = _finalPosition;
else
finalPosition = new Range(factory.getStringTable(), _finalPosition);
}
@Override
public int getLloc() {
return lloc;
}
@Override
public Range getTypeNamePosition() {
return (Range)typeNamePosition;
}
@Override
public boolean getIsAbstract() {
return isAbstract;
}
@Override
public Range getAbstractPosition() {
return (Range)abstractPosition;
}
@Override
public boolean getIsStrictfp() {
return isStrictfp;
}
@Override
public Range getStrictfpPosition() {
return (Range)strictfpPosition;
}
@Override
public String getBinaryName() {
return factory.getStringTable().get(binaryName);
}
@Override
public int getBinaryNameKey() {
return binaryName;
}
@Override
public Range getExtendsPosition() {
return (Range)extendsPosition;
}
@Override
public Range getImplementsPosition() {
return (Range)implementsPosition;
}
@Override
public Range getBodyStartPosition() {
return (Range)bodyStartPosition;
}
@Override
public void setLloc(int _lloc) {
lloc = _lloc;
}
@Override
public void setTypeNamePosition(Range _typeNamePosition) {
if (factory.getStringTable() == _typeNamePosition.getStringTable())
typeNamePosition = _typeNamePosition;
else
typeNamePosition = new Range(factory.getStringTable(), _typeNamePosition);
}
@Override
public void setIsAbstract(boolean _isAbstract) {
isAbstract = _isAbstract;
}
@Override
public void setAbstractPosition(Range _abstractPosition) {
if (factory.getStringTable() == _abstractPosition.getStringTable())
abstractPosition = _abstractPosition;
else
abstractPosition = new Range(factory.getStringTable(), _abstractPosition);
}
@Override
public void setIsStrictfp(boolean _isStrictfp) {
isStrictfp = _isStrictfp;
}
@Override
public void setStrictfpPosition(Range _strictfpPosition) {
if (factory.getStringTable() == _strictfpPosition.getStringTable())
strictfpPosition = _strictfpPosition;
else
strictfpPosition = new Range(factory.getStringTable(), _strictfpPosition);
}
@Override
public void setBinaryName(String _binaryName) {
binaryName = factory.getStringTable().set(_binaryName);
}
@Override
public void setExtendsPosition(Range _extendsPosition) {
if (factory.getStringTable() == _extendsPosition.getStringTable())
extendsPosition = _extendsPosition;
else
extendsPosition = new Range(factory.getStringTable(), _extendsPosition);
}
@Override
public void setImplementsPosition(Range _implementsPosition) {
if (factory.getStringTable() == _implementsPosition.getStringTable())
implementsPosition = _implementsPosition;
else
implementsPosition = new Range(factory.getStringTable(), _implementsPosition);
}
@Override
public void setBodyStartPosition(Range _bodyStartPosition) {
if (factory.getStringTable() == _bodyStartPosition.getStringTable())
bodyStartPosition = _bodyStartPosition;
else
bodyStartPosition = new Range(factory.getStringTable(), _bodyStartPosition);
}
@Override
public EdgeIterator<Comment> getCommentsIterator() {
if (_comments == null)
return EdgeList.<Comment>emptyList().iterator();
else
return _comments.iterator();
}
@Override
public boolean getCommentsIsEmpty() {
if (_comments == null)
return true;
else
return _comments.isEmpty();
}
@Override
public int getCommentsSize() {
if (_comments == null)
return 0;
else
return _comments.size();
}
@Override
public void addComments(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkComment)) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void addComments(Comment _node) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_node);
}
@Override
public EdgeIterator<Annotation> getAnnotationsIterator() {
if (_hasAnnotations == null)
return EdgeList.<Annotation>emptyList().iterator();
else
return _hasAnnotations.iterator();
}
@Override
public boolean getAnnotationsIsEmpty() {
if (_hasAnnotations == null)
return true;
else
return _hasAnnotations.isEmpty();
}
@Override
public int getAnnotationsSize() {
if (_hasAnnotations == null)
return 0;
else
return _hasAnnotations.size();
}
@Override
public void addAnnotations(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkAnnotation)) {
if (_hasAnnotations == null)
_hasAnnotations = new EdgeList<Annotation>(factory);
_hasAnnotations.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addAnnotations(Annotation _node) {
if (_hasAnnotations == null)
_hasAnnotations = new EdgeList<Annotation>(factory);
_hasAnnotations.add(_node);
setParentEdge(_node);
}
@Override
public EdgeIterator<Member> getMembersIterator() {
if (_hasMembers == null)
return EdgeList.<Member>emptyList().iterator();
else
return _hasMembers.iterator();
}
@Override
public boolean getMembersIsEmpty() {
if (_hasMembers == null)
return true;
else
return _hasMembers.isEmpty();
}
@Override
public int getMembersSize() {
if (_hasMembers == null)
return 0;
else
return _hasMembers.size();
}
@Override
public void addMembers(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkMember)) {
if (_hasMembers == null)
_hasMembers = new EdgeList<Member>(factory);
_hasMembers.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addMembers(Member _node) {
if (_hasMembers == null)
_hasMembers = new EdgeList<Member>(factory);
_hasMembers.add(_node);
setParentEdge(_node);
}
@Override
public TypeExpression getSuperClass() {
if (_hasSuperClass == 0)
return null;
if (factory.getIsFiltered(_hasSuperClass))
return null;
return (TypeExpression)factory.getRef(_hasSuperClass);
}
@Override
public EdgeIterator<TypeExpression> getSuperInterfacesIterator() {
if (_hasSuperInterfaces == null)
return EdgeList.<TypeExpression>emptyList().iterator();
else
return _hasSuperInterfaces.iterator();
}
@Override
public boolean getSuperInterfacesIsEmpty() {
if (_hasSuperInterfaces == null)
return true;
else
return _hasSuperInterfaces.isEmpty();
}
@Override
public int getSuperInterfacesSize() {
if (_hasSuperInterfaces == null)
return 0;
else
return _hasSuperInterfaces.size();
}
@Override
public EdgeIterator<Positioned> getOthersIterator() {
if (_hasOthers == null)
return EdgeList.<Positioned>emptyList().iterator();
else
return _hasOthers.iterator();
}
@Override
public boolean getOthersIsEmpty() {
if (_hasOthers == null)
return true;
else
return _hasOthers.isEmpty();
}
@Override
public int getOthersSize() {
if (_hasOthers == null)
return 0;
else
return _hasOthers.size();
}
@Override
public CompilationUnit getIsInCompilationUnit() {
if (_isInCompilationUnit == 0)
return null;
if (factory.getIsFiltered(_isInCompilationUnit))
return null;
return (CompilationUnit)factory.getRef(_isInCompilationUnit);
}
@Override
public Module getIsInModule() {
if (_isInModule == 0)
return null;
if (factory.getIsFiltered(_isInModule))
return null;
return (Module)factory.getRef(_isInModule);
}
@Override
public void setSuperClass(int _id) {
if (_hasSuperClass != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasSuperClass" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkTypeExpression)) {
_hasSuperClass = _id;
setParentEdge(_hasSuperClass);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setSuperClass(TypeExpression _node) {
if (_hasSuperClass != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasSuperClass" ));
_hasSuperClass = _node.getId();
setParentEdge(_hasSuperClass);
}
@Override
public void addSuperInterfaces(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkTypeExpression)) {
if (_hasSuperInterfaces == null)
_hasSuperInterfaces = new EdgeList<TypeExpression>(factory);
_hasSuperInterfaces.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addSuperInterfaces(TypeExpression _node) {
if (_hasSuperInterfaces == null)
_hasSuperInterfaces = new EdgeList<TypeExpression>(factory);
_hasSuperInterfaces.add(_node);
setParentEdge(_node);
}
@Override
public void addOthers(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkPositioned)) {
if (_hasOthers == null)
_hasOthers = new EdgeList<Positioned>(factory);
_hasOthers.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addOthers(Positioned _node) {
if (_hasOthers == null)
_hasOthers = new EdgeList<Positioned>(factory);
_hasOthers.add(_node);
setParentEdge(_node);
}
@Override
public void setIsInCompilationUnit(int _id) {
if (_isInCompilationUnit != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","isInCompilationUnit" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (_node.getNodeKind() == NodeKind.ndkCompilationUnit) {
_isInCompilationUnit = _id;
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setIsInCompilationUnit(CompilationUnit _node) {
if (_isInCompilationUnit != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","isInCompilationUnit" ));
_isInCompilationUnit = _node.getId();
}
@Override
public void setIsInModule(int _id) {
if (_isInModule != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","isInModule" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (_node.getNodeKind() == NodeKind.ndkModule) {
_isInModule = _id;
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setIsInModule(Module _node) {
if (_isInModule != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","isInModule" ));
_isInModule = _node.getId();
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
if (_comments != null) {
EdgeIterator<Comment> it = getCommentsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
if (_hasAnnotations != null) {
EdgeIterator<Annotation> it = getAnnotationsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
io.writeInt4(((Range)position).getPathKey());
io.writeInt4(((Range)position).getLine());
io.writeInt4(((Range)position).getCol());
io.writeInt4(((Range)position).getEndLine());
io.writeInt4(((Range)position).getEndCol());
io.writeInt4(((Range)position).getWideLine());
io.writeInt4(((Range)position).getWideCol());
io.writeInt4(((Range)position).getWideEndLine());
io.writeInt4(((Range)position).getWideEndCol());
{
byte boolValues = 0;
boolValues <<= 1;
if (isCompilerGenerated)
boolValues |= 1;
boolValues <<= 1;
if (isToolGenerated)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeInt4(name);
io.writeInt4(((Range)namePosition).getPathKey());
io.writeInt4(((Range)namePosition).getLine());
io.writeInt4(((Range)namePosition).getCol());
io.writeInt4(((Range)namePosition).getEndLine());
io.writeInt4(((Range)namePosition).getEndCol());
io.writeInt4(((Range)namePosition).getWideLine());
io.writeInt4(((Range)namePosition).getWideCol());
io.writeInt4(((Range)namePosition).getWideEndLine());
io.writeInt4(((Range)namePosition).getWideEndCol());
{
byte boolValues = 0;
boolValues <<= 1;
if (isStatic)
boolValues |= 1;
boolValues <<= 1;
if (isFinal)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeUByte1(accessibility.ordinal());
io.writeInt4(((Range)accessibilityPosition).getPathKey());
io.writeInt4(((Range)accessibilityPosition).getLine());
io.writeInt4(((Range)accessibilityPosition).getCol());
io.writeInt4(((Range)accessibilityPosition).getEndLine());
io.writeInt4(((Range)accessibilityPosition).getEndCol());
io.writeInt4(((Range)accessibilityPosition).getWideLine());
io.writeInt4(((Range)accessibilityPosition).getWideCol());
io.writeInt4(((Range)accessibilityPosition).getWideEndLine());
io.writeInt4(((Range)accessibilityPosition).getWideEndCol());
io.writeInt4(((Range)staticPosition).getPathKey());
io.writeInt4(((Range)staticPosition).getLine());
io.writeInt4(((Range)staticPosition).getCol());
io.writeInt4(((Range)staticPosition).getEndLine());
io.writeInt4(((Range)staticPosition).getEndCol());
io.writeInt4(((Range)staticPosition).getWideLine());
io.writeInt4(((Range)staticPosition).getWideCol());
io.writeInt4(((Range)staticPosition).getWideEndLine());
io.writeInt4(((Range)staticPosition).getWideEndCol());
io.writeInt4(((Range)finalPosition).getPathKey());
io.writeInt4(((Range)finalPosition).getLine());
io.writeInt4(((Range)finalPosition).getCol());
io.writeInt4(((Range)finalPosition).getEndLine());
io.writeInt4(((Range)finalPosition).getEndCol());
io.writeInt4(((Range)finalPosition).getWideLine());
io.writeInt4(((Range)finalPosition).getWideCol());
io.writeInt4(((Range)finalPosition).getWideEndLine());
io.writeInt4(((Range)finalPosition).getWideEndCol());
if (_hasMembers != null) {
EdgeIterator<Member> it = getMembersIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
{
byte boolValues = 0;
boolValues <<= 1;
if (isAbstract)
boolValues |= 1;
boolValues <<= 1;
if (isStrictfp)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeInt4(lloc);
io.writeInt4(((Range)typeNamePosition).getPathKey());
io.writeInt4(((Range)typeNamePosition).getLine());
io.writeInt4(((Range)typeNamePosition).getCol());
io.writeInt4(((Range)typeNamePosition).getEndLine());
io.writeInt4(((Range)typeNamePosition).getEndCol());
io.writeInt4(((Range)typeNamePosition).getWideLine());
io.writeInt4(((Range)typeNamePosition).getWideCol());
io.writeInt4(((Range)typeNamePosition).getWideEndLine());
io.writeInt4(((Range)typeNamePosition).getWideEndCol());
io.writeInt4(((Range)abstractPosition).getPathKey());
io.writeInt4(((Range)abstractPosition).getLine());
io.writeInt4(((Range)abstractPosition).getCol());
io.writeInt4(((Range)abstractPosition).getEndLine());
io.writeInt4(((Range)abstractPosition).getEndCol());
io.writeInt4(((Range)abstractPosition).getWideLine());
io.writeInt4(((Range)abstractPosition).getWideCol());
io.writeInt4(((Range)abstractPosition).getWideEndLine());
io.writeInt4(((Range)abstractPosition).getWideEndCol());
io.writeInt4(((Range)strictfpPosition).getPathKey());
io.writeInt4(((Range)strictfpPosition).getLine());
io.writeInt4(((Range)strictfpPosition).getCol());
io.writeInt4(((Range)strictfpPosition).getEndLine());
io.writeInt4(((Range)strictfpPosition).getEndCol());
io.writeInt4(((Range)strictfpPosition).getWideLine());
io.writeInt4(((Range)strictfpPosition).getWideCol());
io.writeInt4(((Range)strictfpPosition).getWideEndLine());
io.writeInt4(((Range)strictfpPosition).getWideEndCol());
io.writeInt4(binaryName);
io.writeInt4(((Range)extendsPosition).getPathKey());
io.writeInt4(((Range)extendsPosition).getLine());
io.writeInt4(((Range)extendsPosition).getCol());
io.writeInt4(((Range)extendsPosition).getEndLine());
io.writeInt4(((Range)extendsPosition).getEndCol());
io.writeInt4(((Range)extendsPosition).getWideLine());
io.writeInt4(((Range)extendsPosition).getWideCol());
io.writeInt4(((Range)extendsPosition).getWideEndLine());
io.writeInt4(((Range)extendsPosition).getWideEndCol());
io.writeInt4(((Range)implementsPosition).getPathKey());
io.writeInt4(((Range)implementsPosition).getLine());
io.writeInt4(((Range)implementsPosition).getCol());
io.writeInt4(((Range)implementsPosition).getEndLine());
io.writeInt4(((Range)implementsPosition).getEndCol());
io.writeInt4(((Range)implementsPosition).getWideLine());
io.writeInt4(((Range)implementsPosition).getWideCol());
io.writeInt4(((Range)implementsPosition).getWideEndLine());
io.writeInt4(((Range)implementsPosition).getWideEndCol());
io.writeInt4(((Range)bodyStartPosition).getPathKey());
io.writeInt4(((Range)bodyStartPosition).getLine());
io.writeInt4(((Range)bodyStartPosition).getCol());
io.writeInt4(((Range)bodyStartPosition).getEndLine());
io.writeInt4(((Range)bodyStartPosition).getEndCol());
io.writeInt4(((Range)bodyStartPosition).getWideLine());
io.writeInt4(((Range)bodyStartPosition).getWideCol());
io.writeInt4(((Range)bodyStartPosition).getWideEndLine());
io.writeInt4(((Range)bodyStartPosition).getWideEndCol());
io.writeInt4(!factory.getIsFiltered(_hasSuperClass) ? _hasSuperClass : 0);
io.writeInt4(!factory.getIsFiltered(_isInCompilationUnit) ? _isInCompilationUnit : 0);
io.writeInt4(!factory.getIsFiltered(_isInModule) ? _isInModule : 0);
if (_hasSuperInterfaces != null) {
EdgeIterator<TypeExpression> it = getSuperInterfacesIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
if (_hasOthers != null) {
EdgeIterator<Positioned> it = getOthersIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
}
// ---------- Load ----------
@Override
public void load(IO io) {
int _id;
_id = io.readInt4();
if (_id != 0) {
_comments = new EdgeList<Comment>(factory);
while (_id != 0) {
_comments.add(_id);
_id = io.readInt4();
}
}
_id = io.readInt4();
if (_id != 0) {
_hasAnnotations = new EdgeList<Annotation>(factory);
while (_id != 0) {
_hasAnnotations.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
((Range)position).setPathKey(io.readInt4());
((Range)position).setLine(io.readInt4());
((Range)position).setCol(io.readInt4());
((Range)position).setEndLine(io.readInt4());
((Range)position).setEndCol(io.readInt4());
((Range)position).setWideLine(io.readInt4());
((Range)position).setWideCol(io.readInt4());
((Range)position).setWideEndLine(io.readInt4());
((Range)position).setWideEndCol(io.readInt4());
{
byte boolValues = io.readByte1();
isToolGenerated = (boolValues & 1) != 0;
boolValues >>>= 1;
isCompilerGenerated = (boolValues & 1) != 0;
boolValues >>>= 1;
}
name = io.readInt4();
((Range)namePosition).setPathKey(io.readInt4());
((Range)namePosition).setLine(io.readInt4());
((Range)namePosition).setCol(io.readInt4());
((Range)namePosition).setEndLine(io.readInt4());
((Range)namePosition).setEndCol(io.readInt4());
((Range)namePosition).setWideLine(io.readInt4());
((Range)namePosition).setWideCol(io.readInt4());
((Range)namePosition).setWideEndLine(io.readInt4());
((Range)namePosition).setWideEndCol(io.readInt4());
{
byte boolValues = io.readByte1();
isFinal = (boolValues & 1) != 0;
boolValues >>>= 1;
isStatic = (boolValues & 1) != 0;
boolValues >>>= 1;
}
accessibility = AccessibilityKind.values()[io.readUByte1()];
((Range)accessibilityPosition).setPathKey(io.readInt4());
((Range)accessibilityPosition).setLine(io.readInt4());
((Range)accessibilityPosition).setCol(io.readInt4());
((Range)accessibilityPosition).setEndLine(io.readInt4());
((Range)accessibilityPosition).setEndCol(io.readInt4());
((Range)accessibilityPosition).setWideLine(io.readInt4());
((Range)accessibilityPosition).setWideCol(io.readInt4());
((Range)accessibilityPosition).setWideEndLine(io.readInt4());
((Range)accessibilityPosition).setWideEndCol(io.readInt4());
((Range)staticPosition).setPathKey(io.readInt4());
((Range)staticPosition).setLine(io.readInt4());
((Range)staticPosition).setCol(io.readInt4());
((Range)staticPosition).setEndLine(io.readInt4());
((Range)staticPosition).setEndCol(io.readInt4());
((Range)staticPosition).setWideLine(io.readInt4());
((Range)staticPosition).setWideCol(io.readInt4());
((Range)staticPosition).setWideEndLine(io.readInt4());
((Range)staticPosition).setWideEndCol(io.readInt4());
((Range)finalPosition).setPathKey(io.readInt4());
((Range)finalPosition).setLine(io.readInt4());
((Range)finalPosition).setCol(io.readInt4());
((Range)finalPosition).setEndLine(io.readInt4());
((Range)finalPosition).setEndCol(io.readInt4());
((Range)finalPosition).setWideLine(io.readInt4());
((Range)finalPosition).setWideCol(io.readInt4());
((Range)finalPosition).setWideEndLine(io.readInt4());
((Range)finalPosition).setWideEndCol(io.readInt4());
_id = io.readInt4();
if (_id != 0) {
_hasMembers = new EdgeList<Member>(factory);
while (_id != 0) {
_hasMembers.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
{
byte boolValues = io.readByte1();
isStrictfp = (boolValues & 1) != 0;
boolValues >>>= 1;
isAbstract = (boolValues & 1) != 0;
boolValues >>>= 1;
}
lloc = io.readInt4();
((Range)typeNamePosition).setPathKey(io.readInt4());
((Range)typeNamePosition).setLine(io.readInt4());
((Range)typeNamePosition).setCol(io.readInt4());
((Range)typeNamePosition).setEndLine(io.readInt4());
((Range)typeNamePosition).setEndCol(io.readInt4());
((Range)typeNamePosition).setWideLine(io.readInt4());
((Range)typeNamePosition).setWideCol(io.readInt4());
((Range)typeNamePosition).setWideEndLine(io.readInt4());
((Range)typeNamePosition).setWideEndCol(io.readInt4());
((Range)abstractPosition).setPathKey(io.readInt4());
((Range)abstractPosition).setLine(io.readInt4());
((Range)abstractPosition).setCol(io.readInt4());
((Range)abstractPosition).setEndLine(io.readInt4());
((Range)abstractPosition).setEndCol(io.readInt4());
((Range)abstractPosition).setWideLine(io.readInt4());
((Range)abstractPosition).setWideCol(io.readInt4());
((Range)abstractPosition).setWideEndLine(io.readInt4());
((Range)abstractPosition).setWideEndCol(io.readInt4());
((Range)strictfpPosition).setPathKey(io.readInt4());
((Range)strictfpPosition).setLine(io.readInt4());
((Range)strictfpPosition).setCol(io.readInt4());
((Range)strictfpPosition).setEndLine(io.readInt4());
((Range)strictfpPosition).setEndCol(io.readInt4());
((Range)strictfpPosition).setWideLine(io.readInt4());
((Range)strictfpPosition).setWideCol(io.readInt4());
((Range)strictfpPosition).setWideEndLine(io.readInt4());
((Range)strictfpPosition).setWideEndCol(io.readInt4());
binaryName = io.readInt4();
((Range)extendsPosition).setPathKey(io.readInt4());
((Range)extendsPosition).setLine(io.readInt4());
((Range)extendsPosition).setCol(io.readInt4());
((Range)extendsPosition).setEndLine(io.readInt4());
((Range)extendsPosition).setEndCol(io.readInt4());
((Range)extendsPosition).setWideLine(io.readInt4());
((Range)extendsPosition).setWideCol(io.readInt4());
((Range)extendsPosition).setWideEndLine(io.readInt4());
((Range)extendsPosition).setWideEndCol(io.readInt4());
((Range)implementsPosition).setPathKey(io.readInt4());
((Range)implementsPosition).setLine(io.readInt4());
((Range)implementsPosition).setCol(io.readInt4());
((Range)implementsPosition).setEndLine(io.readInt4());
((Range)implementsPosition).setEndCol(io.readInt4());
((Range)implementsPosition).setWideLine(io.readInt4());
((Range)implementsPosition).setWideCol(io.readInt4());
((Range)implementsPosition).setWideEndLine(io.readInt4());
((Range)implementsPosition).setWideEndCol(io.readInt4());
((Range)bodyStartPosition).setPathKey(io.readInt4());
((Range)bodyStartPosition).setLine(io.readInt4());
((Range)bodyStartPosition).setCol(io.readInt4());
((Range)bodyStartPosition).setEndLine(io.readInt4());
((Range)bodyStartPosition).setEndCol(io.readInt4());
((Range)bodyStartPosition).setWideLine(io.readInt4());
((Range)bodyStartPosition).setWideCol(io.readInt4());
((Range)bodyStartPosition).setWideEndLine(io.readInt4());
((Range)bodyStartPosition).setWideEndCol(io.readInt4());
_hasSuperClass = io.readInt4();
if (_hasSuperClass != 0)
setParentEdge(_hasSuperClass);
_isInCompilationUnit = io.readInt4();
_isInModule = io.readInt4();
_id = io.readInt4();
if (_id != 0) {
_hasSuperInterfaces = new EdgeList<TypeExpression>(factory);
while (_id != 0) {
_hasSuperInterfaces.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
_id = io.readInt4();
if (_id != 0) {
_hasOthers = new EdgeList<Positioned>(factory);
while (_id != 0) {
_hasOthers.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
}
}
| 33,113 | 28.618962 | 136 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/GenericDeclaration.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
import columbus.java.asg.*;
import columbus.java.asg.base.Base;
/**
* Interface GenericDeclaration, which represents the {@link columbus.java.asg.struc.GenericDeclaration GenericDeclaration} node.
* @columbus.node (missing)
* @columbus.edge hasTypeParameters ({@link columbus.java.asg.struc.TypeParameter TypeParameter}, multiple) : (missing)
*/
public interface GenericDeclaration extends Base {
/**
* Gives back iterator for the {@link columbus.java.asg.struc.GenericDeclaration#edgeHasTypeParameters hasTypeParameters} edges.
* @return Returns an iterator for the hasTypeParameters edges.
*/
public EdgeIterator<TypeParameter> getTypeParametersIterator();
/**
* Tells whether the node has {@link columbus.java.asg.struc.GenericDeclaration#edgeHasTypeParameters hasTypeParameters} edges or not.
* @return Returns true if the node doesn't have any hasTypeParameters edge.
*/
public boolean getTypeParametersIsEmpty();
/**
* Gives back how many {@link columbus.java.asg.struc.GenericDeclaration#edgeHasTypeParameters hasTypeParameters} edges the node has.
* @return Returns with the number of hasTypeParameters edges.
*/
public int getTypeParametersSize();
/**
* Adds a new {@link columbus.java.asg.struc.GenericDeclaration#edgeHasTypeParameters hasTypeParameters} edge to the node.
* @param id The end point of the new hasTypeParameters edge.
*/
public void addTypeParameters(int id);
/**
* Adds a new {@link columbus.java.asg.struc.GenericDeclaration#edgeHasTypeParameters hasTypeParameters} edge to the node.
* @param node The end point of the new hasTypeParameters edge.
*/
public void addTypeParameters(TypeParameter node);
}
| 2,448 | 36.676923 | 135 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/VariableImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.base.Base;
import columbus.java.asg.expr.Expression;
import columbus.java.asg.expr.TypeExpression;
import columbus.java.asg.base.Comment;
import columbus.java.asg.expr.Annotation;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.struc.Variable Variable} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class VariableImpl extends BaseImpl implements Variable {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(VariableImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
protected EdgeList<Comment> _comments;
protected EdgeList<Annotation> _hasAnnotations;
protected Object position;
protected boolean isCompilerGenerated;
protected boolean isToolGenerated;
protected int name;
protected Object namePosition;
protected AccessibilityKind accessibility = AccessibilityKind.ackNone;
protected Object accessibilityPosition;
protected boolean isStatic;
protected Object staticPosition;
protected boolean isFinal;
protected Object finalPosition;
protected int _hasType;
protected boolean isTransient;
protected Object transientPosition;
protected boolean isVolatile;
protected Object volatilePosition;
protected Object equalSignPosition;
protected int _hasInitialValue;
public VariableImpl(int id, Factory factory) {
super(id, factory);
position = new Range(factory.getStringTable());
namePosition = new Range(factory.getStringTable());
accessibilityPosition = new Range(factory.getStringTable());
staticPosition = new Range(factory.getStringTable());
finalPosition = new Range(factory.getStringTable());
transientPosition = new Range(factory.getStringTable());
volatilePosition = new Range(factory.getStringTable());
equalSignPosition = new Range(factory.getStringTable());
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkVariable;
}
@Override
public Range getPosition() {
return (Range)position;
}
@Override
public void setPosition(Range _position) {
if (factory.getStringTable() == _position.getStringTable())
position = _position;
else
position = new Range(factory.getStringTable(), _position);
}
@Override
public boolean getIsCompilerGenerated() {
return isCompilerGenerated;
}
@Override
public boolean getIsToolGenerated() {
return isToolGenerated;
}
@Override
public void setIsCompilerGenerated(boolean _isCompilerGenerated) {
isCompilerGenerated = _isCompilerGenerated;
}
@Override
public void setIsToolGenerated(boolean _isToolGenerated) {
isToolGenerated = _isToolGenerated;
}
@Override
public String getName() {
return factory.getStringTable().get(name);
}
@Override
public int getNameKey() {
return name;
}
@Override
public Range getNamePosition() {
return (Range)namePosition;
}
@Override
public void setName(String _name) {
name = factory.getStringTable().set(_name);
}
@Override
public void setNamePosition(Range _namePosition) {
if (factory.getStringTable() == _namePosition.getStringTable())
namePosition = _namePosition;
else
namePosition = new Range(factory.getStringTable(), _namePosition);
}
@Override
public AccessibilityKind getAccessibility() {
return accessibility;
}
@Override
public Range getAccessibilityPosition() {
return (Range)accessibilityPosition;
}
@Override
public boolean getIsStatic() {
return isStatic;
}
@Override
public Range getStaticPosition() {
return (Range)staticPosition;
}
@Override
public boolean getIsFinal() {
return isFinal;
}
@Override
public Range getFinalPosition() {
return (Range)finalPosition;
}
@Override
public void setAccessibility(AccessibilityKind _accessibility) {
accessibility = _accessibility;
}
@Override
public void setAccessibilityPosition(Range _accessibilityPosition) {
if (factory.getStringTable() == _accessibilityPosition.getStringTable())
accessibilityPosition = _accessibilityPosition;
else
accessibilityPosition = new Range(factory.getStringTable(), _accessibilityPosition);
}
@Override
public void setIsStatic(boolean _isStatic) {
isStatic = _isStatic;
}
@Override
public void setStaticPosition(Range _staticPosition) {
if (factory.getStringTable() == _staticPosition.getStringTable())
staticPosition = _staticPosition;
else
staticPosition = new Range(factory.getStringTable(), _staticPosition);
}
@Override
public void setIsFinal(boolean _isFinal) {
isFinal = _isFinal;
}
@Override
public void setFinalPosition(Range _finalPosition) {
if (factory.getStringTable() == _finalPosition.getStringTable())
finalPosition = _finalPosition;
else
finalPosition = new Range(factory.getStringTable(), _finalPosition);
}
@Override
public boolean getIsTransient() {
return isTransient;
}
@Override
public Range getTransientPosition() {
return (Range)transientPosition;
}
@Override
public boolean getIsVolatile() {
return isVolatile;
}
@Override
public Range getVolatilePosition() {
return (Range)volatilePosition;
}
@Override
public Range getEqualSignPosition() {
return (Range)equalSignPosition;
}
@Override
public void setIsTransient(boolean _isTransient) {
isTransient = _isTransient;
}
@Override
public void setTransientPosition(Range _transientPosition) {
if (factory.getStringTable() == _transientPosition.getStringTable())
transientPosition = _transientPosition;
else
transientPosition = new Range(factory.getStringTable(), _transientPosition);
}
@Override
public void setIsVolatile(boolean _isVolatile) {
isVolatile = _isVolatile;
}
@Override
public void setVolatilePosition(Range _volatilePosition) {
if (factory.getStringTable() == _volatilePosition.getStringTable())
volatilePosition = _volatilePosition;
else
volatilePosition = new Range(factory.getStringTable(), _volatilePosition);
}
@Override
public void setEqualSignPosition(Range _equalSignPosition) {
if (factory.getStringTable() == _equalSignPosition.getStringTable())
equalSignPosition = _equalSignPosition;
else
equalSignPosition = new Range(factory.getStringTable(), _equalSignPosition);
}
@Override
public EdgeIterator<Comment> getCommentsIterator() {
if (_comments == null)
return EdgeList.<Comment>emptyList().iterator();
else
return _comments.iterator();
}
@Override
public boolean getCommentsIsEmpty() {
if (_comments == null)
return true;
else
return _comments.isEmpty();
}
@Override
public int getCommentsSize() {
if (_comments == null)
return 0;
else
return _comments.size();
}
@Override
public void addComments(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkComment)) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void addComments(Comment _node) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_node);
}
@Override
public EdgeIterator<Annotation> getAnnotationsIterator() {
if (_hasAnnotations == null)
return EdgeList.<Annotation>emptyList().iterator();
else
return _hasAnnotations.iterator();
}
@Override
public boolean getAnnotationsIsEmpty() {
if (_hasAnnotations == null)
return true;
else
return _hasAnnotations.isEmpty();
}
@Override
public int getAnnotationsSize() {
if (_hasAnnotations == null)
return 0;
else
return _hasAnnotations.size();
}
@Override
public void addAnnotations(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkAnnotation)) {
if (_hasAnnotations == null)
_hasAnnotations = new EdgeList<Annotation>(factory);
_hasAnnotations.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addAnnotations(Annotation _node) {
if (_hasAnnotations == null)
_hasAnnotations = new EdgeList<Annotation>(factory);
_hasAnnotations.add(_node);
setParentEdge(_node);
}
@Override
public TypeExpression getType() {
if (_hasType == 0)
return null;
if (factory.getIsFiltered(_hasType))
return null;
return (TypeExpression)factory.getRef(_hasType);
}
@Override
public void setType(int _id) {
if (_hasType != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasType" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkTypeExpression)) {
_hasType = _id;
setParentEdge(_hasType);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setType(TypeExpression _node) {
if (_hasType != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasType" ));
_hasType = _node.getId();
setParentEdge(_hasType);
}
@Override
public Expression getInitialValue() {
if (_hasInitialValue == 0)
return null;
if (factory.getIsFiltered(_hasInitialValue))
return null;
return (Expression)factory.getRef(_hasInitialValue);
}
@Override
public void setInitialValue(int _id) {
if (_hasInitialValue != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasInitialValue" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkExpression)) {
_hasInitialValue = _id;
setParentEdge(_hasInitialValue);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setInitialValue(Expression _node) {
if (_hasInitialValue != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasInitialValue" ));
_hasInitialValue = _node.getId();
setParentEdge(_hasInitialValue);
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
if (_comments != null) {
EdgeIterator<Comment> it = getCommentsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
if (_hasAnnotations != null) {
EdgeIterator<Annotation> it = getAnnotationsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
io.writeInt4(((Range)position).getPathKey());
io.writeInt4(((Range)position).getLine());
io.writeInt4(((Range)position).getCol());
io.writeInt4(((Range)position).getEndLine());
io.writeInt4(((Range)position).getEndCol());
io.writeInt4(((Range)position).getWideLine());
io.writeInt4(((Range)position).getWideCol());
io.writeInt4(((Range)position).getWideEndLine());
io.writeInt4(((Range)position).getWideEndCol());
{
byte boolValues = 0;
boolValues <<= 1;
if (isCompilerGenerated)
boolValues |= 1;
boolValues <<= 1;
if (isToolGenerated)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeInt4(name);
io.writeInt4(((Range)namePosition).getPathKey());
io.writeInt4(((Range)namePosition).getLine());
io.writeInt4(((Range)namePosition).getCol());
io.writeInt4(((Range)namePosition).getEndLine());
io.writeInt4(((Range)namePosition).getEndCol());
io.writeInt4(((Range)namePosition).getWideLine());
io.writeInt4(((Range)namePosition).getWideCol());
io.writeInt4(((Range)namePosition).getWideEndLine());
io.writeInt4(((Range)namePosition).getWideEndCol());
{
byte boolValues = 0;
boolValues <<= 1;
if (isStatic)
boolValues |= 1;
boolValues <<= 1;
if (isFinal)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeUByte1(accessibility.ordinal());
io.writeInt4(((Range)accessibilityPosition).getPathKey());
io.writeInt4(((Range)accessibilityPosition).getLine());
io.writeInt4(((Range)accessibilityPosition).getCol());
io.writeInt4(((Range)accessibilityPosition).getEndLine());
io.writeInt4(((Range)accessibilityPosition).getEndCol());
io.writeInt4(((Range)accessibilityPosition).getWideLine());
io.writeInt4(((Range)accessibilityPosition).getWideCol());
io.writeInt4(((Range)accessibilityPosition).getWideEndLine());
io.writeInt4(((Range)accessibilityPosition).getWideEndCol());
io.writeInt4(((Range)staticPosition).getPathKey());
io.writeInt4(((Range)staticPosition).getLine());
io.writeInt4(((Range)staticPosition).getCol());
io.writeInt4(((Range)staticPosition).getEndLine());
io.writeInt4(((Range)staticPosition).getEndCol());
io.writeInt4(((Range)staticPosition).getWideLine());
io.writeInt4(((Range)staticPosition).getWideCol());
io.writeInt4(((Range)staticPosition).getWideEndLine());
io.writeInt4(((Range)staticPosition).getWideEndCol());
io.writeInt4(((Range)finalPosition).getPathKey());
io.writeInt4(((Range)finalPosition).getLine());
io.writeInt4(((Range)finalPosition).getCol());
io.writeInt4(((Range)finalPosition).getEndLine());
io.writeInt4(((Range)finalPosition).getEndCol());
io.writeInt4(((Range)finalPosition).getWideLine());
io.writeInt4(((Range)finalPosition).getWideCol());
io.writeInt4(((Range)finalPosition).getWideEndLine());
io.writeInt4(((Range)finalPosition).getWideEndCol());
io.writeInt4(!factory.getIsFiltered(_hasType) ? _hasType : 0);
{
byte boolValues = 0;
boolValues <<= 1;
if (isTransient)
boolValues |= 1;
boolValues <<= 1;
if (isVolatile)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeInt4(((Range)transientPosition).getPathKey());
io.writeInt4(((Range)transientPosition).getLine());
io.writeInt4(((Range)transientPosition).getCol());
io.writeInt4(((Range)transientPosition).getEndLine());
io.writeInt4(((Range)transientPosition).getEndCol());
io.writeInt4(((Range)transientPosition).getWideLine());
io.writeInt4(((Range)transientPosition).getWideCol());
io.writeInt4(((Range)transientPosition).getWideEndLine());
io.writeInt4(((Range)transientPosition).getWideEndCol());
io.writeInt4(((Range)volatilePosition).getPathKey());
io.writeInt4(((Range)volatilePosition).getLine());
io.writeInt4(((Range)volatilePosition).getCol());
io.writeInt4(((Range)volatilePosition).getEndLine());
io.writeInt4(((Range)volatilePosition).getEndCol());
io.writeInt4(((Range)volatilePosition).getWideLine());
io.writeInt4(((Range)volatilePosition).getWideCol());
io.writeInt4(((Range)volatilePosition).getWideEndLine());
io.writeInt4(((Range)volatilePosition).getWideEndCol());
io.writeInt4(((Range)equalSignPosition).getPathKey());
io.writeInt4(((Range)equalSignPosition).getLine());
io.writeInt4(((Range)equalSignPosition).getCol());
io.writeInt4(((Range)equalSignPosition).getEndLine());
io.writeInt4(((Range)equalSignPosition).getEndCol());
io.writeInt4(((Range)equalSignPosition).getWideLine());
io.writeInt4(((Range)equalSignPosition).getWideCol());
io.writeInt4(((Range)equalSignPosition).getWideEndLine());
io.writeInt4(((Range)equalSignPosition).getWideEndCol());
io.writeInt4(!factory.getIsFiltered(_hasInitialValue) ? _hasInitialValue : 0);
}
// ---------- Load ----------
@Override
public void load(IO io) {
int _id;
_id = io.readInt4();
if (_id != 0) {
_comments = new EdgeList<Comment>(factory);
while (_id != 0) {
_comments.add(_id);
_id = io.readInt4();
}
}
_id = io.readInt4();
if (_id != 0) {
_hasAnnotations = new EdgeList<Annotation>(factory);
while (_id != 0) {
_hasAnnotations.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
((Range)position).setPathKey(io.readInt4());
((Range)position).setLine(io.readInt4());
((Range)position).setCol(io.readInt4());
((Range)position).setEndLine(io.readInt4());
((Range)position).setEndCol(io.readInt4());
((Range)position).setWideLine(io.readInt4());
((Range)position).setWideCol(io.readInt4());
((Range)position).setWideEndLine(io.readInt4());
((Range)position).setWideEndCol(io.readInt4());
{
byte boolValues = io.readByte1();
isToolGenerated = (boolValues & 1) != 0;
boolValues >>>= 1;
isCompilerGenerated = (boolValues & 1) != 0;
boolValues >>>= 1;
}
name = io.readInt4();
((Range)namePosition).setPathKey(io.readInt4());
((Range)namePosition).setLine(io.readInt4());
((Range)namePosition).setCol(io.readInt4());
((Range)namePosition).setEndLine(io.readInt4());
((Range)namePosition).setEndCol(io.readInt4());
((Range)namePosition).setWideLine(io.readInt4());
((Range)namePosition).setWideCol(io.readInt4());
((Range)namePosition).setWideEndLine(io.readInt4());
((Range)namePosition).setWideEndCol(io.readInt4());
{
byte boolValues = io.readByte1();
isFinal = (boolValues & 1) != 0;
boolValues >>>= 1;
isStatic = (boolValues & 1) != 0;
boolValues >>>= 1;
}
accessibility = AccessibilityKind.values()[io.readUByte1()];
((Range)accessibilityPosition).setPathKey(io.readInt4());
((Range)accessibilityPosition).setLine(io.readInt4());
((Range)accessibilityPosition).setCol(io.readInt4());
((Range)accessibilityPosition).setEndLine(io.readInt4());
((Range)accessibilityPosition).setEndCol(io.readInt4());
((Range)accessibilityPosition).setWideLine(io.readInt4());
((Range)accessibilityPosition).setWideCol(io.readInt4());
((Range)accessibilityPosition).setWideEndLine(io.readInt4());
((Range)accessibilityPosition).setWideEndCol(io.readInt4());
((Range)staticPosition).setPathKey(io.readInt4());
((Range)staticPosition).setLine(io.readInt4());
((Range)staticPosition).setCol(io.readInt4());
((Range)staticPosition).setEndLine(io.readInt4());
((Range)staticPosition).setEndCol(io.readInt4());
((Range)staticPosition).setWideLine(io.readInt4());
((Range)staticPosition).setWideCol(io.readInt4());
((Range)staticPosition).setWideEndLine(io.readInt4());
((Range)staticPosition).setWideEndCol(io.readInt4());
((Range)finalPosition).setPathKey(io.readInt4());
((Range)finalPosition).setLine(io.readInt4());
((Range)finalPosition).setCol(io.readInt4());
((Range)finalPosition).setEndLine(io.readInt4());
((Range)finalPosition).setEndCol(io.readInt4());
((Range)finalPosition).setWideLine(io.readInt4());
((Range)finalPosition).setWideCol(io.readInt4());
((Range)finalPosition).setWideEndLine(io.readInt4());
((Range)finalPosition).setWideEndCol(io.readInt4());
_hasType = io.readInt4();
if (_hasType != 0)
setParentEdge(_hasType);
{
byte boolValues = io.readByte1();
isVolatile = (boolValues & 1) != 0;
boolValues >>>= 1;
isTransient = (boolValues & 1) != 0;
boolValues >>>= 1;
}
((Range)transientPosition).setPathKey(io.readInt4());
((Range)transientPosition).setLine(io.readInt4());
((Range)transientPosition).setCol(io.readInt4());
((Range)transientPosition).setEndLine(io.readInt4());
((Range)transientPosition).setEndCol(io.readInt4());
((Range)transientPosition).setWideLine(io.readInt4());
((Range)transientPosition).setWideCol(io.readInt4());
((Range)transientPosition).setWideEndLine(io.readInt4());
((Range)transientPosition).setWideEndCol(io.readInt4());
((Range)volatilePosition).setPathKey(io.readInt4());
((Range)volatilePosition).setLine(io.readInt4());
((Range)volatilePosition).setCol(io.readInt4());
((Range)volatilePosition).setEndLine(io.readInt4());
((Range)volatilePosition).setEndCol(io.readInt4());
((Range)volatilePosition).setWideLine(io.readInt4());
((Range)volatilePosition).setWideCol(io.readInt4());
((Range)volatilePosition).setWideEndLine(io.readInt4());
((Range)volatilePosition).setWideEndCol(io.readInt4());
((Range)equalSignPosition).setPathKey(io.readInt4());
((Range)equalSignPosition).setLine(io.readInt4());
((Range)equalSignPosition).setCol(io.readInt4());
((Range)equalSignPosition).setEndLine(io.readInt4());
((Range)equalSignPosition).setEndCol(io.readInt4());
((Range)equalSignPosition).setWideLine(io.readInt4());
((Range)equalSignPosition).setWideCol(io.readInt4());
((Range)equalSignPosition).setWideEndLine(io.readInt4());
((Range)equalSignPosition).setWideEndCol(io.readInt4());
_hasInitialValue = io.readInt4();
if (_hasInitialValue != 0)
setParentEdge(_hasInitialValue);
}
}
| 22,123 | 28.776581 | 130 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/VariableDeclaration.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
import columbus.java.asg.expr.TypeExpression;
/**
* Interface VariableDeclaration, which represents the {@link columbus.java.asg.struc.VariableDeclaration VariableDeclaration} node.
* @columbus.node (missing)
* @columbus.edge hasType ({@link columbus.java.asg.expr.TypeExpression TypeExpression}, single) : (missing)
*/
public interface VariableDeclaration extends NamedDeclaration {
/**
* Gives back the reference of the node the {@link columbus.java.asg.struc.VariableDeclaration#edgeHasType hasType} edge points to.
* @return Returns the end point of the hasType edge.
*/
public TypeExpression getType();
/**
* Sets the {@link columbus.java.asg.struc.VariableDeclaration#edgeHasType hasType} edge.
* @param id The new end point of the hasType edge.
*/
public void setType(int id);
/**
* Sets the {@link columbus.java.asg.struc.VariableDeclaration#edgeHasType hasType} edge.
* @param node The new end point of the hasType edge.
*/
public void setType(TypeExpression node);
}
| 1,776 | 33.173077 | 132 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/ModuleImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.base.Base;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.struc.Module Module} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class ModuleImpl extends BaseImpl implements Module {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(ModuleImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
protected int name;
protected Object namePosition;
protected EdgeList<Package> _packages;
public ModuleImpl(int id, Factory factory) {
super(id, factory);
namePosition = new Range(factory.getStringTable());
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkModule;
}
@Override
public String getName() {
return factory.getStringTable().get(name);
}
@Override
public int getNameKey() {
return name;
}
@Override
public Range getNamePosition() {
return (Range)namePosition;
}
@Override
public void setName(String _name) {
name = factory.getStringTable().set(_name);
}
@Override
public void setNamePosition(Range _namePosition) {
if (factory.getStringTable() == _namePosition.getStringTable())
namePosition = _namePosition;
else
namePosition = new Range(factory.getStringTable(), _namePosition);
}
@Override
public EdgeIterator<Package> getPackagesIterator() {
if (_packages == null)
return EdgeList.<Package>emptyList().iterator();
else
return _packages.iterator();
}
@Override
public boolean getPackagesIsEmpty() {
if (_packages == null)
return true;
else
return _packages.isEmpty();
}
@Override
public int getPackagesSize() {
if (_packages == null)
return 0;
else
return _packages.size();
}
@Override
public void addPackages(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (_node.getNodeKind() == NodeKind.ndkPackage) {
if (_packages == null)
_packages = new EdgeList<Package>(factory);
_packages.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void addPackages(Package _node) {
if (_packages == null)
_packages = new EdgeList<Package>(factory);
_packages.add(_node);
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
io.writeInt4(name);
io.writeInt4(((Range)namePosition).getPathKey());
io.writeInt4(((Range)namePosition).getLine());
io.writeInt4(((Range)namePosition).getCol());
io.writeInt4(((Range)namePosition).getEndLine());
io.writeInt4(((Range)namePosition).getEndCol());
io.writeInt4(((Range)namePosition).getWideLine());
io.writeInt4(((Range)namePosition).getWideCol());
io.writeInt4(((Range)namePosition).getWideEndLine());
io.writeInt4(((Range)namePosition).getWideEndCol());
if (_packages != null) {
EdgeIterator<Package> it = getPackagesIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
}
// ---------- Load ----------
@Override
public void load(IO io) {
int _id;
name = io.readInt4();
((Range)namePosition).setPathKey(io.readInt4());
((Range)namePosition).setLine(io.readInt4());
((Range)namePosition).setCol(io.readInt4());
((Range)namePosition).setEndLine(io.readInt4());
((Range)namePosition).setEndCol(io.readInt4());
((Range)namePosition).setWideLine(io.readInt4());
((Range)namePosition).setWideCol(io.readInt4());
((Range)namePosition).setWideEndLine(io.readInt4());
((Range)namePosition).setWideEndCol(io.readInt4());
_id = io.readInt4();
if (_id != 0) {
_packages = new EdgeList<Package>(factory);
while (_id != 0) {
_packages.add(_id);
_id = io.readInt4();
}
}
}
}
| 5,061 | 24.059406 | 128 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/CompilationUnit.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
import columbus.java.asg.*;
import columbus.java.asg.base.Positioned;
import columbus.java.asg.base.PositionedWithoutComment;
import columbus.java.asg.base.Commentable;
/**
* Interface CompilationUnit, which represents the {@link columbus.java.asg.struc.CompilationUnit CompilationUnit} node.
* @columbus.node (missing)
* @columbus.attr fileEncoding (String) : (missing)
* @columbus.edge hasPackageDeclaration ({@link columbus.java.asg.struc.PackageDeclaration PackageDeclaration}, single) : (missing)
* @columbus.edge hasImports ({@link columbus.java.asg.struc.Import Import}, multiple) : (missing)
* @columbus.edge hasOthers ({@link columbus.java.asg.base.Positioned Positioned}, multiple) : (missing)
* @columbus.edge hasModuleDeclaration ({@link columbus.java.asg.struc.ModuleDeclaration ModuleDeclaration}, single) : (missing)
* @columbus.edge typeDeclarations ({@link columbus.java.asg.struc.TypeDeclaration TypeDeclaration}, multiple) : (missing)
* @columbus.edge isInModule ({@link columbus.java.asg.struc.Module Module}, single) : (missing)
*/
public interface CompilationUnit extends PositionedWithoutComment, Commentable {
/**
* Gives back the {@link columbus.java.asg.struc.CompilationUnit#attributeFileEncoding fileEncoding} of the node.
* @return Returns with the fileEncoding.
*/
public String getFileEncoding();
/**
* Gives back the Key of {@link columbus.java.asg.struc.CompilationUnit#attributeFileEncoding fileEncoding} of the node.
* @return Returns with the Key of the fileEncoding.
*/
public int getFileEncodingKey();
/**
* Sets the {@link columbus.java.asg.struc.CompilationUnit#attributeFileEncoding fileEncoding} of the node.
* @param value The new value of the fileEncoding.
*/
public void setFileEncoding(String value);
/**
* Gives back the reference of the node the {@link columbus.java.asg.struc.CompilationUnit#edgeHasPackageDeclaration hasPackageDeclaration} edge points to.
* @return Returns the end point of the hasPackageDeclaration edge.
*/
public PackageDeclaration getPackageDeclaration();
/**
* Sets the {@link columbus.java.asg.struc.CompilationUnit#edgeHasPackageDeclaration hasPackageDeclaration} edge.
* @param id The new end point of the hasPackageDeclaration edge.
*/
public void setPackageDeclaration(int id);
/**
* Sets the {@link columbus.java.asg.struc.CompilationUnit#edgeHasPackageDeclaration hasPackageDeclaration} edge.
* @param node The new end point of the hasPackageDeclaration edge.
*/
public void setPackageDeclaration(PackageDeclaration node);
/**
* Gives back iterator for the {@link columbus.java.asg.struc.CompilationUnit#edgeHasImports hasImports} edges.
* @return Returns an iterator for the hasImports edges.
*/
public EdgeIterator<Import> getImportsIterator();
/**
* Tells whether the node has {@link columbus.java.asg.struc.CompilationUnit#edgeHasImports hasImports} edges or not.
* @return Returns true if the node doesn't have any hasImports edge.
*/
public boolean getImportsIsEmpty();
/**
* Gives back how many {@link columbus.java.asg.struc.CompilationUnit#edgeHasImports hasImports} edges the node has.
* @return Returns with the number of hasImports edges.
*/
public int getImportsSize();
/**
* Adds a new {@link columbus.java.asg.struc.CompilationUnit#edgeHasImports hasImports} edge to the node.
* @param id The end point of the new hasImports edge.
*/
public void addImports(int id);
/**
* Adds a new {@link columbus.java.asg.struc.CompilationUnit#edgeHasImports hasImports} edge to the node.
* @param node The end point of the new hasImports edge.
*/
public void addImports(Import node);
/**
* Gives back iterator for the {@link columbus.java.asg.struc.CompilationUnit#edgeHasOthers hasOthers} edges.
* @return Returns an iterator for the hasOthers edges.
*/
public EdgeIterator<Positioned> getOthersIterator();
/**
* Tells whether the node has {@link columbus.java.asg.struc.CompilationUnit#edgeHasOthers hasOthers} edges or not.
* @return Returns true if the node doesn't have any hasOthers edge.
*/
public boolean getOthersIsEmpty();
/**
* Gives back how many {@link columbus.java.asg.struc.CompilationUnit#edgeHasOthers hasOthers} edges the node has.
* @return Returns with the number of hasOthers edges.
*/
public int getOthersSize();
/**
* Adds a new {@link columbus.java.asg.struc.CompilationUnit#edgeHasOthers hasOthers} edge to the node.
* @param id The end point of the new hasOthers edge.
*/
public void addOthers(int id);
/**
* Adds a new {@link columbus.java.asg.struc.CompilationUnit#edgeHasOthers hasOthers} edge to the node.
* @param node The end point of the new hasOthers edge.
*/
public void addOthers(Positioned node);
/**
* Gives back the reference of the node the {@link columbus.java.asg.struc.CompilationUnit#edgeHasModuleDeclaration hasModuleDeclaration} edge points to.
* @return Returns the end point of the hasModuleDeclaration edge.
*/
public ModuleDeclaration getModuleDeclaration();
/**
* Sets the {@link columbus.java.asg.struc.CompilationUnit#edgeHasModuleDeclaration hasModuleDeclaration} edge.
* @param id The new end point of the hasModuleDeclaration edge.
*/
public void setModuleDeclaration(int id);
/**
* Sets the {@link columbus.java.asg.struc.CompilationUnit#edgeHasModuleDeclaration hasModuleDeclaration} edge.
* @param node The new end point of the hasModuleDeclaration edge.
*/
public void setModuleDeclaration(ModuleDeclaration node);
/**
* Gives back iterator for the {@link columbus.java.asg.struc.CompilationUnit#edgeTypeDeclarations typeDeclarations} edges.
* @return Returns an iterator for the typeDeclarations edges.
*/
public EdgeIterator<TypeDeclaration> getTypeDeclarationsIterator();
/**
* Tells whether the node has {@link columbus.java.asg.struc.CompilationUnit#edgeTypeDeclarations typeDeclarations} edges or not.
* @return Returns true if the node doesn't have any typeDeclarations edge.
*/
public boolean getTypeDeclarationsIsEmpty();
/**
* Gives back how many {@link columbus.java.asg.struc.CompilationUnit#edgeTypeDeclarations typeDeclarations} edges the node has.
* @return Returns with the number of typeDeclarations edges.
*/
public int getTypeDeclarationsSize();
/**
* Adds a new {@link columbus.java.asg.struc.CompilationUnit#edgeTypeDeclarations typeDeclarations} edge to the node.
* @param id The end point of the new typeDeclarations edge.
*/
public void addTypeDeclarations(int id);
/**
* Adds a new {@link columbus.java.asg.struc.CompilationUnit#edgeTypeDeclarations typeDeclarations} edge to the node.
* @param node The end point of the new typeDeclarations edge.
*/
public void addTypeDeclarations(TypeDeclaration node);
/**
* Gives back the reference of the node the {@link columbus.java.asg.struc.CompilationUnit#edgeIsInModule isInModule} edge points to.
* @return Returns the end point of the isInModule edge.
*/
public Module getIsInModule();
/**
* Sets the {@link columbus.java.asg.struc.CompilationUnit#edgeIsInModule isInModule} edge.
* @param id The new end point of the isInModule edge.
*/
public void setIsInModule(int id);
/**
* Sets the {@link columbus.java.asg.struc.CompilationUnit#edgeIsInModule isInModule} edge.
* @param node The new end point of the isInModule edge.
*/
public void setIsInModule(Module node);
}
| 8,204 | 39.02439 | 156 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/NormalMethod.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
import columbus.java.asg.*;
import columbus.java.asg.statm.Block;
import columbus.java.asg.expr.TypeExpression;
import columbus.java.asg.enums.*;
/**
* Interface NormalMethod, which represents the {@link columbus.java.asg.struc.NormalMethod NormalMethod} node.
* @columbus.node (missing)
* @columbus.attr methodKind ({@link columbus.java.asg.enums.MethodKind MethodKind}) : (missing)
* @columbus.attr isSynchronized (boolean) : (missing)
* @columbus.attr synchronizedPosition (Range) : (missing)
* @columbus.attr isNative (boolean) : (missing)
* @columbus.attr nativePosition (Range) : (missing)
* @columbus.attr throwsPosition (Range) : (missing)
* @columbus.attr isDefault (boolean) : (missing)
* @columbus.edge hasParameters ({@link columbus.java.asg.struc.Parameter Parameter}, multiple) : (missing)
* @columbus.edge hasBody ({@link columbus.java.asg.statm.Block Block}, single) : (missing)
* @columbus.edge hasThrownExceptions ({@link columbus.java.asg.expr.TypeExpression TypeExpression}, multiple) : (missing)
*/
public interface NormalMethod extends MethodDeclaration {
/**
* Gives back the {@link columbus.java.asg.struc.NormalMethod#attributeMethodKind methodKind} of the node.
* @return Returns with the methodKind.
*/
public MethodKind getMethodKind();
/**
* Sets the {@link columbus.java.asg.struc.NormalMethod#attributeMethodKind methodKind} of the node.
* @param value The new value of the methodKind.
*/
public void setMethodKind(MethodKind value);
/**
* Gives back the {@link columbus.java.asg.struc.NormalMethod#attributeIsSynchronized isSynchronized} of the node.
* @return Returns with the isSynchronized.
*/
public boolean getIsSynchronized();
/**
* Sets the {@link columbus.java.asg.struc.NormalMethod#attributeIsSynchronized isSynchronized} of the node.
* @param value The new value of the isSynchronized.
*/
public void setIsSynchronized(boolean value);
/**
* Gives back the {@link columbus.java.asg.struc.NormalMethod#attributeSynchronizedPosition synchronizedPosition} of the node.
* @return Returns with the synchronizedPosition.
*/
public Range getSynchronizedPosition();
/**
* Sets the {@link columbus.java.asg.struc.NormalMethod#attributeSynchronizedPosition synchronizedPosition} of the node.
* @param value The new value of the synchronizedPosition.
*/
public void setSynchronizedPosition(Range value);
/**
* Gives back the {@link columbus.java.asg.struc.NormalMethod#attributeIsNative isNative} of the node.
* @return Returns with the isNative.
*/
public boolean getIsNative();
/**
* Sets the {@link columbus.java.asg.struc.NormalMethod#attributeIsNative isNative} of the node.
* @param value The new value of the isNative.
*/
public void setIsNative(boolean value);
/**
* Gives back the {@link columbus.java.asg.struc.NormalMethod#attributeNativePosition nativePosition} of the node.
* @return Returns with the nativePosition.
*/
public Range getNativePosition();
/**
* Sets the {@link columbus.java.asg.struc.NormalMethod#attributeNativePosition nativePosition} of the node.
* @param value The new value of the nativePosition.
*/
public void setNativePosition(Range value);
/**
* Gives back the {@link columbus.java.asg.struc.NormalMethod#attributeThrowsPosition throwsPosition} of the node.
* @return Returns with the throwsPosition.
*/
public Range getThrowsPosition();
/**
* Sets the {@link columbus.java.asg.struc.NormalMethod#attributeThrowsPosition throwsPosition} of the node.
* @param value The new value of the throwsPosition.
*/
public void setThrowsPosition(Range value);
/**
* Gives back the {@link columbus.java.asg.struc.NormalMethod#attributeIsDefault isDefault} of the node.
* @return Returns with the isDefault.
*/
public boolean getIsDefault();
/**
* Sets the {@link columbus.java.asg.struc.NormalMethod#attributeIsDefault isDefault} of the node.
* @param value The new value of the isDefault.
*/
public void setIsDefault(boolean value);
/**
* Gives back iterator for the {@link columbus.java.asg.struc.NormalMethod#edgeHasParameters hasParameters} edges.
* @return Returns an iterator for the hasParameters edges.
*/
public EdgeIterator<Parameter> getParametersIterator();
/**
* Tells whether the node has {@link columbus.java.asg.struc.NormalMethod#edgeHasParameters hasParameters} edges or not.
* @return Returns true if the node doesn't have any hasParameters edge.
*/
public boolean getParametersIsEmpty();
/**
* Gives back how many {@link columbus.java.asg.struc.NormalMethod#edgeHasParameters hasParameters} edges the node has.
* @return Returns with the number of hasParameters edges.
*/
public int getParametersSize();
/**
* Adds a new {@link columbus.java.asg.struc.NormalMethod#edgeHasParameters hasParameters} edge to the node.
* @param id The end point of the new hasParameters edge.
*/
public void addParameters(int id);
/**
* Adds a new {@link columbus.java.asg.struc.NormalMethod#edgeHasParameters hasParameters} edge to the node.
* @param node The end point of the new hasParameters edge.
*/
public void addParameters(Parameter node);
/**
* Gives back the reference of the node the {@link columbus.java.asg.struc.NormalMethod#edgeHasBody hasBody} edge points to.
* @return Returns the end point of the hasBody edge.
*/
public Block getBody();
/**
* Sets the {@link columbus.java.asg.struc.NormalMethod#edgeHasBody hasBody} edge.
* @param id The new end point of the hasBody edge.
*/
public void setBody(int id);
/**
* Sets the {@link columbus.java.asg.struc.NormalMethod#edgeHasBody hasBody} edge.
* @param node The new end point of the hasBody edge.
*/
public void setBody(Block node);
/**
* Gives back iterator for the {@link columbus.java.asg.struc.NormalMethod#edgeHasThrownExceptions hasThrownExceptions} edges.
* @return Returns an iterator for the hasThrownExceptions edges.
*/
public EdgeIterator<TypeExpression> getThrownExceptionsIterator();
/**
* Tells whether the node has {@link columbus.java.asg.struc.NormalMethod#edgeHasThrownExceptions hasThrownExceptions} edges or not.
* @return Returns true if the node doesn't have any hasThrownExceptions edge.
*/
public boolean getThrownExceptionsIsEmpty();
/**
* Gives back how many {@link columbus.java.asg.struc.NormalMethod#edgeHasThrownExceptions hasThrownExceptions} edges the node has.
* @return Returns with the number of hasThrownExceptions edges.
*/
public int getThrownExceptionsSize();
/**
* Adds a new {@link columbus.java.asg.struc.NormalMethod#edgeHasThrownExceptions hasThrownExceptions} edge to the node.
* @param id The end point of the new hasThrownExceptions edge.
*/
public void addThrownExceptions(int id);
/**
* Adds a new {@link columbus.java.asg.struc.NormalMethod#edgeHasThrownExceptions hasThrownExceptions} edge to the node.
* @param node The end point of the new hasThrownExceptions edge.
*/
public void addThrownExceptions(TypeExpression node);
}
| 7,827 | 36.634615 | 133 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/InterfaceGeneric.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
/**
* Interface InterfaceGeneric, which represents the {@link columbus.java.asg.struc.InterfaceGeneric InterfaceGeneric} node.
* @columbus.node (missing)
*/
public interface InterfaceGeneric extends InterfaceDeclaration, GenericDeclaration {
}
| 1,015 | 30.75 | 123 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/CompilationUnitImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.base.Base;
import columbus.java.asg.base.Positioned;
import columbus.java.asg.base.Comment;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.struc.CompilationUnit CompilationUnit} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class CompilationUnitImpl extends BaseImpl implements CompilationUnit {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(CompilationUnitImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
protected Object position;
protected EdgeList<Comment> _comments;
protected int fileEncoding;
protected int _hasPackageDeclaration;
protected EdgeList<Import> _hasImports;
protected EdgeList<Positioned> _hasOthers;
protected int _hasModuleDeclaration;
protected EdgeList<TypeDeclaration> _typeDeclarations;
protected int _isInModule;
public CompilationUnitImpl(int id, Factory factory) {
super(id, factory);
position = new Range(factory.getStringTable());
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkCompilationUnit;
}
@Override
public Range getPosition() {
return (Range)position;
}
@Override
public void setPosition(Range _position) {
if (factory.getStringTable() == _position.getStringTable())
position = _position;
else
position = new Range(factory.getStringTable(), _position);
}
@Override
public String getFileEncoding() {
return factory.getStringTable().get(fileEncoding);
}
@Override
public int getFileEncodingKey() {
return fileEncoding;
}
@Override
public void setFileEncoding(String _fileEncoding) {
fileEncoding = factory.getStringTable().set(_fileEncoding);
}
@Override
public EdgeIterator<Comment> getCommentsIterator() {
if (_comments == null)
return EdgeList.<Comment>emptyList().iterator();
else
return _comments.iterator();
}
@Override
public boolean getCommentsIsEmpty() {
if (_comments == null)
return true;
else
return _comments.isEmpty();
}
@Override
public int getCommentsSize() {
if (_comments == null)
return 0;
else
return _comments.size();
}
@Override
public void addComments(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkComment)) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void addComments(Comment _node) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_node);
}
@Override
public PackageDeclaration getPackageDeclaration() {
if (_hasPackageDeclaration == 0)
return null;
if (factory.getIsFiltered(_hasPackageDeclaration))
return null;
return (PackageDeclaration)factory.getRef(_hasPackageDeclaration);
}
@Override
public EdgeIterator<Import> getImportsIterator() {
if (_hasImports == null)
return EdgeList.<Import>emptyList().iterator();
else
return _hasImports.iterator();
}
@Override
public boolean getImportsIsEmpty() {
if (_hasImports == null)
return true;
else
return _hasImports.isEmpty();
}
@Override
public int getImportsSize() {
if (_hasImports == null)
return 0;
else
return _hasImports.size();
}
@Override
public EdgeIterator<Positioned> getOthersIterator() {
if (_hasOthers == null)
return EdgeList.<Positioned>emptyList().iterator();
else
return _hasOthers.iterator();
}
@Override
public boolean getOthersIsEmpty() {
if (_hasOthers == null)
return true;
else
return _hasOthers.isEmpty();
}
@Override
public int getOthersSize() {
if (_hasOthers == null)
return 0;
else
return _hasOthers.size();
}
@Override
public ModuleDeclaration getModuleDeclaration() {
if (_hasModuleDeclaration == 0)
return null;
if (factory.getIsFiltered(_hasModuleDeclaration))
return null;
return (ModuleDeclaration)factory.getRef(_hasModuleDeclaration);
}
@Override
public EdgeIterator<TypeDeclaration> getTypeDeclarationsIterator() {
if (_typeDeclarations == null)
return EdgeList.<TypeDeclaration>emptyList().iterator();
else
return _typeDeclarations.iterator();
}
@Override
public boolean getTypeDeclarationsIsEmpty() {
if (_typeDeclarations == null)
return true;
else
return _typeDeclarations.isEmpty();
}
@Override
public int getTypeDeclarationsSize() {
if (_typeDeclarations == null)
return 0;
else
return _typeDeclarations.size();
}
@Override
public Module getIsInModule() {
if (_isInModule == 0)
return null;
if (factory.getIsFiltered(_isInModule))
return null;
return (Module)factory.getRef(_isInModule);
}
@Override
public void setPackageDeclaration(int _id) {
if (_hasPackageDeclaration != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasPackageDeclaration" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (_node.getNodeKind() == NodeKind.ndkPackageDeclaration) {
_hasPackageDeclaration = _id;
setParentEdge(_hasPackageDeclaration);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setPackageDeclaration(PackageDeclaration _node) {
if (_hasPackageDeclaration != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasPackageDeclaration" ));
_hasPackageDeclaration = _node.getId();
setParentEdge(_hasPackageDeclaration);
}
@Override
public void addImports(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (_node.getNodeKind() == NodeKind.ndkImport) {
if (_hasImports == null)
_hasImports = new EdgeList<Import>(factory);
_hasImports.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addImports(Import _node) {
if (_hasImports == null)
_hasImports = new EdgeList<Import>(factory);
_hasImports.add(_node);
setParentEdge(_node);
}
@Override
public void addOthers(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkPositioned)) {
if (_hasOthers == null)
_hasOthers = new EdgeList<Positioned>(factory);
_hasOthers.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addOthers(Positioned _node) {
if (_hasOthers == null)
_hasOthers = new EdgeList<Positioned>(factory);
_hasOthers.add(_node);
setParentEdge(_node);
}
@Override
public void setModuleDeclaration(int _id) {
if (_hasModuleDeclaration != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasModuleDeclaration" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (_node.getNodeKind() == NodeKind.ndkModuleDeclaration) {
_hasModuleDeclaration = _id;
setParentEdge(_hasModuleDeclaration);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setModuleDeclaration(ModuleDeclaration _node) {
if (_hasModuleDeclaration != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasModuleDeclaration" ));
_hasModuleDeclaration = _node.getId();
setParentEdge(_hasModuleDeclaration);
}
@Override
public void addTypeDeclarations(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkTypeDeclaration)) {
if (_typeDeclarations == null)
_typeDeclarations = new EdgeList<TypeDeclaration>(factory);
_typeDeclarations.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void addTypeDeclarations(TypeDeclaration _node) {
if (_typeDeclarations == null)
_typeDeclarations = new EdgeList<TypeDeclaration>(factory);
_typeDeclarations.add(_node);
}
@Override
public void setIsInModule(int _id) {
if (_isInModule != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","isInModule" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (_node.getNodeKind() == NodeKind.ndkModule) {
_isInModule = _id;
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setIsInModule(Module _node) {
if (_isInModule != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","isInModule" ));
_isInModule = _node.getId();
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
io.writeInt4(((Range)position).getPathKey());
io.writeInt4(((Range)position).getLine());
io.writeInt4(((Range)position).getCol());
io.writeInt4(((Range)position).getEndLine());
io.writeInt4(((Range)position).getEndCol());
io.writeInt4(((Range)position).getWideLine());
io.writeInt4(((Range)position).getWideCol());
io.writeInt4(((Range)position).getWideEndLine());
io.writeInt4(((Range)position).getWideEndCol());
if (_comments != null) {
EdgeIterator<Comment> it = getCommentsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
io.writeInt4(fileEncoding);
io.writeInt4(!factory.getIsFiltered(_hasPackageDeclaration) ? _hasPackageDeclaration : 0);
io.writeInt4(!factory.getIsFiltered(_hasModuleDeclaration) ? _hasModuleDeclaration : 0);
io.writeInt4(!factory.getIsFiltered(_isInModule) ? _isInModule : 0);
if (_hasImports != null) {
EdgeIterator<Import> it = getImportsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
if (_hasOthers != null) {
EdgeIterator<Positioned> it = getOthersIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
if (_typeDeclarations != null) {
EdgeIterator<TypeDeclaration> it = getTypeDeclarationsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
}
// ---------- Load ----------
@Override
public void load(IO io) {
int _id;
((Range)position).setPathKey(io.readInt4());
((Range)position).setLine(io.readInt4());
((Range)position).setCol(io.readInt4());
((Range)position).setEndLine(io.readInt4());
((Range)position).setEndCol(io.readInt4());
((Range)position).setWideLine(io.readInt4());
((Range)position).setWideCol(io.readInt4());
((Range)position).setWideEndLine(io.readInt4());
((Range)position).setWideEndCol(io.readInt4());
_id = io.readInt4();
if (_id != 0) {
_comments = new EdgeList<Comment>(factory);
while (_id != 0) {
_comments.add(_id);
_id = io.readInt4();
}
}
fileEncoding = io.readInt4();
_hasPackageDeclaration = io.readInt4();
if (_hasPackageDeclaration != 0)
setParentEdge(_hasPackageDeclaration);
_hasModuleDeclaration = io.readInt4();
if (_hasModuleDeclaration != 0)
setParentEdge(_hasModuleDeclaration);
_isInModule = io.readInt4();
_id = io.readInt4();
if (_id != 0) {
_hasImports = new EdgeList<Import>(factory);
while (_id != 0) {
_hasImports.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
_id = io.readInt4();
if (_id != 0) {
_hasOthers = new EdgeList<Positioned>(factory);
while (_id != 0) {
_hasOthers.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
_id = io.readInt4();
if (_id != 0) {
_typeDeclarations = new EdgeList<TypeDeclaration>(factory);
while (_id != 0) {
_typeDeclarations.add(_id);
_id = io.readInt4();
}
}
}
}
| 13,933 | 25.093633 | 137 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/Parameter.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
import columbus.java.asg.*;
/**
* Interface Parameter, which represents the {@link columbus.java.asg.struc.Parameter Parameter} node.
* @columbus.node (missing)
* @columbus.attr isVarargs (boolean) : (missing)
* @columbus.attr varargsPosition (Range) : (missing)
*/
public interface Parameter extends VariableDeclaration {
/**
* Gives back the {@link columbus.java.asg.struc.Parameter#attributeIsVarargs isVarargs} of the node.
* @return Returns with the isVarargs.
*/
public boolean getIsVarargs();
/**
* Sets the {@link columbus.java.asg.struc.Parameter#attributeIsVarargs isVarargs} of the node.
* @param value The new value of the isVarargs.
*/
public void setIsVarargs(boolean value);
/**
* Gives back the {@link columbus.java.asg.struc.Parameter#attributeVarargsPosition varargsPosition} of the node.
* @return Returns with the varargsPosition.
*/
public Range getVarargsPosition();
/**
* Sets the {@link columbus.java.asg.struc.Parameter#attributeVarargsPosition varargsPosition} of the node.
* @param value The new value of the varargsPosition.
*/
public void setVarargsPosition(Range value);
}
| 1,912 | 31.423729 | 114 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/TypeParameterImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.base.Base;
import columbus.java.asg.expr.TypeExpression;
import columbus.java.asg.base.Comment;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.struc.TypeParameter TypeParameter} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class TypeParameterImpl extends BaseImpl implements TypeParameter {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(TypeParameterImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
protected EdgeList<Comment> _comments;
protected Object position;
protected boolean isCompilerGenerated;
protected boolean isToolGenerated;
protected int name;
protected Object namePosition;
protected EdgeList<TypeExpression> _hasBounds;
public TypeParameterImpl(int id, Factory factory) {
super(id, factory);
position = new Range(factory.getStringTable());
namePosition = new Range(factory.getStringTable());
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkTypeParameter;
}
@Override
public Range getPosition() {
return (Range)position;
}
@Override
public void setPosition(Range _position) {
if (factory.getStringTable() == _position.getStringTable())
position = _position;
else
position = new Range(factory.getStringTable(), _position);
}
@Override
public boolean getIsCompilerGenerated() {
return isCompilerGenerated;
}
@Override
public boolean getIsToolGenerated() {
return isToolGenerated;
}
@Override
public void setIsCompilerGenerated(boolean _isCompilerGenerated) {
isCompilerGenerated = _isCompilerGenerated;
}
@Override
public void setIsToolGenerated(boolean _isToolGenerated) {
isToolGenerated = _isToolGenerated;
}
@Override
public String getName() {
return factory.getStringTable().get(name);
}
@Override
public int getNameKey() {
return name;
}
@Override
public Range getNamePosition() {
return (Range)namePosition;
}
@Override
public void setName(String _name) {
name = factory.getStringTable().set(_name);
}
@Override
public void setNamePosition(Range _namePosition) {
if (factory.getStringTable() == _namePosition.getStringTable())
namePosition = _namePosition;
else
namePosition = new Range(factory.getStringTable(), _namePosition);
}
@Override
public EdgeIterator<Comment> getCommentsIterator() {
if (_comments == null)
return EdgeList.<Comment>emptyList().iterator();
else
return _comments.iterator();
}
@Override
public boolean getCommentsIsEmpty() {
if (_comments == null)
return true;
else
return _comments.isEmpty();
}
@Override
public int getCommentsSize() {
if (_comments == null)
return 0;
else
return _comments.size();
}
@Override
public void addComments(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkComment)) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void addComments(Comment _node) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_node);
}
@Override
public EdgeIterator<TypeExpression> getBoundsIterator() {
if (_hasBounds == null)
return EdgeList.<TypeExpression>emptyList().iterator();
else
return _hasBounds.iterator();
}
@Override
public boolean getBoundsIsEmpty() {
if (_hasBounds == null)
return true;
else
return _hasBounds.isEmpty();
}
@Override
public int getBoundsSize() {
if (_hasBounds == null)
return 0;
else
return _hasBounds.size();
}
@Override
public void addBounds(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkTypeExpression)) {
if (_hasBounds == null)
_hasBounds = new EdgeList<TypeExpression>(factory);
_hasBounds.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addBounds(TypeExpression _node) {
if (_hasBounds == null)
_hasBounds = new EdgeList<TypeExpression>(factory);
_hasBounds.add(_node);
setParentEdge(_node);
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
if (_comments != null) {
EdgeIterator<Comment> it = getCommentsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
io.writeInt4(((Range)position).getPathKey());
io.writeInt4(((Range)position).getLine());
io.writeInt4(((Range)position).getCol());
io.writeInt4(((Range)position).getEndLine());
io.writeInt4(((Range)position).getEndCol());
io.writeInt4(((Range)position).getWideLine());
io.writeInt4(((Range)position).getWideCol());
io.writeInt4(((Range)position).getWideEndLine());
io.writeInt4(((Range)position).getWideEndCol());
{
byte boolValues = 0;
boolValues <<= 1;
if (isCompilerGenerated)
boolValues |= 1;
boolValues <<= 1;
if (isToolGenerated)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeInt4(name);
io.writeInt4(((Range)namePosition).getPathKey());
io.writeInt4(((Range)namePosition).getLine());
io.writeInt4(((Range)namePosition).getCol());
io.writeInt4(((Range)namePosition).getEndLine());
io.writeInt4(((Range)namePosition).getEndCol());
io.writeInt4(((Range)namePosition).getWideLine());
io.writeInt4(((Range)namePosition).getWideCol());
io.writeInt4(((Range)namePosition).getWideEndLine());
io.writeInt4(((Range)namePosition).getWideEndCol());
if (_hasBounds != null) {
EdgeIterator<TypeExpression> it = getBoundsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
}
// ---------- Load ----------
@Override
public void load(IO io) {
int _id;
_id = io.readInt4();
if (_id != 0) {
_comments = new EdgeList<Comment>(factory);
while (_id != 0) {
_comments.add(_id);
_id = io.readInt4();
}
}
((Range)position).setPathKey(io.readInt4());
((Range)position).setLine(io.readInt4());
((Range)position).setCol(io.readInt4());
((Range)position).setEndLine(io.readInt4());
((Range)position).setEndCol(io.readInt4());
((Range)position).setWideLine(io.readInt4());
((Range)position).setWideCol(io.readInt4());
((Range)position).setWideEndLine(io.readInt4());
((Range)position).setWideEndCol(io.readInt4());
{
byte boolValues = io.readByte1();
isToolGenerated = (boolValues & 1) != 0;
boolValues >>>= 1;
isCompilerGenerated = (boolValues & 1) != 0;
boolValues >>>= 1;
}
name = io.readInt4();
((Range)namePosition).setPathKey(io.readInt4());
((Range)namePosition).setLine(io.readInt4());
((Range)namePosition).setCol(io.readInt4());
((Range)namePosition).setEndLine(io.readInt4());
((Range)namePosition).setEndCol(io.readInt4());
((Range)namePosition).setWideLine(io.readInt4());
((Range)namePosition).setWideCol(io.readInt4());
((Range)namePosition).setWideEndLine(io.readInt4());
((Range)namePosition).setWideEndCol(io.readInt4());
_id = io.readInt4();
if (_id != 0) {
_hasBounds = new EdgeList<TypeExpression>(factory);
while (_id != 0) {
_hasBounds.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
}
}
| 8,916 | 24.404558 | 135 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/EnumImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.base.Base;
import columbus.java.asg.expr.TypeExpression;
import columbus.java.asg.base.Positioned;
import columbus.java.asg.base.Comment;
import columbus.java.asg.expr.Annotation;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.struc.Enum Enum} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class EnumImpl extends BaseImpl implements Enum {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(EnumImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
protected EdgeList<Comment> _comments;
protected EdgeList<Annotation> _hasAnnotations;
protected Object position;
protected boolean isCompilerGenerated;
protected boolean isToolGenerated;
protected int name;
protected Object namePosition;
protected AccessibilityKind accessibility = AccessibilityKind.ackNone;
protected Object accessibilityPosition;
protected boolean isStatic;
protected Object staticPosition;
protected boolean isFinal;
protected Object finalPosition;
protected EdgeList<Member> _hasMembers;
protected int lloc;
protected Object typeNamePosition;
protected boolean isAbstract;
protected Object abstractPosition;
protected boolean isStrictfp;
protected Object strictfpPosition;
protected int binaryName;
protected Object extendsPosition;
protected Object implementsPosition;
protected Object bodyStartPosition;
protected int _hasSuperClass;
protected EdgeList<TypeExpression> _hasSuperInterfaces;
protected EdgeList<Positioned> _hasOthers;
protected int _isInCompilationUnit;
protected int _isInModule;
protected Object semiPosition;
public EnumImpl(int id, Factory factory) {
super(id, factory);
position = new Range(factory.getStringTable());
namePosition = new Range(factory.getStringTable());
accessibilityPosition = new Range(factory.getStringTable());
staticPosition = new Range(factory.getStringTable());
finalPosition = new Range(factory.getStringTable());
typeNamePosition = new Range(factory.getStringTable());
abstractPosition = new Range(factory.getStringTable());
strictfpPosition = new Range(factory.getStringTable());
extendsPosition = new Range(factory.getStringTable());
implementsPosition = new Range(factory.getStringTable());
bodyStartPosition = new Range(factory.getStringTable());
semiPosition = new Range(factory.getStringTable());
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkEnum;
}
@Override
public Range getPosition() {
return (Range)position;
}
@Override
public void setPosition(Range _position) {
if (factory.getStringTable() == _position.getStringTable())
position = _position;
else
position = new Range(factory.getStringTable(), _position);
}
@Override
public boolean getIsCompilerGenerated() {
return isCompilerGenerated;
}
@Override
public boolean getIsToolGenerated() {
return isToolGenerated;
}
@Override
public void setIsCompilerGenerated(boolean _isCompilerGenerated) {
isCompilerGenerated = _isCompilerGenerated;
}
@Override
public void setIsToolGenerated(boolean _isToolGenerated) {
isToolGenerated = _isToolGenerated;
}
@Override
public String getName() {
return factory.getStringTable().get(name);
}
@Override
public int getNameKey() {
return name;
}
@Override
public Range getNamePosition() {
return (Range)namePosition;
}
@Override
public void setName(String _name) {
name = factory.getStringTable().set(_name);
}
@Override
public void setNamePosition(Range _namePosition) {
if (factory.getStringTable() == _namePosition.getStringTable())
namePosition = _namePosition;
else
namePosition = new Range(factory.getStringTable(), _namePosition);
}
@Override
public AccessibilityKind getAccessibility() {
return accessibility;
}
@Override
public Range getAccessibilityPosition() {
return (Range)accessibilityPosition;
}
@Override
public boolean getIsStatic() {
return isStatic;
}
@Override
public Range getStaticPosition() {
return (Range)staticPosition;
}
@Override
public boolean getIsFinal() {
return isFinal;
}
@Override
public Range getFinalPosition() {
return (Range)finalPosition;
}
@Override
public void setAccessibility(AccessibilityKind _accessibility) {
accessibility = _accessibility;
}
@Override
public void setAccessibilityPosition(Range _accessibilityPosition) {
if (factory.getStringTable() == _accessibilityPosition.getStringTable())
accessibilityPosition = _accessibilityPosition;
else
accessibilityPosition = new Range(factory.getStringTable(), _accessibilityPosition);
}
@Override
public void setIsStatic(boolean _isStatic) {
isStatic = _isStatic;
}
@Override
public void setStaticPosition(Range _staticPosition) {
if (factory.getStringTable() == _staticPosition.getStringTable())
staticPosition = _staticPosition;
else
staticPosition = new Range(factory.getStringTable(), _staticPosition);
}
@Override
public void setIsFinal(boolean _isFinal) {
isFinal = _isFinal;
}
@Override
public void setFinalPosition(Range _finalPosition) {
if (factory.getStringTable() == _finalPosition.getStringTable())
finalPosition = _finalPosition;
else
finalPosition = new Range(factory.getStringTable(), _finalPosition);
}
@Override
public int getLloc() {
return lloc;
}
@Override
public Range getTypeNamePosition() {
return (Range)typeNamePosition;
}
@Override
public boolean getIsAbstract() {
return isAbstract;
}
@Override
public Range getAbstractPosition() {
return (Range)abstractPosition;
}
@Override
public boolean getIsStrictfp() {
return isStrictfp;
}
@Override
public Range getStrictfpPosition() {
return (Range)strictfpPosition;
}
@Override
public String getBinaryName() {
return factory.getStringTable().get(binaryName);
}
@Override
public int getBinaryNameKey() {
return binaryName;
}
@Override
public Range getExtendsPosition() {
return (Range)extendsPosition;
}
@Override
public Range getImplementsPosition() {
return (Range)implementsPosition;
}
@Override
public Range getBodyStartPosition() {
return (Range)bodyStartPosition;
}
@Override
public void setLloc(int _lloc) {
lloc = _lloc;
}
@Override
public void setTypeNamePosition(Range _typeNamePosition) {
if (factory.getStringTable() == _typeNamePosition.getStringTable())
typeNamePosition = _typeNamePosition;
else
typeNamePosition = new Range(factory.getStringTable(), _typeNamePosition);
}
@Override
public void setIsAbstract(boolean _isAbstract) {
isAbstract = _isAbstract;
}
@Override
public void setAbstractPosition(Range _abstractPosition) {
if (factory.getStringTable() == _abstractPosition.getStringTable())
abstractPosition = _abstractPosition;
else
abstractPosition = new Range(factory.getStringTable(), _abstractPosition);
}
@Override
public void setIsStrictfp(boolean _isStrictfp) {
isStrictfp = _isStrictfp;
}
@Override
public void setStrictfpPosition(Range _strictfpPosition) {
if (factory.getStringTable() == _strictfpPosition.getStringTable())
strictfpPosition = _strictfpPosition;
else
strictfpPosition = new Range(factory.getStringTable(), _strictfpPosition);
}
@Override
public void setBinaryName(String _binaryName) {
binaryName = factory.getStringTable().set(_binaryName);
}
@Override
public void setExtendsPosition(Range _extendsPosition) {
if (factory.getStringTable() == _extendsPosition.getStringTable())
extendsPosition = _extendsPosition;
else
extendsPosition = new Range(factory.getStringTable(), _extendsPosition);
}
@Override
public void setImplementsPosition(Range _implementsPosition) {
if (factory.getStringTable() == _implementsPosition.getStringTable())
implementsPosition = _implementsPosition;
else
implementsPosition = new Range(factory.getStringTable(), _implementsPosition);
}
@Override
public void setBodyStartPosition(Range _bodyStartPosition) {
if (factory.getStringTable() == _bodyStartPosition.getStringTable())
bodyStartPosition = _bodyStartPosition;
else
bodyStartPosition = new Range(factory.getStringTable(), _bodyStartPosition);
}
@Override
public Range getSemiPosition() {
return (Range)semiPosition;
}
@Override
public void setSemiPosition(Range _semiPosition) {
if (factory.getStringTable() == _semiPosition.getStringTable())
semiPosition = _semiPosition;
else
semiPosition = new Range(factory.getStringTable(), _semiPosition);
}
@Override
public EdgeIterator<Comment> getCommentsIterator() {
if (_comments == null)
return EdgeList.<Comment>emptyList().iterator();
else
return _comments.iterator();
}
@Override
public boolean getCommentsIsEmpty() {
if (_comments == null)
return true;
else
return _comments.isEmpty();
}
@Override
public int getCommentsSize() {
if (_comments == null)
return 0;
else
return _comments.size();
}
@Override
public void addComments(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkComment)) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void addComments(Comment _node) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_node);
}
@Override
public EdgeIterator<Annotation> getAnnotationsIterator() {
if (_hasAnnotations == null)
return EdgeList.<Annotation>emptyList().iterator();
else
return _hasAnnotations.iterator();
}
@Override
public boolean getAnnotationsIsEmpty() {
if (_hasAnnotations == null)
return true;
else
return _hasAnnotations.isEmpty();
}
@Override
public int getAnnotationsSize() {
if (_hasAnnotations == null)
return 0;
else
return _hasAnnotations.size();
}
@Override
public void addAnnotations(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkAnnotation)) {
if (_hasAnnotations == null)
_hasAnnotations = new EdgeList<Annotation>(factory);
_hasAnnotations.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addAnnotations(Annotation _node) {
if (_hasAnnotations == null)
_hasAnnotations = new EdgeList<Annotation>(factory);
_hasAnnotations.add(_node);
setParentEdge(_node);
}
@Override
public EdgeIterator<Member> getMembersIterator() {
if (_hasMembers == null)
return EdgeList.<Member>emptyList().iterator();
else
return _hasMembers.iterator();
}
@Override
public boolean getMembersIsEmpty() {
if (_hasMembers == null)
return true;
else
return _hasMembers.isEmpty();
}
@Override
public int getMembersSize() {
if (_hasMembers == null)
return 0;
else
return _hasMembers.size();
}
@Override
public void addMembers(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkMember)) {
if (_hasMembers == null)
_hasMembers = new EdgeList<Member>(factory);
_hasMembers.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addMembers(Member _node) {
if (_hasMembers == null)
_hasMembers = new EdgeList<Member>(factory);
_hasMembers.add(_node);
setParentEdge(_node);
}
@Override
public TypeExpression getSuperClass() {
if (_hasSuperClass == 0)
return null;
if (factory.getIsFiltered(_hasSuperClass))
return null;
return (TypeExpression)factory.getRef(_hasSuperClass);
}
@Override
public EdgeIterator<TypeExpression> getSuperInterfacesIterator() {
if (_hasSuperInterfaces == null)
return EdgeList.<TypeExpression>emptyList().iterator();
else
return _hasSuperInterfaces.iterator();
}
@Override
public boolean getSuperInterfacesIsEmpty() {
if (_hasSuperInterfaces == null)
return true;
else
return _hasSuperInterfaces.isEmpty();
}
@Override
public int getSuperInterfacesSize() {
if (_hasSuperInterfaces == null)
return 0;
else
return _hasSuperInterfaces.size();
}
@Override
public EdgeIterator<Positioned> getOthersIterator() {
if (_hasOthers == null)
return EdgeList.<Positioned>emptyList().iterator();
else
return _hasOthers.iterator();
}
@Override
public boolean getOthersIsEmpty() {
if (_hasOthers == null)
return true;
else
return _hasOthers.isEmpty();
}
@Override
public int getOthersSize() {
if (_hasOthers == null)
return 0;
else
return _hasOthers.size();
}
@Override
public CompilationUnit getIsInCompilationUnit() {
if (_isInCompilationUnit == 0)
return null;
if (factory.getIsFiltered(_isInCompilationUnit))
return null;
return (CompilationUnit)factory.getRef(_isInCompilationUnit);
}
@Override
public Module getIsInModule() {
if (_isInModule == 0)
return null;
if (factory.getIsFiltered(_isInModule))
return null;
return (Module)factory.getRef(_isInModule);
}
@Override
public void setSuperClass(int _id) {
if (_hasSuperClass != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasSuperClass" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkTypeExpression)) {
_hasSuperClass = _id;
setParentEdge(_hasSuperClass);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setSuperClass(TypeExpression _node) {
if (_hasSuperClass != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasSuperClass" ));
_hasSuperClass = _node.getId();
setParentEdge(_hasSuperClass);
}
@Override
public void addSuperInterfaces(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkTypeExpression)) {
if (_hasSuperInterfaces == null)
_hasSuperInterfaces = new EdgeList<TypeExpression>(factory);
_hasSuperInterfaces.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addSuperInterfaces(TypeExpression _node) {
if (_hasSuperInterfaces == null)
_hasSuperInterfaces = new EdgeList<TypeExpression>(factory);
_hasSuperInterfaces.add(_node);
setParentEdge(_node);
}
@Override
public void addOthers(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkPositioned)) {
if (_hasOthers == null)
_hasOthers = new EdgeList<Positioned>(factory);
_hasOthers.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addOthers(Positioned _node) {
if (_hasOthers == null)
_hasOthers = new EdgeList<Positioned>(factory);
_hasOthers.add(_node);
setParentEdge(_node);
}
@Override
public void setIsInCompilationUnit(int _id) {
if (_isInCompilationUnit != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","isInCompilationUnit" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (_node.getNodeKind() == NodeKind.ndkCompilationUnit) {
_isInCompilationUnit = _id;
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setIsInCompilationUnit(CompilationUnit _node) {
if (_isInCompilationUnit != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","isInCompilationUnit" ));
_isInCompilationUnit = _node.getId();
}
@Override
public void setIsInModule(int _id) {
if (_isInModule != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","isInModule" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (_node.getNodeKind() == NodeKind.ndkModule) {
_isInModule = _id;
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setIsInModule(Module _node) {
if (_isInModule != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","isInModule" ));
_isInModule = _node.getId();
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
if (_comments != null) {
EdgeIterator<Comment> it = getCommentsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
if (_hasAnnotations != null) {
EdgeIterator<Annotation> it = getAnnotationsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
io.writeInt4(((Range)position).getPathKey());
io.writeInt4(((Range)position).getLine());
io.writeInt4(((Range)position).getCol());
io.writeInt4(((Range)position).getEndLine());
io.writeInt4(((Range)position).getEndCol());
io.writeInt4(((Range)position).getWideLine());
io.writeInt4(((Range)position).getWideCol());
io.writeInt4(((Range)position).getWideEndLine());
io.writeInt4(((Range)position).getWideEndCol());
{
byte boolValues = 0;
boolValues <<= 1;
if (isCompilerGenerated)
boolValues |= 1;
boolValues <<= 1;
if (isToolGenerated)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeInt4(name);
io.writeInt4(((Range)namePosition).getPathKey());
io.writeInt4(((Range)namePosition).getLine());
io.writeInt4(((Range)namePosition).getCol());
io.writeInt4(((Range)namePosition).getEndLine());
io.writeInt4(((Range)namePosition).getEndCol());
io.writeInt4(((Range)namePosition).getWideLine());
io.writeInt4(((Range)namePosition).getWideCol());
io.writeInt4(((Range)namePosition).getWideEndLine());
io.writeInt4(((Range)namePosition).getWideEndCol());
{
byte boolValues = 0;
boolValues <<= 1;
if (isStatic)
boolValues |= 1;
boolValues <<= 1;
if (isFinal)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeUByte1(accessibility.ordinal());
io.writeInt4(((Range)accessibilityPosition).getPathKey());
io.writeInt4(((Range)accessibilityPosition).getLine());
io.writeInt4(((Range)accessibilityPosition).getCol());
io.writeInt4(((Range)accessibilityPosition).getEndLine());
io.writeInt4(((Range)accessibilityPosition).getEndCol());
io.writeInt4(((Range)accessibilityPosition).getWideLine());
io.writeInt4(((Range)accessibilityPosition).getWideCol());
io.writeInt4(((Range)accessibilityPosition).getWideEndLine());
io.writeInt4(((Range)accessibilityPosition).getWideEndCol());
io.writeInt4(((Range)staticPosition).getPathKey());
io.writeInt4(((Range)staticPosition).getLine());
io.writeInt4(((Range)staticPosition).getCol());
io.writeInt4(((Range)staticPosition).getEndLine());
io.writeInt4(((Range)staticPosition).getEndCol());
io.writeInt4(((Range)staticPosition).getWideLine());
io.writeInt4(((Range)staticPosition).getWideCol());
io.writeInt4(((Range)staticPosition).getWideEndLine());
io.writeInt4(((Range)staticPosition).getWideEndCol());
io.writeInt4(((Range)finalPosition).getPathKey());
io.writeInt4(((Range)finalPosition).getLine());
io.writeInt4(((Range)finalPosition).getCol());
io.writeInt4(((Range)finalPosition).getEndLine());
io.writeInt4(((Range)finalPosition).getEndCol());
io.writeInt4(((Range)finalPosition).getWideLine());
io.writeInt4(((Range)finalPosition).getWideCol());
io.writeInt4(((Range)finalPosition).getWideEndLine());
io.writeInt4(((Range)finalPosition).getWideEndCol());
if (_hasMembers != null) {
EdgeIterator<Member> it = getMembersIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
{
byte boolValues = 0;
boolValues <<= 1;
if (isAbstract)
boolValues |= 1;
boolValues <<= 1;
if (isStrictfp)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeInt4(lloc);
io.writeInt4(((Range)typeNamePosition).getPathKey());
io.writeInt4(((Range)typeNamePosition).getLine());
io.writeInt4(((Range)typeNamePosition).getCol());
io.writeInt4(((Range)typeNamePosition).getEndLine());
io.writeInt4(((Range)typeNamePosition).getEndCol());
io.writeInt4(((Range)typeNamePosition).getWideLine());
io.writeInt4(((Range)typeNamePosition).getWideCol());
io.writeInt4(((Range)typeNamePosition).getWideEndLine());
io.writeInt4(((Range)typeNamePosition).getWideEndCol());
io.writeInt4(((Range)abstractPosition).getPathKey());
io.writeInt4(((Range)abstractPosition).getLine());
io.writeInt4(((Range)abstractPosition).getCol());
io.writeInt4(((Range)abstractPosition).getEndLine());
io.writeInt4(((Range)abstractPosition).getEndCol());
io.writeInt4(((Range)abstractPosition).getWideLine());
io.writeInt4(((Range)abstractPosition).getWideCol());
io.writeInt4(((Range)abstractPosition).getWideEndLine());
io.writeInt4(((Range)abstractPosition).getWideEndCol());
io.writeInt4(((Range)strictfpPosition).getPathKey());
io.writeInt4(((Range)strictfpPosition).getLine());
io.writeInt4(((Range)strictfpPosition).getCol());
io.writeInt4(((Range)strictfpPosition).getEndLine());
io.writeInt4(((Range)strictfpPosition).getEndCol());
io.writeInt4(((Range)strictfpPosition).getWideLine());
io.writeInt4(((Range)strictfpPosition).getWideCol());
io.writeInt4(((Range)strictfpPosition).getWideEndLine());
io.writeInt4(((Range)strictfpPosition).getWideEndCol());
io.writeInt4(binaryName);
io.writeInt4(((Range)extendsPosition).getPathKey());
io.writeInt4(((Range)extendsPosition).getLine());
io.writeInt4(((Range)extendsPosition).getCol());
io.writeInt4(((Range)extendsPosition).getEndLine());
io.writeInt4(((Range)extendsPosition).getEndCol());
io.writeInt4(((Range)extendsPosition).getWideLine());
io.writeInt4(((Range)extendsPosition).getWideCol());
io.writeInt4(((Range)extendsPosition).getWideEndLine());
io.writeInt4(((Range)extendsPosition).getWideEndCol());
io.writeInt4(((Range)implementsPosition).getPathKey());
io.writeInt4(((Range)implementsPosition).getLine());
io.writeInt4(((Range)implementsPosition).getCol());
io.writeInt4(((Range)implementsPosition).getEndLine());
io.writeInt4(((Range)implementsPosition).getEndCol());
io.writeInt4(((Range)implementsPosition).getWideLine());
io.writeInt4(((Range)implementsPosition).getWideCol());
io.writeInt4(((Range)implementsPosition).getWideEndLine());
io.writeInt4(((Range)implementsPosition).getWideEndCol());
io.writeInt4(((Range)bodyStartPosition).getPathKey());
io.writeInt4(((Range)bodyStartPosition).getLine());
io.writeInt4(((Range)bodyStartPosition).getCol());
io.writeInt4(((Range)bodyStartPosition).getEndLine());
io.writeInt4(((Range)bodyStartPosition).getEndCol());
io.writeInt4(((Range)bodyStartPosition).getWideLine());
io.writeInt4(((Range)bodyStartPosition).getWideCol());
io.writeInt4(((Range)bodyStartPosition).getWideEndLine());
io.writeInt4(((Range)bodyStartPosition).getWideEndCol());
io.writeInt4(!factory.getIsFiltered(_hasSuperClass) ? _hasSuperClass : 0);
io.writeInt4(!factory.getIsFiltered(_isInCompilationUnit) ? _isInCompilationUnit : 0);
io.writeInt4(!factory.getIsFiltered(_isInModule) ? _isInModule : 0);
if (_hasSuperInterfaces != null) {
EdgeIterator<TypeExpression> it = getSuperInterfacesIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
if (_hasOthers != null) {
EdgeIterator<Positioned> it = getOthersIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
io.writeInt4(((Range)semiPosition).getPathKey());
io.writeInt4(((Range)semiPosition).getLine());
io.writeInt4(((Range)semiPosition).getCol());
io.writeInt4(((Range)semiPosition).getEndLine());
io.writeInt4(((Range)semiPosition).getEndCol());
io.writeInt4(((Range)semiPosition).getWideLine());
io.writeInt4(((Range)semiPosition).getWideCol());
io.writeInt4(((Range)semiPosition).getWideEndLine());
io.writeInt4(((Range)semiPosition).getWideEndCol());
}
// ---------- Load ----------
@Override
public void load(IO io) {
int _id;
_id = io.readInt4();
if (_id != 0) {
_comments = new EdgeList<Comment>(factory);
while (_id != 0) {
_comments.add(_id);
_id = io.readInt4();
}
}
_id = io.readInt4();
if (_id != 0) {
_hasAnnotations = new EdgeList<Annotation>(factory);
while (_id != 0) {
_hasAnnotations.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
((Range)position).setPathKey(io.readInt4());
((Range)position).setLine(io.readInt4());
((Range)position).setCol(io.readInt4());
((Range)position).setEndLine(io.readInt4());
((Range)position).setEndCol(io.readInt4());
((Range)position).setWideLine(io.readInt4());
((Range)position).setWideCol(io.readInt4());
((Range)position).setWideEndLine(io.readInt4());
((Range)position).setWideEndCol(io.readInt4());
{
byte boolValues = io.readByte1();
isToolGenerated = (boolValues & 1) != 0;
boolValues >>>= 1;
isCompilerGenerated = (boolValues & 1) != 0;
boolValues >>>= 1;
}
name = io.readInt4();
((Range)namePosition).setPathKey(io.readInt4());
((Range)namePosition).setLine(io.readInt4());
((Range)namePosition).setCol(io.readInt4());
((Range)namePosition).setEndLine(io.readInt4());
((Range)namePosition).setEndCol(io.readInt4());
((Range)namePosition).setWideLine(io.readInt4());
((Range)namePosition).setWideCol(io.readInt4());
((Range)namePosition).setWideEndLine(io.readInt4());
((Range)namePosition).setWideEndCol(io.readInt4());
{
byte boolValues = io.readByte1();
isFinal = (boolValues & 1) != 0;
boolValues >>>= 1;
isStatic = (boolValues & 1) != 0;
boolValues >>>= 1;
}
accessibility = AccessibilityKind.values()[io.readUByte1()];
((Range)accessibilityPosition).setPathKey(io.readInt4());
((Range)accessibilityPosition).setLine(io.readInt4());
((Range)accessibilityPosition).setCol(io.readInt4());
((Range)accessibilityPosition).setEndLine(io.readInt4());
((Range)accessibilityPosition).setEndCol(io.readInt4());
((Range)accessibilityPosition).setWideLine(io.readInt4());
((Range)accessibilityPosition).setWideCol(io.readInt4());
((Range)accessibilityPosition).setWideEndLine(io.readInt4());
((Range)accessibilityPosition).setWideEndCol(io.readInt4());
((Range)staticPosition).setPathKey(io.readInt4());
((Range)staticPosition).setLine(io.readInt4());
((Range)staticPosition).setCol(io.readInt4());
((Range)staticPosition).setEndLine(io.readInt4());
((Range)staticPosition).setEndCol(io.readInt4());
((Range)staticPosition).setWideLine(io.readInt4());
((Range)staticPosition).setWideCol(io.readInt4());
((Range)staticPosition).setWideEndLine(io.readInt4());
((Range)staticPosition).setWideEndCol(io.readInt4());
((Range)finalPosition).setPathKey(io.readInt4());
((Range)finalPosition).setLine(io.readInt4());
((Range)finalPosition).setCol(io.readInt4());
((Range)finalPosition).setEndLine(io.readInt4());
((Range)finalPosition).setEndCol(io.readInt4());
((Range)finalPosition).setWideLine(io.readInt4());
((Range)finalPosition).setWideCol(io.readInt4());
((Range)finalPosition).setWideEndLine(io.readInt4());
((Range)finalPosition).setWideEndCol(io.readInt4());
_id = io.readInt4();
if (_id != 0) {
_hasMembers = new EdgeList<Member>(factory);
while (_id != 0) {
_hasMembers.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
{
byte boolValues = io.readByte1();
isStrictfp = (boolValues & 1) != 0;
boolValues >>>= 1;
isAbstract = (boolValues & 1) != 0;
boolValues >>>= 1;
}
lloc = io.readInt4();
((Range)typeNamePosition).setPathKey(io.readInt4());
((Range)typeNamePosition).setLine(io.readInt4());
((Range)typeNamePosition).setCol(io.readInt4());
((Range)typeNamePosition).setEndLine(io.readInt4());
((Range)typeNamePosition).setEndCol(io.readInt4());
((Range)typeNamePosition).setWideLine(io.readInt4());
((Range)typeNamePosition).setWideCol(io.readInt4());
((Range)typeNamePosition).setWideEndLine(io.readInt4());
((Range)typeNamePosition).setWideEndCol(io.readInt4());
((Range)abstractPosition).setPathKey(io.readInt4());
((Range)abstractPosition).setLine(io.readInt4());
((Range)abstractPosition).setCol(io.readInt4());
((Range)abstractPosition).setEndLine(io.readInt4());
((Range)abstractPosition).setEndCol(io.readInt4());
((Range)abstractPosition).setWideLine(io.readInt4());
((Range)abstractPosition).setWideCol(io.readInt4());
((Range)abstractPosition).setWideEndLine(io.readInt4());
((Range)abstractPosition).setWideEndCol(io.readInt4());
((Range)strictfpPosition).setPathKey(io.readInt4());
((Range)strictfpPosition).setLine(io.readInt4());
((Range)strictfpPosition).setCol(io.readInt4());
((Range)strictfpPosition).setEndLine(io.readInt4());
((Range)strictfpPosition).setEndCol(io.readInt4());
((Range)strictfpPosition).setWideLine(io.readInt4());
((Range)strictfpPosition).setWideCol(io.readInt4());
((Range)strictfpPosition).setWideEndLine(io.readInt4());
((Range)strictfpPosition).setWideEndCol(io.readInt4());
binaryName = io.readInt4();
((Range)extendsPosition).setPathKey(io.readInt4());
((Range)extendsPosition).setLine(io.readInt4());
((Range)extendsPosition).setCol(io.readInt4());
((Range)extendsPosition).setEndLine(io.readInt4());
((Range)extendsPosition).setEndCol(io.readInt4());
((Range)extendsPosition).setWideLine(io.readInt4());
((Range)extendsPosition).setWideCol(io.readInt4());
((Range)extendsPosition).setWideEndLine(io.readInt4());
((Range)extendsPosition).setWideEndCol(io.readInt4());
((Range)implementsPosition).setPathKey(io.readInt4());
((Range)implementsPosition).setLine(io.readInt4());
((Range)implementsPosition).setCol(io.readInt4());
((Range)implementsPosition).setEndLine(io.readInt4());
((Range)implementsPosition).setEndCol(io.readInt4());
((Range)implementsPosition).setWideLine(io.readInt4());
((Range)implementsPosition).setWideCol(io.readInt4());
((Range)implementsPosition).setWideEndLine(io.readInt4());
((Range)implementsPosition).setWideEndCol(io.readInt4());
((Range)bodyStartPosition).setPathKey(io.readInt4());
((Range)bodyStartPosition).setLine(io.readInt4());
((Range)bodyStartPosition).setCol(io.readInt4());
((Range)bodyStartPosition).setEndLine(io.readInt4());
((Range)bodyStartPosition).setEndCol(io.readInt4());
((Range)bodyStartPosition).setWideLine(io.readInt4());
((Range)bodyStartPosition).setWideCol(io.readInt4());
((Range)bodyStartPosition).setWideEndLine(io.readInt4());
((Range)bodyStartPosition).setWideEndCol(io.readInt4());
_hasSuperClass = io.readInt4();
if (_hasSuperClass != 0)
setParentEdge(_hasSuperClass);
_isInCompilationUnit = io.readInt4();
_isInModule = io.readInt4();
_id = io.readInt4();
if (_id != 0) {
_hasSuperInterfaces = new EdgeList<TypeExpression>(factory);
while (_id != 0) {
_hasSuperInterfaces.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
_id = io.readInt4();
if (_id != 0) {
_hasOthers = new EdgeList<Positioned>(factory);
while (_id != 0) {
_hasOthers.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
((Range)semiPosition).setPathKey(io.readInt4());
((Range)semiPosition).setLine(io.readInt4());
((Range)semiPosition).setCol(io.readInt4());
((Range)semiPosition).setEndLine(io.readInt4());
((Range)semiPosition).setEndCol(io.readInt4());
((Range)semiPosition).setWideLine(io.readInt4());
((Range)semiPosition).setWideCol(io.readInt4());
((Range)semiPosition).setWideEndLine(io.readInt4());
((Range)semiPosition).setWideEndCol(io.readInt4());
}
}
| 34,381 | 28.793761 | 126 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/MethodImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.base.Base;
import columbus.java.asg.statm.Block;
import columbus.java.asg.expr.TypeExpression;
import columbus.java.asg.type.MethodType;
import columbus.java.asg.base.Comment;
import columbus.java.asg.expr.Annotation;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.struc.Method Method} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class MethodImpl extends BaseImpl implements Method {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(MethodImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
protected EdgeList<Comment> _comments;
protected EdgeList<Annotation> _hasAnnotations;
protected Object position;
protected boolean isCompilerGenerated;
protected boolean isToolGenerated;
protected int name;
protected Object namePosition;
protected AccessibilityKind accessibility = AccessibilityKind.ackNone;
protected Object accessibilityPosition;
protected boolean isStatic;
protected Object staticPosition;
protected boolean isFinal;
protected Object finalPosition;
protected int lloc;
protected boolean isAbstract;
protected Object abstractPosition;
protected boolean isStrictfp;
protected Object strictfpPosition;
protected Object parametersStartPosition;
protected Object parametersEndPosition;
protected int _hasReturnType;
protected int _methodType;
protected EdgeList<MethodDeclaration> _overrides;
protected MethodKind methodKind = MethodKind.mekNormal;
protected boolean isSynchronized;
protected Object synchronizedPosition;
protected boolean isNative;
protected Object nativePosition;
protected Object throwsPosition;
protected boolean isDefault;
protected EdgeList<Parameter> _hasParameters;
protected int _hasBody;
protected EdgeList<TypeExpression> _hasThrownExceptions;
public MethodImpl(int id, Factory factory) {
super(id, factory);
position = new Range(factory.getStringTable());
namePosition = new Range(factory.getStringTable());
accessibilityPosition = new Range(factory.getStringTable());
staticPosition = new Range(factory.getStringTable());
finalPosition = new Range(factory.getStringTable());
abstractPosition = new Range(factory.getStringTable());
strictfpPosition = new Range(factory.getStringTable());
parametersStartPosition = new Range(factory.getStringTable());
parametersEndPosition = new Range(factory.getStringTable());
synchronizedPosition = new Range(factory.getStringTable());
nativePosition = new Range(factory.getStringTable());
throwsPosition = new Range(factory.getStringTable());
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkMethod;
}
@Override
public Range getPosition() {
return (Range)position;
}
@Override
public void setPosition(Range _position) {
if (factory.getStringTable() == _position.getStringTable())
position = _position;
else
position = new Range(factory.getStringTable(), _position);
}
@Override
public boolean getIsCompilerGenerated() {
return isCompilerGenerated;
}
@Override
public boolean getIsToolGenerated() {
return isToolGenerated;
}
@Override
public void setIsCompilerGenerated(boolean _isCompilerGenerated) {
isCompilerGenerated = _isCompilerGenerated;
}
@Override
public void setIsToolGenerated(boolean _isToolGenerated) {
isToolGenerated = _isToolGenerated;
}
@Override
public String getName() {
return factory.getStringTable().get(name);
}
@Override
public int getNameKey() {
return name;
}
@Override
public Range getNamePosition() {
return (Range)namePosition;
}
@Override
public void setName(String _name) {
name = factory.getStringTable().set(_name);
}
@Override
public void setNamePosition(Range _namePosition) {
if (factory.getStringTable() == _namePosition.getStringTable())
namePosition = _namePosition;
else
namePosition = new Range(factory.getStringTable(), _namePosition);
}
@Override
public AccessibilityKind getAccessibility() {
return accessibility;
}
@Override
public Range getAccessibilityPosition() {
return (Range)accessibilityPosition;
}
@Override
public boolean getIsStatic() {
return isStatic;
}
@Override
public Range getStaticPosition() {
return (Range)staticPosition;
}
@Override
public boolean getIsFinal() {
return isFinal;
}
@Override
public Range getFinalPosition() {
return (Range)finalPosition;
}
@Override
public void setAccessibility(AccessibilityKind _accessibility) {
accessibility = _accessibility;
}
@Override
public void setAccessibilityPosition(Range _accessibilityPosition) {
if (factory.getStringTable() == _accessibilityPosition.getStringTable())
accessibilityPosition = _accessibilityPosition;
else
accessibilityPosition = new Range(factory.getStringTable(), _accessibilityPosition);
}
@Override
public void setIsStatic(boolean _isStatic) {
isStatic = _isStatic;
}
@Override
public void setStaticPosition(Range _staticPosition) {
if (factory.getStringTable() == _staticPosition.getStringTable())
staticPosition = _staticPosition;
else
staticPosition = new Range(factory.getStringTable(), _staticPosition);
}
@Override
public void setIsFinal(boolean _isFinal) {
isFinal = _isFinal;
}
@Override
public void setFinalPosition(Range _finalPosition) {
if (factory.getStringTable() == _finalPosition.getStringTable())
finalPosition = _finalPosition;
else
finalPosition = new Range(factory.getStringTable(), _finalPosition);
}
@Override
public int getLloc() {
return lloc;
}
@Override
public boolean getIsAbstract() {
return isAbstract;
}
@Override
public Range getAbstractPosition() {
return (Range)abstractPosition;
}
@Override
public boolean getIsStrictfp() {
return isStrictfp;
}
@Override
public Range getStrictfpPosition() {
return (Range)strictfpPosition;
}
@Override
public Range getParametersStartPosition() {
return (Range)parametersStartPosition;
}
@Override
public Range getParametersEndPosition() {
return (Range)parametersEndPosition;
}
@Override
public void setLloc(int _lloc) {
lloc = _lloc;
}
@Override
public void setIsAbstract(boolean _isAbstract) {
isAbstract = _isAbstract;
}
@Override
public void setAbstractPosition(Range _abstractPosition) {
if (factory.getStringTable() == _abstractPosition.getStringTable())
abstractPosition = _abstractPosition;
else
abstractPosition = new Range(factory.getStringTable(), _abstractPosition);
}
@Override
public void setIsStrictfp(boolean _isStrictfp) {
isStrictfp = _isStrictfp;
}
@Override
public void setStrictfpPosition(Range _strictfpPosition) {
if (factory.getStringTable() == _strictfpPosition.getStringTable())
strictfpPosition = _strictfpPosition;
else
strictfpPosition = new Range(factory.getStringTable(), _strictfpPosition);
}
@Override
public void setParametersStartPosition(Range _parametersStartPosition) {
if (factory.getStringTable() == _parametersStartPosition.getStringTable())
parametersStartPosition = _parametersStartPosition;
else
parametersStartPosition = new Range(factory.getStringTable(), _parametersStartPosition);
}
@Override
public void setParametersEndPosition(Range _parametersEndPosition) {
if (factory.getStringTable() == _parametersEndPosition.getStringTable())
parametersEndPosition = _parametersEndPosition;
else
parametersEndPosition = new Range(factory.getStringTable(), _parametersEndPosition);
}
@Override
public MethodKind getMethodKind() {
return methodKind;
}
@Override
public boolean getIsSynchronized() {
return isSynchronized;
}
@Override
public Range getSynchronizedPosition() {
return (Range)synchronizedPosition;
}
@Override
public boolean getIsNative() {
return isNative;
}
@Override
public Range getNativePosition() {
return (Range)nativePosition;
}
@Override
public Range getThrowsPosition() {
return (Range)throwsPosition;
}
@Override
public boolean getIsDefault() {
return isDefault;
}
@Override
public void setMethodKind(MethodKind _methodKind) {
methodKind = _methodKind;
}
@Override
public void setIsSynchronized(boolean _isSynchronized) {
isSynchronized = _isSynchronized;
}
@Override
public void setSynchronizedPosition(Range _synchronizedPosition) {
if (factory.getStringTable() == _synchronizedPosition.getStringTable())
synchronizedPosition = _synchronizedPosition;
else
synchronizedPosition = new Range(factory.getStringTable(), _synchronizedPosition);
}
@Override
public void setIsNative(boolean _isNative) {
isNative = _isNative;
}
@Override
public void setNativePosition(Range _nativePosition) {
if (factory.getStringTable() == _nativePosition.getStringTable())
nativePosition = _nativePosition;
else
nativePosition = new Range(factory.getStringTable(), _nativePosition);
}
@Override
public void setThrowsPosition(Range _throwsPosition) {
if (factory.getStringTable() == _throwsPosition.getStringTable())
throwsPosition = _throwsPosition;
else
throwsPosition = new Range(factory.getStringTable(), _throwsPosition);
}
@Override
public void setIsDefault(boolean _isDefault) {
isDefault = _isDefault;
}
@Override
public EdgeIterator<Comment> getCommentsIterator() {
if (_comments == null)
return EdgeList.<Comment>emptyList().iterator();
else
return _comments.iterator();
}
@Override
public boolean getCommentsIsEmpty() {
if (_comments == null)
return true;
else
return _comments.isEmpty();
}
@Override
public int getCommentsSize() {
if (_comments == null)
return 0;
else
return _comments.size();
}
@Override
public void addComments(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkComment)) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void addComments(Comment _node) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_node);
}
@Override
public EdgeIterator<Annotation> getAnnotationsIterator() {
if (_hasAnnotations == null)
return EdgeList.<Annotation>emptyList().iterator();
else
return _hasAnnotations.iterator();
}
@Override
public boolean getAnnotationsIsEmpty() {
if (_hasAnnotations == null)
return true;
else
return _hasAnnotations.isEmpty();
}
@Override
public int getAnnotationsSize() {
if (_hasAnnotations == null)
return 0;
else
return _hasAnnotations.size();
}
@Override
public void addAnnotations(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkAnnotation)) {
if (_hasAnnotations == null)
_hasAnnotations = new EdgeList<Annotation>(factory);
_hasAnnotations.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addAnnotations(Annotation _node) {
if (_hasAnnotations == null)
_hasAnnotations = new EdgeList<Annotation>(factory);
_hasAnnotations.add(_node);
setParentEdge(_node);
}
@Override
public TypeExpression getReturnType() {
if (_hasReturnType == 0)
return null;
if (factory.getIsFiltered(_hasReturnType))
return null;
return (TypeExpression)factory.getRef(_hasReturnType);
}
@Override
public MethodType getMethodType() {
if (_methodType == 0)
return null;
if (factory.getIsFiltered(_methodType))
return null;
return (MethodType)factory.getRef(_methodType);
}
@Override
public EdgeIterator<MethodDeclaration> getOverridesIterator() {
if (_overrides == null)
return EdgeList.<MethodDeclaration>emptyList().iterator();
else
return _overrides.iterator();
}
@Override
public boolean getOverridesIsEmpty() {
if (_overrides == null)
return true;
else
return _overrides.isEmpty();
}
@Override
public int getOverridesSize() {
if (_overrides == null)
return 0;
else
return _overrides.size();
}
@Override
public void setReturnType(int _id) {
if (_hasReturnType != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasReturnType" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkTypeExpression)) {
_hasReturnType = _id;
setParentEdge(_hasReturnType);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setReturnType(TypeExpression _node) {
if (_hasReturnType != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasReturnType" ));
_hasReturnType = _node.getId();
setParentEdge(_hasReturnType);
}
@Override
public void setMethodType(int _id) {
if (_methodType != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","methodType" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (_node.getNodeKind() == NodeKind.ndkMethodType) {
_methodType = _id;
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setMethodType(MethodType _node) {
if (_methodType != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","methodType" ));
_methodType = _node.getId();
}
@Override
public void addOverrides(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkMethodDeclaration)) {
if (_overrides == null)
_overrides = new EdgeList<MethodDeclaration>(factory);
_overrides.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void addOverrides(MethodDeclaration _node) {
if (_overrides == null)
_overrides = new EdgeList<MethodDeclaration>(factory);
_overrides.add(_node);
}
@Override
public EdgeIterator<Parameter> getParametersIterator() {
if (_hasParameters == null)
return EdgeList.<Parameter>emptyList().iterator();
else
return _hasParameters.iterator();
}
@Override
public boolean getParametersIsEmpty() {
if (_hasParameters == null)
return true;
else
return _hasParameters.isEmpty();
}
@Override
public int getParametersSize() {
if (_hasParameters == null)
return 0;
else
return _hasParameters.size();
}
@Override
public Block getBody() {
if (_hasBody == 0)
return null;
if (factory.getIsFiltered(_hasBody))
return null;
return (Block)factory.getRef(_hasBody);
}
@Override
public EdgeIterator<TypeExpression> getThrownExceptionsIterator() {
if (_hasThrownExceptions == null)
return EdgeList.<TypeExpression>emptyList().iterator();
else
return _hasThrownExceptions.iterator();
}
@Override
public boolean getThrownExceptionsIsEmpty() {
if (_hasThrownExceptions == null)
return true;
else
return _hasThrownExceptions.isEmpty();
}
@Override
public int getThrownExceptionsSize() {
if (_hasThrownExceptions == null)
return 0;
else
return _hasThrownExceptions.size();
}
@Override
public void addParameters(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (_node.getNodeKind() == NodeKind.ndkParameter) {
if (_hasParameters == null)
_hasParameters = new EdgeList<Parameter>(factory);
_hasParameters.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addParameters(Parameter _node) {
if (_hasParameters == null)
_hasParameters = new EdgeList<Parameter>(factory);
_hasParameters.add(_node);
setParentEdge(_node);
}
@Override
public void setBody(int _id) {
if (_hasBody != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasBody" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (_node.getNodeKind() == NodeKind.ndkBlock) {
_hasBody = _id;
setParentEdge(_hasBody);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setBody(Block _node) {
if (_hasBody != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasBody" ));
_hasBody = _node.getId();
setParentEdge(_hasBody);
}
@Override
public void addThrownExceptions(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkTypeExpression)) {
if (_hasThrownExceptions == null)
_hasThrownExceptions = new EdgeList<TypeExpression>(factory);
_hasThrownExceptions.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addThrownExceptions(TypeExpression _node) {
if (_hasThrownExceptions == null)
_hasThrownExceptions = new EdgeList<TypeExpression>(factory);
_hasThrownExceptions.add(_node);
setParentEdge(_node);
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
if (_comments != null) {
EdgeIterator<Comment> it = getCommentsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
if (_hasAnnotations != null) {
EdgeIterator<Annotation> it = getAnnotationsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
io.writeInt4(((Range)position).getPathKey());
io.writeInt4(((Range)position).getLine());
io.writeInt4(((Range)position).getCol());
io.writeInt4(((Range)position).getEndLine());
io.writeInt4(((Range)position).getEndCol());
io.writeInt4(((Range)position).getWideLine());
io.writeInt4(((Range)position).getWideCol());
io.writeInt4(((Range)position).getWideEndLine());
io.writeInt4(((Range)position).getWideEndCol());
{
byte boolValues = 0;
boolValues <<= 1;
if (isCompilerGenerated)
boolValues |= 1;
boolValues <<= 1;
if (isToolGenerated)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeInt4(name);
io.writeInt4(((Range)namePosition).getPathKey());
io.writeInt4(((Range)namePosition).getLine());
io.writeInt4(((Range)namePosition).getCol());
io.writeInt4(((Range)namePosition).getEndLine());
io.writeInt4(((Range)namePosition).getEndCol());
io.writeInt4(((Range)namePosition).getWideLine());
io.writeInt4(((Range)namePosition).getWideCol());
io.writeInt4(((Range)namePosition).getWideEndLine());
io.writeInt4(((Range)namePosition).getWideEndCol());
{
byte boolValues = 0;
boolValues <<= 1;
if (isStatic)
boolValues |= 1;
boolValues <<= 1;
if (isFinal)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeUByte1(accessibility.ordinal());
io.writeInt4(((Range)accessibilityPosition).getPathKey());
io.writeInt4(((Range)accessibilityPosition).getLine());
io.writeInt4(((Range)accessibilityPosition).getCol());
io.writeInt4(((Range)accessibilityPosition).getEndLine());
io.writeInt4(((Range)accessibilityPosition).getEndCol());
io.writeInt4(((Range)accessibilityPosition).getWideLine());
io.writeInt4(((Range)accessibilityPosition).getWideCol());
io.writeInt4(((Range)accessibilityPosition).getWideEndLine());
io.writeInt4(((Range)accessibilityPosition).getWideEndCol());
io.writeInt4(((Range)staticPosition).getPathKey());
io.writeInt4(((Range)staticPosition).getLine());
io.writeInt4(((Range)staticPosition).getCol());
io.writeInt4(((Range)staticPosition).getEndLine());
io.writeInt4(((Range)staticPosition).getEndCol());
io.writeInt4(((Range)staticPosition).getWideLine());
io.writeInt4(((Range)staticPosition).getWideCol());
io.writeInt4(((Range)staticPosition).getWideEndLine());
io.writeInt4(((Range)staticPosition).getWideEndCol());
io.writeInt4(((Range)finalPosition).getPathKey());
io.writeInt4(((Range)finalPosition).getLine());
io.writeInt4(((Range)finalPosition).getCol());
io.writeInt4(((Range)finalPosition).getEndLine());
io.writeInt4(((Range)finalPosition).getEndCol());
io.writeInt4(((Range)finalPosition).getWideLine());
io.writeInt4(((Range)finalPosition).getWideCol());
io.writeInt4(((Range)finalPosition).getWideEndLine());
io.writeInt4(((Range)finalPosition).getWideEndCol());
{
byte boolValues = 0;
boolValues <<= 1;
if (isAbstract)
boolValues |= 1;
boolValues <<= 1;
if (isStrictfp)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeInt4(lloc);
io.writeInt4(((Range)abstractPosition).getPathKey());
io.writeInt4(((Range)abstractPosition).getLine());
io.writeInt4(((Range)abstractPosition).getCol());
io.writeInt4(((Range)abstractPosition).getEndLine());
io.writeInt4(((Range)abstractPosition).getEndCol());
io.writeInt4(((Range)abstractPosition).getWideLine());
io.writeInt4(((Range)abstractPosition).getWideCol());
io.writeInt4(((Range)abstractPosition).getWideEndLine());
io.writeInt4(((Range)abstractPosition).getWideEndCol());
io.writeInt4(((Range)strictfpPosition).getPathKey());
io.writeInt4(((Range)strictfpPosition).getLine());
io.writeInt4(((Range)strictfpPosition).getCol());
io.writeInt4(((Range)strictfpPosition).getEndLine());
io.writeInt4(((Range)strictfpPosition).getEndCol());
io.writeInt4(((Range)strictfpPosition).getWideLine());
io.writeInt4(((Range)strictfpPosition).getWideCol());
io.writeInt4(((Range)strictfpPosition).getWideEndLine());
io.writeInt4(((Range)strictfpPosition).getWideEndCol());
io.writeInt4(((Range)parametersStartPosition).getPathKey());
io.writeInt4(((Range)parametersStartPosition).getLine());
io.writeInt4(((Range)parametersStartPosition).getCol());
io.writeInt4(((Range)parametersStartPosition).getEndLine());
io.writeInt4(((Range)parametersStartPosition).getEndCol());
io.writeInt4(((Range)parametersStartPosition).getWideLine());
io.writeInt4(((Range)parametersStartPosition).getWideCol());
io.writeInt4(((Range)parametersStartPosition).getWideEndLine());
io.writeInt4(((Range)parametersStartPosition).getWideEndCol());
io.writeInt4(((Range)parametersEndPosition).getPathKey());
io.writeInt4(((Range)parametersEndPosition).getLine());
io.writeInt4(((Range)parametersEndPosition).getCol());
io.writeInt4(((Range)parametersEndPosition).getEndLine());
io.writeInt4(((Range)parametersEndPosition).getEndCol());
io.writeInt4(((Range)parametersEndPosition).getWideLine());
io.writeInt4(((Range)parametersEndPosition).getWideCol());
io.writeInt4(((Range)parametersEndPosition).getWideEndLine());
io.writeInt4(((Range)parametersEndPosition).getWideEndCol());
io.writeInt4(!factory.getIsFiltered(_hasReturnType) ? _hasReturnType : 0);
io.writeInt4(!factory.getIsFiltered(_methodType) ? _methodType : 0);
if (_overrides != null) {
EdgeIterator<MethodDeclaration> it = getOverridesIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
{
byte boolValues = 0;
boolValues <<= 1;
if (isSynchronized)
boolValues |= 1;
boolValues <<= 1;
if (isNative)
boolValues |= 1;
boolValues <<= 1;
if (isDefault)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeUByte1(methodKind.ordinal());
io.writeInt4(((Range)synchronizedPosition).getPathKey());
io.writeInt4(((Range)synchronizedPosition).getLine());
io.writeInt4(((Range)synchronizedPosition).getCol());
io.writeInt4(((Range)synchronizedPosition).getEndLine());
io.writeInt4(((Range)synchronizedPosition).getEndCol());
io.writeInt4(((Range)synchronizedPosition).getWideLine());
io.writeInt4(((Range)synchronizedPosition).getWideCol());
io.writeInt4(((Range)synchronizedPosition).getWideEndLine());
io.writeInt4(((Range)synchronizedPosition).getWideEndCol());
io.writeInt4(((Range)nativePosition).getPathKey());
io.writeInt4(((Range)nativePosition).getLine());
io.writeInt4(((Range)nativePosition).getCol());
io.writeInt4(((Range)nativePosition).getEndLine());
io.writeInt4(((Range)nativePosition).getEndCol());
io.writeInt4(((Range)nativePosition).getWideLine());
io.writeInt4(((Range)nativePosition).getWideCol());
io.writeInt4(((Range)nativePosition).getWideEndLine());
io.writeInt4(((Range)nativePosition).getWideEndCol());
io.writeInt4(((Range)throwsPosition).getPathKey());
io.writeInt4(((Range)throwsPosition).getLine());
io.writeInt4(((Range)throwsPosition).getCol());
io.writeInt4(((Range)throwsPosition).getEndLine());
io.writeInt4(((Range)throwsPosition).getEndCol());
io.writeInt4(((Range)throwsPosition).getWideLine());
io.writeInt4(((Range)throwsPosition).getWideCol());
io.writeInt4(((Range)throwsPosition).getWideEndLine());
io.writeInt4(((Range)throwsPosition).getWideEndCol());
io.writeInt4(!factory.getIsFiltered(_hasBody) ? _hasBody : 0);
if (_hasParameters != null) {
EdgeIterator<Parameter> it = getParametersIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
if (_hasThrownExceptions != null) {
EdgeIterator<TypeExpression> it = getThrownExceptionsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
}
// ---------- Load ----------
@Override
public void load(IO io) {
int _id;
_id = io.readInt4();
if (_id != 0) {
_comments = new EdgeList<Comment>(factory);
while (_id != 0) {
_comments.add(_id);
_id = io.readInt4();
}
}
_id = io.readInt4();
if (_id != 0) {
_hasAnnotations = new EdgeList<Annotation>(factory);
while (_id != 0) {
_hasAnnotations.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
((Range)position).setPathKey(io.readInt4());
((Range)position).setLine(io.readInt4());
((Range)position).setCol(io.readInt4());
((Range)position).setEndLine(io.readInt4());
((Range)position).setEndCol(io.readInt4());
((Range)position).setWideLine(io.readInt4());
((Range)position).setWideCol(io.readInt4());
((Range)position).setWideEndLine(io.readInt4());
((Range)position).setWideEndCol(io.readInt4());
{
byte boolValues = io.readByte1();
isToolGenerated = (boolValues & 1) != 0;
boolValues >>>= 1;
isCompilerGenerated = (boolValues & 1) != 0;
boolValues >>>= 1;
}
name = io.readInt4();
((Range)namePosition).setPathKey(io.readInt4());
((Range)namePosition).setLine(io.readInt4());
((Range)namePosition).setCol(io.readInt4());
((Range)namePosition).setEndLine(io.readInt4());
((Range)namePosition).setEndCol(io.readInt4());
((Range)namePosition).setWideLine(io.readInt4());
((Range)namePosition).setWideCol(io.readInt4());
((Range)namePosition).setWideEndLine(io.readInt4());
((Range)namePosition).setWideEndCol(io.readInt4());
{
byte boolValues = io.readByte1();
isFinal = (boolValues & 1) != 0;
boolValues >>>= 1;
isStatic = (boolValues & 1) != 0;
boolValues >>>= 1;
}
accessibility = AccessibilityKind.values()[io.readUByte1()];
((Range)accessibilityPosition).setPathKey(io.readInt4());
((Range)accessibilityPosition).setLine(io.readInt4());
((Range)accessibilityPosition).setCol(io.readInt4());
((Range)accessibilityPosition).setEndLine(io.readInt4());
((Range)accessibilityPosition).setEndCol(io.readInt4());
((Range)accessibilityPosition).setWideLine(io.readInt4());
((Range)accessibilityPosition).setWideCol(io.readInt4());
((Range)accessibilityPosition).setWideEndLine(io.readInt4());
((Range)accessibilityPosition).setWideEndCol(io.readInt4());
((Range)staticPosition).setPathKey(io.readInt4());
((Range)staticPosition).setLine(io.readInt4());
((Range)staticPosition).setCol(io.readInt4());
((Range)staticPosition).setEndLine(io.readInt4());
((Range)staticPosition).setEndCol(io.readInt4());
((Range)staticPosition).setWideLine(io.readInt4());
((Range)staticPosition).setWideCol(io.readInt4());
((Range)staticPosition).setWideEndLine(io.readInt4());
((Range)staticPosition).setWideEndCol(io.readInt4());
((Range)finalPosition).setPathKey(io.readInt4());
((Range)finalPosition).setLine(io.readInt4());
((Range)finalPosition).setCol(io.readInt4());
((Range)finalPosition).setEndLine(io.readInt4());
((Range)finalPosition).setEndCol(io.readInt4());
((Range)finalPosition).setWideLine(io.readInt4());
((Range)finalPosition).setWideCol(io.readInt4());
((Range)finalPosition).setWideEndLine(io.readInt4());
((Range)finalPosition).setWideEndCol(io.readInt4());
{
byte boolValues = io.readByte1();
isStrictfp = (boolValues & 1) != 0;
boolValues >>>= 1;
isAbstract = (boolValues & 1) != 0;
boolValues >>>= 1;
}
lloc = io.readInt4();
((Range)abstractPosition).setPathKey(io.readInt4());
((Range)abstractPosition).setLine(io.readInt4());
((Range)abstractPosition).setCol(io.readInt4());
((Range)abstractPosition).setEndLine(io.readInt4());
((Range)abstractPosition).setEndCol(io.readInt4());
((Range)abstractPosition).setWideLine(io.readInt4());
((Range)abstractPosition).setWideCol(io.readInt4());
((Range)abstractPosition).setWideEndLine(io.readInt4());
((Range)abstractPosition).setWideEndCol(io.readInt4());
((Range)strictfpPosition).setPathKey(io.readInt4());
((Range)strictfpPosition).setLine(io.readInt4());
((Range)strictfpPosition).setCol(io.readInt4());
((Range)strictfpPosition).setEndLine(io.readInt4());
((Range)strictfpPosition).setEndCol(io.readInt4());
((Range)strictfpPosition).setWideLine(io.readInt4());
((Range)strictfpPosition).setWideCol(io.readInt4());
((Range)strictfpPosition).setWideEndLine(io.readInt4());
((Range)strictfpPosition).setWideEndCol(io.readInt4());
((Range)parametersStartPosition).setPathKey(io.readInt4());
((Range)parametersStartPosition).setLine(io.readInt4());
((Range)parametersStartPosition).setCol(io.readInt4());
((Range)parametersStartPosition).setEndLine(io.readInt4());
((Range)parametersStartPosition).setEndCol(io.readInt4());
((Range)parametersStartPosition).setWideLine(io.readInt4());
((Range)parametersStartPosition).setWideCol(io.readInt4());
((Range)parametersStartPosition).setWideEndLine(io.readInt4());
((Range)parametersStartPosition).setWideEndCol(io.readInt4());
((Range)parametersEndPosition).setPathKey(io.readInt4());
((Range)parametersEndPosition).setLine(io.readInt4());
((Range)parametersEndPosition).setCol(io.readInt4());
((Range)parametersEndPosition).setEndLine(io.readInt4());
((Range)parametersEndPosition).setEndCol(io.readInt4());
((Range)parametersEndPosition).setWideLine(io.readInt4());
((Range)parametersEndPosition).setWideCol(io.readInt4());
((Range)parametersEndPosition).setWideEndLine(io.readInt4());
((Range)parametersEndPosition).setWideEndCol(io.readInt4());
_hasReturnType = io.readInt4();
if (_hasReturnType != 0)
setParentEdge(_hasReturnType);
_methodType = io.readInt4();
_id = io.readInt4();
if (_id != 0) {
_overrides = new EdgeList<MethodDeclaration>(factory);
while (_id != 0) {
_overrides.add(_id);
_id = io.readInt4();
}
}
{
byte boolValues = io.readByte1();
isDefault = (boolValues & 1) != 0;
boolValues >>>= 1;
isNative = (boolValues & 1) != 0;
boolValues >>>= 1;
isSynchronized = (boolValues & 1) != 0;
boolValues >>>= 1;
}
methodKind = MethodKind.values()[io.readUByte1()];
((Range)synchronizedPosition).setPathKey(io.readInt4());
((Range)synchronizedPosition).setLine(io.readInt4());
((Range)synchronizedPosition).setCol(io.readInt4());
((Range)synchronizedPosition).setEndLine(io.readInt4());
((Range)synchronizedPosition).setEndCol(io.readInt4());
((Range)synchronizedPosition).setWideLine(io.readInt4());
((Range)synchronizedPosition).setWideCol(io.readInt4());
((Range)synchronizedPosition).setWideEndLine(io.readInt4());
((Range)synchronizedPosition).setWideEndCol(io.readInt4());
((Range)nativePosition).setPathKey(io.readInt4());
((Range)nativePosition).setLine(io.readInt4());
((Range)nativePosition).setCol(io.readInt4());
((Range)nativePosition).setEndLine(io.readInt4());
((Range)nativePosition).setEndCol(io.readInt4());
((Range)nativePosition).setWideLine(io.readInt4());
((Range)nativePosition).setWideCol(io.readInt4());
((Range)nativePosition).setWideEndLine(io.readInt4());
((Range)nativePosition).setWideEndCol(io.readInt4());
((Range)throwsPosition).setPathKey(io.readInt4());
((Range)throwsPosition).setLine(io.readInt4());
((Range)throwsPosition).setCol(io.readInt4());
((Range)throwsPosition).setEndLine(io.readInt4());
((Range)throwsPosition).setEndCol(io.readInt4());
((Range)throwsPosition).setWideLine(io.readInt4());
((Range)throwsPosition).setWideCol(io.readInt4());
((Range)throwsPosition).setWideEndLine(io.readInt4());
((Range)throwsPosition).setWideEndCol(io.readInt4());
_hasBody = io.readInt4();
if (_hasBody != 0)
setParentEdge(_hasBody);
_id = io.readInt4();
if (_id != 0) {
_hasParameters = new EdgeList<Parameter>(factory);
while (_id != 0) {
_hasParameters.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
_id = io.readInt4();
if (_id != 0) {
_hasThrownExceptions = new EdgeList<TypeExpression>(factory);
while (_id != 0) {
_hasThrownExceptions.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
}
}
| 35,833 | 28.639371 | 128 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/AnnotationTypeElementImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.base.Base;
import columbus.java.asg.expr.Expression;
import columbus.java.asg.expr.TypeExpression;
import columbus.java.asg.type.MethodType;
import columbus.java.asg.base.Comment;
import columbus.java.asg.expr.Annotation;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.struc.AnnotationTypeElement AnnotationTypeElement} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class AnnotationTypeElementImpl extends BaseImpl implements AnnotationTypeElement {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(AnnotationTypeElementImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
protected EdgeList<Comment> _comments;
protected EdgeList<Annotation> _hasAnnotations;
protected Object position;
protected boolean isCompilerGenerated;
protected boolean isToolGenerated;
protected int name;
protected Object namePosition;
protected AccessibilityKind accessibility = AccessibilityKind.ackNone;
protected Object accessibilityPosition;
protected boolean isStatic;
protected Object staticPosition;
protected boolean isFinal;
protected Object finalPosition;
protected int lloc;
protected boolean isAbstract;
protected Object abstractPosition;
protected boolean isStrictfp;
protected Object strictfpPosition;
protected Object parametersStartPosition;
protected Object parametersEndPosition;
protected int _hasReturnType;
protected int _methodType;
protected EdgeList<MethodDeclaration> _overrides;
protected Object defaultPosition;
protected int _hasDefaultValue;
public AnnotationTypeElementImpl(int id, Factory factory) {
super(id, factory);
position = new Range(factory.getStringTable());
namePosition = new Range(factory.getStringTable());
accessibilityPosition = new Range(factory.getStringTable());
staticPosition = new Range(factory.getStringTable());
finalPosition = new Range(factory.getStringTable());
abstractPosition = new Range(factory.getStringTable());
strictfpPosition = new Range(factory.getStringTable());
parametersStartPosition = new Range(factory.getStringTable());
parametersEndPosition = new Range(factory.getStringTable());
defaultPosition = new Range(factory.getStringTable());
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkAnnotationTypeElement;
}
@Override
public Range getPosition() {
return (Range)position;
}
@Override
public void setPosition(Range _position) {
if (factory.getStringTable() == _position.getStringTable())
position = _position;
else
position = new Range(factory.getStringTable(), _position);
}
@Override
public boolean getIsCompilerGenerated() {
return isCompilerGenerated;
}
@Override
public boolean getIsToolGenerated() {
return isToolGenerated;
}
@Override
public void setIsCompilerGenerated(boolean _isCompilerGenerated) {
isCompilerGenerated = _isCompilerGenerated;
}
@Override
public void setIsToolGenerated(boolean _isToolGenerated) {
isToolGenerated = _isToolGenerated;
}
@Override
public String getName() {
return factory.getStringTable().get(name);
}
@Override
public int getNameKey() {
return name;
}
@Override
public Range getNamePosition() {
return (Range)namePosition;
}
@Override
public void setName(String _name) {
name = factory.getStringTable().set(_name);
}
@Override
public void setNamePosition(Range _namePosition) {
if (factory.getStringTable() == _namePosition.getStringTable())
namePosition = _namePosition;
else
namePosition = new Range(factory.getStringTable(), _namePosition);
}
@Override
public AccessibilityKind getAccessibility() {
return accessibility;
}
@Override
public Range getAccessibilityPosition() {
return (Range)accessibilityPosition;
}
@Override
public boolean getIsStatic() {
return isStatic;
}
@Override
public Range getStaticPosition() {
return (Range)staticPosition;
}
@Override
public boolean getIsFinal() {
return isFinal;
}
@Override
public Range getFinalPosition() {
return (Range)finalPosition;
}
@Override
public void setAccessibility(AccessibilityKind _accessibility) {
accessibility = _accessibility;
}
@Override
public void setAccessibilityPosition(Range _accessibilityPosition) {
if (factory.getStringTable() == _accessibilityPosition.getStringTable())
accessibilityPosition = _accessibilityPosition;
else
accessibilityPosition = new Range(factory.getStringTable(), _accessibilityPosition);
}
@Override
public void setIsStatic(boolean _isStatic) {
isStatic = _isStatic;
}
@Override
public void setStaticPosition(Range _staticPosition) {
if (factory.getStringTable() == _staticPosition.getStringTable())
staticPosition = _staticPosition;
else
staticPosition = new Range(factory.getStringTable(), _staticPosition);
}
@Override
public void setIsFinal(boolean _isFinal) {
isFinal = _isFinal;
}
@Override
public void setFinalPosition(Range _finalPosition) {
if (factory.getStringTable() == _finalPosition.getStringTable())
finalPosition = _finalPosition;
else
finalPosition = new Range(factory.getStringTable(), _finalPosition);
}
@Override
public int getLloc() {
return lloc;
}
@Override
public boolean getIsAbstract() {
return isAbstract;
}
@Override
public Range getAbstractPosition() {
return (Range)abstractPosition;
}
@Override
public boolean getIsStrictfp() {
return isStrictfp;
}
@Override
public Range getStrictfpPosition() {
return (Range)strictfpPosition;
}
@Override
public Range getParametersStartPosition() {
return (Range)parametersStartPosition;
}
@Override
public Range getParametersEndPosition() {
return (Range)parametersEndPosition;
}
@Override
public void setLloc(int _lloc) {
lloc = _lloc;
}
@Override
public void setIsAbstract(boolean _isAbstract) {
isAbstract = _isAbstract;
}
@Override
public void setAbstractPosition(Range _abstractPosition) {
if (factory.getStringTable() == _abstractPosition.getStringTable())
abstractPosition = _abstractPosition;
else
abstractPosition = new Range(factory.getStringTable(), _abstractPosition);
}
@Override
public void setIsStrictfp(boolean _isStrictfp) {
isStrictfp = _isStrictfp;
}
@Override
public void setStrictfpPosition(Range _strictfpPosition) {
if (factory.getStringTable() == _strictfpPosition.getStringTable())
strictfpPosition = _strictfpPosition;
else
strictfpPosition = new Range(factory.getStringTable(), _strictfpPosition);
}
@Override
public void setParametersStartPosition(Range _parametersStartPosition) {
if (factory.getStringTable() == _parametersStartPosition.getStringTable())
parametersStartPosition = _parametersStartPosition;
else
parametersStartPosition = new Range(factory.getStringTable(), _parametersStartPosition);
}
@Override
public void setParametersEndPosition(Range _parametersEndPosition) {
if (factory.getStringTable() == _parametersEndPosition.getStringTable())
parametersEndPosition = _parametersEndPosition;
else
parametersEndPosition = new Range(factory.getStringTable(), _parametersEndPosition);
}
@Override
public Range getDefaultPosition() {
return (Range)defaultPosition;
}
@Override
public void setDefaultPosition(Range _defaultPosition) {
if (factory.getStringTable() == _defaultPosition.getStringTable())
defaultPosition = _defaultPosition;
else
defaultPosition = new Range(factory.getStringTable(), _defaultPosition);
}
@Override
public EdgeIterator<Comment> getCommentsIterator() {
if (_comments == null)
return EdgeList.<Comment>emptyList().iterator();
else
return _comments.iterator();
}
@Override
public boolean getCommentsIsEmpty() {
if (_comments == null)
return true;
else
return _comments.isEmpty();
}
@Override
public int getCommentsSize() {
if (_comments == null)
return 0;
else
return _comments.size();
}
@Override
public void addComments(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkComment)) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void addComments(Comment _node) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_node);
}
@Override
public EdgeIterator<Annotation> getAnnotationsIterator() {
if (_hasAnnotations == null)
return EdgeList.<Annotation>emptyList().iterator();
else
return _hasAnnotations.iterator();
}
@Override
public boolean getAnnotationsIsEmpty() {
if (_hasAnnotations == null)
return true;
else
return _hasAnnotations.isEmpty();
}
@Override
public int getAnnotationsSize() {
if (_hasAnnotations == null)
return 0;
else
return _hasAnnotations.size();
}
@Override
public void addAnnotations(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkAnnotation)) {
if (_hasAnnotations == null)
_hasAnnotations = new EdgeList<Annotation>(factory);
_hasAnnotations.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addAnnotations(Annotation _node) {
if (_hasAnnotations == null)
_hasAnnotations = new EdgeList<Annotation>(factory);
_hasAnnotations.add(_node);
setParentEdge(_node);
}
@Override
public TypeExpression getReturnType() {
if (_hasReturnType == 0)
return null;
if (factory.getIsFiltered(_hasReturnType))
return null;
return (TypeExpression)factory.getRef(_hasReturnType);
}
@Override
public MethodType getMethodType() {
if (_methodType == 0)
return null;
if (factory.getIsFiltered(_methodType))
return null;
return (MethodType)factory.getRef(_methodType);
}
@Override
public EdgeIterator<MethodDeclaration> getOverridesIterator() {
if (_overrides == null)
return EdgeList.<MethodDeclaration>emptyList().iterator();
else
return _overrides.iterator();
}
@Override
public boolean getOverridesIsEmpty() {
if (_overrides == null)
return true;
else
return _overrides.isEmpty();
}
@Override
public int getOverridesSize() {
if (_overrides == null)
return 0;
else
return _overrides.size();
}
@Override
public void setReturnType(int _id) {
if (_hasReturnType != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasReturnType" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkTypeExpression)) {
_hasReturnType = _id;
setParentEdge(_hasReturnType);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setReturnType(TypeExpression _node) {
if (_hasReturnType != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasReturnType" ));
_hasReturnType = _node.getId();
setParentEdge(_hasReturnType);
}
@Override
public void setMethodType(int _id) {
if (_methodType != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","methodType" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (_node.getNodeKind() == NodeKind.ndkMethodType) {
_methodType = _id;
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setMethodType(MethodType _node) {
if (_methodType != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","methodType" ));
_methodType = _node.getId();
}
@Override
public void addOverrides(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkMethodDeclaration)) {
if (_overrides == null)
_overrides = new EdgeList<MethodDeclaration>(factory);
_overrides.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void addOverrides(MethodDeclaration _node) {
if (_overrides == null)
_overrides = new EdgeList<MethodDeclaration>(factory);
_overrides.add(_node);
}
@Override
public Expression getDefaultValue() {
if (_hasDefaultValue == 0)
return null;
if (factory.getIsFiltered(_hasDefaultValue))
return null;
return (Expression)factory.getRef(_hasDefaultValue);
}
@Override
public void setDefaultValue(int _id) {
if (_hasDefaultValue != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasDefaultValue" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkExpression)) {
_hasDefaultValue = _id;
setParentEdge(_hasDefaultValue);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setDefaultValue(Expression _node) {
if (_hasDefaultValue != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasDefaultValue" ));
_hasDefaultValue = _node.getId();
setParentEdge(_hasDefaultValue);
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
if (_comments != null) {
EdgeIterator<Comment> it = getCommentsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
if (_hasAnnotations != null) {
EdgeIterator<Annotation> it = getAnnotationsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
io.writeInt4(((Range)position).getPathKey());
io.writeInt4(((Range)position).getLine());
io.writeInt4(((Range)position).getCol());
io.writeInt4(((Range)position).getEndLine());
io.writeInt4(((Range)position).getEndCol());
io.writeInt4(((Range)position).getWideLine());
io.writeInt4(((Range)position).getWideCol());
io.writeInt4(((Range)position).getWideEndLine());
io.writeInt4(((Range)position).getWideEndCol());
{
byte boolValues = 0;
boolValues <<= 1;
if (isCompilerGenerated)
boolValues |= 1;
boolValues <<= 1;
if (isToolGenerated)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeInt4(name);
io.writeInt4(((Range)namePosition).getPathKey());
io.writeInt4(((Range)namePosition).getLine());
io.writeInt4(((Range)namePosition).getCol());
io.writeInt4(((Range)namePosition).getEndLine());
io.writeInt4(((Range)namePosition).getEndCol());
io.writeInt4(((Range)namePosition).getWideLine());
io.writeInt4(((Range)namePosition).getWideCol());
io.writeInt4(((Range)namePosition).getWideEndLine());
io.writeInt4(((Range)namePosition).getWideEndCol());
{
byte boolValues = 0;
boolValues <<= 1;
if (isStatic)
boolValues |= 1;
boolValues <<= 1;
if (isFinal)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeUByte1(accessibility.ordinal());
io.writeInt4(((Range)accessibilityPosition).getPathKey());
io.writeInt4(((Range)accessibilityPosition).getLine());
io.writeInt4(((Range)accessibilityPosition).getCol());
io.writeInt4(((Range)accessibilityPosition).getEndLine());
io.writeInt4(((Range)accessibilityPosition).getEndCol());
io.writeInt4(((Range)accessibilityPosition).getWideLine());
io.writeInt4(((Range)accessibilityPosition).getWideCol());
io.writeInt4(((Range)accessibilityPosition).getWideEndLine());
io.writeInt4(((Range)accessibilityPosition).getWideEndCol());
io.writeInt4(((Range)staticPosition).getPathKey());
io.writeInt4(((Range)staticPosition).getLine());
io.writeInt4(((Range)staticPosition).getCol());
io.writeInt4(((Range)staticPosition).getEndLine());
io.writeInt4(((Range)staticPosition).getEndCol());
io.writeInt4(((Range)staticPosition).getWideLine());
io.writeInt4(((Range)staticPosition).getWideCol());
io.writeInt4(((Range)staticPosition).getWideEndLine());
io.writeInt4(((Range)staticPosition).getWideEndCol());
io.writeInt4(((Range)finalPosition).getPathKey());
io.writeInt4(((Range)finalPosition).getLine());
io.writeInt4(((Range)finalPosition).getCol());
io.writeInt4(((Range)finalPosition).getEndLine());
io.writeInt4(((Range)finalPosition).getEndCol());
io.writeInt4(((Range)finalPosition).getWideLine());
io.writeInt4(((Range)finalPosition).getWideCol());
io.writeInt4(((Range)finalPosition).getWideEndLine());
io.writeInt4(((Range)finalPosition).getWideEndCol());
{
byte boolValues = 0;
boolValues <<= 1;
if (isAbstract)
boolValues |= 1;
boolValues <<= 1;
if (isStrictfp)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeInt4(lloc);
io.writeInt4(((Range)abstractPosition).getPathKey());
io.writeInt4(((Range)abstractPosition).getLine());
io.writeInt4(((Range)abstractPosition).getCol());
io.writeInt4(((Range)abstractPosition).getEndLine());
io.writeInt4(((Range)abstractPosition).getEndCol());
io.writeInt4(((Range)abstractPosition).getWideLine());
io.writeInt4(((Range)abstractPosition).getWideCol());
io.writeInt4(((Range)abstractPosition).getWideEndLine());
io.writeInt4(((Range)abstractPosition).getWideEndCol());
io.writeInt4(((Range)strictfpPosition).getPathKey());
io.writeInt4(((Range)strictfpPosition).getLine());
io.writeInt4(((Range)strictfpPosition).getCol());
io.writeInt4(((Range)strictfpPosition).getEndLine());
io.writeInt4(((Range)strictfpPosition).getEndCol());
io.writeInt4(((Range)strictfpPosition).getWideLine());
io.writeInt4(((Range)strictfpPosition).getWideCol());
io.writeInt4(((Range)strictfpPosition).getWideEndLine());
io.writeInt4(((Range)strictfpPosition).getWideEndCol());
io.writeInt4(((Range)parametersStartPosition).getPathKey());
io.writeInt4(((Range)parametersStartPosition).getLine());
io.writeInt4(((Range)parametersStartPosition).getCol());
io.writeInt4(((Range)parametersStartPosition).getEndLine());
io.writeInt4(((Range)parametersStartPosition).getEndCol());
io.writeInt4(((Range)parametersStartPosition).getWideLine());
io.writeInt4(((Range)parametersStartPosition).getWideCol());
io.writeInt4(((Range)parametersStartPosition).getWideEndLine());
io.writeInt4(((Range)parametersStartPosition).getWideEndCol());
io.writeInt4(((Range)parametersEndPosition).getPathKey());
io.writeInt4(((Range)parametersEndPosition).getLine());
io.writeInt4(((Range)parametersEndPosition).getCol());
io.writeInt4(((Range)parametersEndPosition).getEndLine());
io.writeInt4(((Range)parametersEndPosition).getEndCol());
io.writeInt4(((Range)parametersEndPosition).getWideLine());
io.writeInt4(((Range)parametersEndPosition).getWideCol());
io.writeInt4(((Range)parametersEndPosition).getWideEndLine());
io.writeInt4(((Range)parametersEndPosition).getWideEndCol());
io.writeInt4(!factory.getIsFiltered(_hasReturnType) ? _hasReturnType : 0);
io.writeInt4(!factory.getIsFiltered(_methodType) ? _methodType : 0);
if (_overrides != null) {
EdgeIterator<MethodDeclaration> it = getOverridesIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
io.writeInt4(((Range)defaultPosition).getPathKey());
io.writeInt4(((Range)defaultPosition).getLine());
io.writeInt4(((Range)defaultPosition).getCol());
io.writeInt4(((Range)defaultPosition).getEndLine());
io.writeInt4(((Range)defaultPosition).getEndCol());
io.writeInt4(((Range)defaultPosition).getWideLine());
io.writeInt4(((Range)defaultPosition).getWideCol());
io.writeInt4(((Range)defaultPosition).getWideEndLine());
io.writeInt4(((Range)defaultPosition).getWideEndCol());
io.writeInt4(!factory.getIsFiltered(_hasDefaultValue) ? _hasDefaultValue : 0);
}
// ---------- Load ----------
@Override
public void load(IO io) {
int _id;
_id = io.readInt4();
if (_id != 0) {
_comments = new EdgeList<Comment>(factory);
while (_id != 0) {
_comments.add(_id);
_id = io.readInt4();
}
}
_id = io.readInt4();
if (_id != 0) {
_hasAnnotations = new EdgeList<Annotation>(factory);
while (_id != 0) {
_hasAnnotations.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
((Range)position).setPathKey(io.readInt4());
((Range)position).setLine(io.readInt4());
((Range)position).setCol(io.readInt4());
((Range)position).setEndLine(io.readInt4());
((Range)position).setEndCol(io.readInt4());
((Range)position).setWideLine(io.readInt4());
((Range)position).setWideCol(io.readInt4());
((Range)position).setWideEndLine(io.readInt4());
((Range)position).setWideEndCol(io.readInt4());
{
byte boolValues = io.readByte1();
isToolGenerated = (boolValues & 1) != 0;
boolValues >>>= 1;
isCompilerGenerated = (boolValues & 1) != 0;
boolValues >>>= 1;
}
name = io.readInt4();
((Range)namePosition).setPathKey(io.readInt4());
((Range)namePosition).setLine(io.readInt4());
((Range)namePosition).setCol(io.readInt4());
((Range)namePosition).setEndLine(io.readInt4());
((Range)namePosition).setEndCol(io.readInt4());
((Range)namePosition).setWideLine(io.readInt4());
((Range)namePosition).setWideCol(io.readInt4());
((Range)namePosition).setWideEndLine(io.readInt4());
((Range)namePosition).setWideEndCol(io.readInt4());
{
byte boolValues = io.readByte1();
isFinal = (boolValues & 1) != 0;
boolValues >>>= 1;
isStatic = (boolValues & 1) != 0;
boolValues >>>= 1;
}
accessibility = AccessibilityKind.values()[io.readUByte1()];
((Range)accessibilityPosition).setPathKey(io.readInt4());
((Range)accessibilityPosition).setLine(io.readInt4());
((Range)accessibilityPosition).setCol(io.readInt4());
((Range)accessibilityPosition).setEndLine(io.readInt4());
((Range)accessibilityPosition).setEndCol(io.readInt4());
((Range)accessibilityPosition).setWideLine(io.readInt4());
((Range)accessibilityPosition).setWideCol(io.readInt4());
((Range)accessibilityPosition).setWideEndLine(io.readInt4());
((Range)accessibilityPosition).setWideEndCol(io.readInt4());
((Range)staticPosition).setPathKey(io.readInt4());
((Range)staticPosition).setLine(io.readInt4());
((Range)staticPosition).setCol(io.readInt4());
((Range)staticPosition).setEndLine(io.readInt4());
((Range)staticPosition).setEndCol(io.readInt4());
((Range)staticPosition).setWideLine(io.readInt4());
((Range)staticPosition).setWideCol(io.readInt4());
((Range)staticPosition).setWideEndLine(io.readInt4());
((Range)staticPosition).setWideEndCol(io.readInt4());
((Range)finalPosition).setPathKey(io.readInt4());
((Range)finalPosition).setLine(io.readInt4());
((Range)finalPosition).setCol(io.readInt4());
((Range)finalPosition).setEndLine(io.readInt4());
((Range)finalPosition).setEndCol(io.readInt4());
((Range)finalPosition).setWideLine(io.readInt4());
((Range)finalPosition).setWideCol(io.readInt4());
((Range)finalPosition).setWideEndLine(io.readInt4());
((Range)finalPosition).setWideEndCol(io.readInt4());
{
byte boolValues = io.readByte1();
isStrictfp = (boolValues & 1) != 0;
boolValues >>>= 1;
isAbstract = (boolValues & 1) != 0;
boolValues >>>= 1;
}
lloc = io.readInt4();
((Range)abstractPosition).setPathKey(io.readInt4());
((Range)abstractPosition).setLine(io.readInt4());
((Range)abstractPosition).setCol(io.readInt4());
((Range)abstractPosition).setEndLine(io.readInt4());
((Range)abstractPosition).setEndCol(io.readInt4());
((Range)abstractPosition).setWideLine(io.readInt4());
((Range)abstractPosition).setWideCol(io.readInt4());
((Range)abstractPosition).setWideEndLine(io.readInt4());
((Range)abstractPosition).setWideEndCol(io.readInt4());
((Range)strictfpPosition).setPathKey(io.readInt4());
((Range)strictfpPosition).setLine(io.readInt4());
((Range)strictfpPosition).setCol(io.readInt4());
((Range)strictfpPosition).setEndLine(io.readInt4());
((Range)strictfpPosition).setEndCol(io.readInt4());
((Range)strictfpPosition).setWideLine(io.readInt4());
((Range)strictfpPosition).setWideCol(io.readInt4());
((Range)strictfpPosition).setWideEndLine(io.readInt4());
((Range)strictfpPosition).setWideEndCol(io.readInt4());
((Range)parametersStartPosition).setPathKey(io.readInt4());
((Range)parametersStartPosition).setLine(io.readInt4());
((Range)parametersStartPosition).setCol(io.readInt4());
((Range)parametersStartPosition).setEndLine(io.readInt4());
((Range)parametersStartPosition).setEndCol(io.readInt4());
((Range)parametersStartPosition).setWideLine(io.readInt4());
((Range)parametersStartPosition).setWideCol(io.readInt4());
((Range)parametersStartPosition).setWideEndLine(io.readInt4());
((Range)parametersStartPosition).setWideEndCol(io.readInt4());
((Range)parametersEndPosition).setPathKey(io.readInt4());
((Range)parametersEndPosition).setLine(io.readInt4());
((Range)parametersEndPosition).setCol(io.readInt4());
((Range)parametersEndPosition).setEndLine(io.readInt4());
((Range)parametersEndPosition).setEndCol(io.readInt4());
((Range)parametersEndPosition).setWideLine(io.readInt4());
((Range)parametersEndPosition).setWideCol(io.readInt4());
((Range)parametersEndPosition).setWideEndLine(io.readInt4());
((Range)parametersEndPosition).setWideEndCol(io.readInt4());
_hasReturnType = io.readInt4();
if (_hasReturnType != 0)
setParentEdge(_hasReturnType);
_methodType = io.readInt4();
_id = io.readInt4();
if (_id != 0) {
_overrides = new EdgeList<MethodDeclaration>(factory);
while (_id != 0) {
_overrides.add(_id);
_id = io.readInt4();
}
}
((Range)defaultPosition).setPathKey(io.readInt4());
((Range)defaultPosition).setLine(io.readInt4());
((Range)defaultPosition).setCol(io.readInt4());
((Range)defaultPosition).setEndLine(io.readInt4());
((Range)defaultPosition).setEndCol(io.readInt4());
((Range)defaultPosition).setWideLine(io.readInt4());
((Range)defaultPosition).setWideCol(io.readInt4());
((Range)defaultPosition).setWideEndLine(io.readInt4());
((Range)defaultPosition).setWideEndCol(io.readInt4());
_hasDefaultValue = io.readInt4();
if (_hasDefaultValue != 0)
setParentEdge(_hasDefaultValue);
}
}
| 28,380 | 29.419078 | 143 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/AnnotationTypeElement.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
import columbus.java.asg.*;
import columbus.java.asg.expr.Expression;
/**
* Interface AnnotationTypeElement, which represents the {@link columbus.java.asg.struc.AnnotationTypeElement AnnotationTypeElement} node.
* @columbus.node (missing)
* @columbus.attr defaultPosition (Range) : (missing)
* @columbus.edge hasDefaultValue ({@link columbus.java.asg.expr.Expression Expression}, single) : (missing)
*/
public interface AnnotationTypeElement extends MethodDeclaration {
/**
* Gives back the {@link columbus.java.asg.struc.AnnotationTypeElement#attributeDefaultPosition defaultPosition} of the node.
* @return Returns with the defaultPosition.
*/
public Range getDefaultPosition();
/**
* Sets the {@link columbus.java.asg.struc.AnnotationTypeElement#attributeDefaultPosition defaultPosition} of the node.
* @param value The new value of the defaultPosition.
*/
public void setDefaultPosition(Range value);
/**
* Gives back the reference of the node the {@link columbus.java.asg.struc.AnnotationTypeElement#edgeHasDefaultValue hasDefaultValue} edge points to.
* @return Returns the end point of the hasDefaultValue edge.
*/
public Expression getDefaultValue();
/**
* Sets the {@link columbus.java.asg.struc.AnnotationTypeElement#edgeHasDefaultValue hasDefaultValue} edge.
* @param id The new end point of the hasDefaultValue edge.
*/
public void setDefaultValue(int id);
/**
* Sets the {@link columbus.java.asg.struc.AnnotationTypeElement#edgeHasDefaultValue hasDefaultValue} edge.
* @param node The new end point of the hasDefaultValue edge.
*/
public void setDefaultValue(Expression node);
}
| 2,410 | 35.530303 | 150 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/EnumConstantImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.base.Base;
import columbus.java.asg.expr.NewClass;
import columbus.java.asg.expr.TypeExpression;
import columbus.java.asg.base.Comment;
import columbus.java.asg.expr.Annotation;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.struc.EnumConstant EnumConstant} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class EnumConstantImpl extends BaseImpl implements EnumConstant {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(EnumConstantImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
protected EdgeList<Comment> _comments;
protected EdgeList<Annotation> _hasAnnotations;
protected Object position;
protected boolean isCompilerGenerated;
protected boolean isToolGenerated;
protected int name;
protected Object namePosition;
protected AccessibilityKind accessibility = AccessibilityKind.ackNone;
protected Object accessibilityPosition;
protected boolean isStatic;
protected Object staticPosition;
protected boolean isFinal;
protected Object finalPosition;
protected int _hasType;
protected int _hasNewClass;
public EnumConstantImpl(int id, Factory factory) {
super(id, factory);
position = new Range(factory.getStringTable());
namePosition = new Range(factory.getStringTable());
accessibilityPosition = new Range(factory.getStringTable());
staticPosition = new Range(factory.getStringTable());
finalPosition = new Range(factory.getStringTable());
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkEnumConstant;
}
@Override
public Range getPosition() {
return (Range)position;
}
@Override
public void setPosition(Range _position) {
if (factory.getStringTable() == _position.getStringTable())
position = _position;
else
position = new Range(factory.getStringTable(), _position);
}
@Override
public boolean getIsCompilerGenerated() {
return isCompilerGenerated;
}
@Override
public boolean getIsToolGenerated() {
return isToolGenerated;
}
@Override
public void setIsCompilerGenerated(boolean _isCompilerGenerated) {
isCompilerGenerated = _isCompilerGenerated;
}
@Override
public void setIsToolGenerated(boolean _isToolGenerated) {
isToolGenerated = _isToolGenerated;
}
@Override
public String getName() {
return factory.getStringTable().get(name);
}
@Override
public int getNameKey() {
return name;
}
@Override
public Range getNamePosition() {
return (Range)namePosition;
}
@Override
public void setName(String _name) {
name = factory.getStringTable().set(_name);
}
@Override
public void setNamePosition(Range _namePosition) {
if (factory.getStringTable() == _namePosition.getStringTable())
namePosition = _namePosition;
else
namePosition = new Range(factory.getStringTable(), _namePosition);
}
@Override
public AccessibilityKind getAccessibility() {
return accessibility;
}
@Override
public Range getAccessibilityPosition() {
return (Range)accessibilityPosition;
}
@Override
public boolean getIsStatic() {
return isStatic;
}
@Override
public Range getStaticPosition() {
return (Range)staticPosition;
}
@Override
public boolean getIsFinal() {
return isFinal;
}
@Override
public Range getFinalPosition() {
return (Range)finalPosition;
}
@Override
public void setAccessibility(AccessibilityKind _accessibility) {
accessibility = _accessibility;
}
@Override
public void setAccessibilityPosition(Range _accessibilityPosition) {
if (factory.getStringTable() == _accessibilityPosition.getStringTable())
accessibilityPosition = _accessibilityPosition;
else
accessibilityPosition = new Range(factory.getStringTable(), _accessibilityPosition);
}
@Override
public void setIsStatic(boolean _isStatic) {
isStatic = _isStatic;
}
@Override
public void setStaticPosition(Range _staticPosition) {
if (factory.getStringTable() == _staticPosition.getStringTable())
staticPosition = _staticPosition;
else
staticPosition = new Range(factory.getStringTable(), _staticPosition);
}
@Override
public void setIsFinal(boolean _isFinal) {
isFinal = _isFinal;
}
@Override
public void setFinalPosition(Range _finalPosition) {
if (factory.getStringTable() == _finalPosition.getStringTable())
finalPosition = _finalPosition;
else
finalPosition = new Range(factory.getStringTable(), _finalPosition);
}
@Override
public EdgeIterator<Comment> getCommentsIterator() {
if (_comments == null)
return EdgeList.<Comment>emptyList().iterator();
else
return _comments.iterator();
}
@Override
public boolean getCommentsIsEmpty() {
if (_comments == null)
return true;
else
return _comments.isEmpty();
}
@Override
public int getCommentsSize() {
if (_comments == null)
return 0;
else
return _comments.size();
}
@Override
public void addComments(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkComment)) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void addComments(Comment _node) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_node);
}
@Override
public EdgeIterator<Annotation> getAnnotationsIterator() {
if (_hasAnnotations == null)
return EdgeList.<Annotation>emptyList().iterator();
else
return _hasAnnotations.iterator();
}
@Override
public boolean getAnnotationsIsEmpty() {
if (_hasAnnotations == null)
return true;
else
return _hasAnnotations.isEmpty();
}
@Override
public int getAnnotationsSize() {
if (_hasAnnotations == null)
return 0;
else
return _hasAnnotations.size();
}
@Override
public void addAnnotations(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkAnnotation)) {
if (_hasAnnotations == null)
_hasAnnotations = new EdgeList<Annotation>(factory);
_hasAnnotations.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addAnnotations(Annotation _node) {
if (_hasAnnotations == null)
_hasAnnotations = new EdgeList<Annotation>(factory);
_hasAnnotations.add(_node);
setParentEdge(_node);
}
@Override
public TypeExpression getType() {
if (_hasType == 0)
return null;
if (factory.getIsFiltered(_hasType))
return null;
return (TypeExpression)factory.getRef(_hasType);
}
@Override
public void setType(int _id) {
if (_hasType != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasType" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkTypeExpression)) {
_hasType = _id;
setParentEdge(_hasType);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setType(TypeExpression _node) {
if (_hasType != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasType" ));
_hasType = _node.getId();
setParentEdge(_hasType);
}
@Override
public NewClass getNewClass() {
if (_hasNewClass == 0)
return null;
if (factory.getIsFiltered(_hasNewClass))
return null;
return (NewClass)factory.getRef(_hasNewClass);
}
@Override
public void setNewClass(int _id) {
if (_hasNewClass != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasNewClass" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (_node.getNodeKind() == NodeKind.ndkNewClass) {
_hasNewClass = _id;
setParentEdge(_hasNewClass);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setNewClass(NewClass _node) {
if (_hasNewClass != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasNewClass" ));
_hasNewClass = _node.getId();
setParentEdge(_hasNewClass);
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
if (_comments != null) {
EdgeIterator<Comment> it = getCommentsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
if (_hasAnnotations != null) {
EdgeIterator<Annotation> it = getAnnotationsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
io.writeInt4(((Range)position).getPathKey());
io.writeInt4(((Range)position).getLine());
io.writeInt4(((Range)position).getCol());
io.writeInt4(((Range)position).getEndLine());
io.writeInt4(((Range)position).getEndCol());
io.writeInt4(((Range)position).getWideLine());
io.writeInt4(((Range)position).getWideCol());
io.writeInt4(((Range)position).getWideEndLine());
io.writeInt4(((Range)position).getWideEndCol());
{
byte boolValues = 0;
boolValues <<= 1;
if (isCompilerGenerated)
boolValues |= 1;
boolValues <<= 1;
if (isToolGenerated)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeInt4(name);
io.writeInt4(((Range)namePosition).getPathKey());
io.writeInt4(((Range)namePosition).getLine());
io.writeInt4(((Range)namePosition).getCol());
io.writeInt4(((Range)namePosition).getEndLine());
io.writeInt4(((Range)namePosition).getEndCol());
io.writeInt4(((Range)namePosition).getWideLine());
io.writeInt4(((Range)namePosition).getWideCol());
io.writeInt4(((Range)namePosition).getWideEndLine());
io.writeInt4(((Range)namePosition).getWideEndCol());
{
byte boolValues = 0;
boolValues <<= 1;
if (isStatic)
boolValues |= 1;
boolValues <<= 1;
if (isFinal)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeUByte1(accessibility.ordinal());
io.writeInt4(((Range)accessibilityPosition).getPathKey());
io.writeInt4(((Range)accessibilityPosition).getLine());
io.writeInt4(((Range)accessibilityPosition).getCol());
io.writeInt4(((Range)accessibilityPosition).getEndLine());
io.writeInt4(((Range)accessibilityPosition).getEndCol());
io.writeInt4(((Range)accessibilityPosition).getWideLine());
io.writeInt4(((Range)accessibilityPosition).getWideCol());
io.writeInt4(((Range)accessibilityPosition).getWideEndLine());
io.writeInt4(((Range)accessibilityPosition).getWideEndCol());
io.writeInt4(((Range)staticPosition).getPathKey());
io.writeInt4(((Range)staticPosition).getLine());
io.writeInt4(((Range)staticPosition).getCol());
io.writeInt4(((Range)staticPosition).getEndLine());
io.writeInt4(((Range)staticPosition).getEndCol());
io.writeInt4(((Range)staticPosition).getWideLine());
io.writeInt4(((Range)staticPosition).getWideCol());
io.writeInt4(((Range)staticPosition).getWideEndLine());
io.writeInt4(((Range)staticPosition).getWideEndCol());
io.writeInt4(((Range)finalPosition).getPathKey());
io.writeInt4(((Range)finalPosition).getLine());
io.writeInt4(((Range)finalPosition).getCol());
io.writeInt4(((Range)finalPosition).getEndLine());
io.writeInt4(((Range)finalPosition).getEndCol());
io.writeInt4(((Range)finalPosition).getWideLine());
io.writeInt4(((Range)finalPosition).getWideCol());
io.writeInt4(((Range)finalPosition).getWideEndLine());
io.writeInt4(((Range)finalPosition).getWideEndCol());
io.writeInt4(!factory.getIsFiltered(_hasType) ? _hasType : 0);
io.writeInt4(!factory.getIsFiltered(_hasNewClass) ? _hasNewClass : 0);
}
// ---------- Load ----------
@Override
public void load(IO io) {
int _id;
_id = io.readInt4();
if (_id != 0) {
_comments = new EdgeList<Comment>(factory);
while (_id != 0) {
_comments.add(_id);
_id = io.readInt4();
}
}
_id = io.readInt4();
if (_id != 0) {
_hasAnnotations = new EdgeList<Annotation>(factory);
while (_id != 0) {
_hasAnnotations.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
((Range)position).setPathKey(io.readInt4());
((Range)position).setLine(io.readInt4());
((Range)position).setCol(io.readInt4());
((Range)position).setEndLine(io.readInt4());
((Range)position).setEndCol(io.readInt4());
((Range)position).setWideLine(io.readInt4());
((Range)position).setWideCol(io.readInt4());
((Range)position).setWideEndLine(io.readInt4());
((Range)position).setWideEndCol(io.readInt4());
{
byte boolValues = io.readByte1();
isToolGenerated = (boolValues & 1) != 0;
boolValues >>>= 1;
isCompilerGenerated = (boolValues & 1) != 0;
boolValues >>>= 1;
}
name = io.readInt4();
((Range)namePosition).setPathKey(io.readInt4());
((Range)namePosition).setLine(io.readInt4());
((Range)namePosition).setCol(io.readInt4());
((Range)namePosition).setEndLine(io.readInt4());
((Range)namePosition).setEndCol(io.readInt4());
((Range)namePosition).setWideLine(io.readInt4());
((Range)namePosition).setWideCol(io.readInt4());
((Range)namePosition).setWideEndLine(io.readInt4());
((Range)namePosition).setWideEndCol(io.readInt4());
{
byte boolValues = io.readByte1();
isFinal = (boolValues & 1) != 0;
boolValues >>>= 1;
isStatic = (boolValues & 1) != 0;
boolValues >>>= 1;
}
accessibility = AccessibilityKind.values()[io.readUByte1()];
((Range)accessibilityPosition).setPathKey(io.readInt4());
((Range)accessibilityPosition).setLine(io.readInt4());
((Range)accessibilityPosition).setCol(io.readInt4());
((Range)accessibilityPosition).setEndLine(io.readInt4());
((Range)accessibilityPosition).setEndCol(io.readInt4());
((Range)accessibilityPosition).setWideLine(io.readInt4());
((Range)accessibilityPosition).setWideCol(io.readInt4());
((Range)accessibilityPosition).setWideEndLine(io.readInt4());
((Range)accessibilityPosition).setWideEndCol(io.readInt4());
((Range)staticPosition).setPathKey(io.readInt4());
((Range)staticPosition).setLine(io.readInt4());
((Range)staticPosition).setCol(io.readInt4());
((Range)staticPosition).setEndLine(io.readInt4());
((Range)staticPosition).setEndCol(io.readInt4());
((Range)staticPosition).setWideLine(io.readInt4());
((Range)staticPosition).setWideCol(io.readInt4());
((Range)staticPosition).setWideEndLine(io.readInt4());
((Range)staticPosition).setWideEndCol(io.readInt4());
((Range)finalPosition).setPathKey(io.readInt4());
((Range)finalPosition).setLine(io.readInt4());
((Range)finalPosition).setCol(io.readInt4());
((Range)finalPosition).setEndLine(io.readInt4());
((Range)finalPosition).setEndCol(io.readInt4());
((Range)finalPosition).setWideLine(io.readInt4());
((Range)finalPosition).setWideCol(io.readInt4());
((Range)finalPosition).setWideEndLine(io.readInt4());
((Range)finalPosition).setWideEndCol(io.readInt4());
_hasType = io.readInt4();
if (_hasType != 0)
setParentEdge(_hasType);
_hasNewClass = io.readInt4();
if (_hasNewClass != 0)
setParentEdge(_hasNewClass);
}
}
| 16,869 | 27.163606 | 134 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/MethodGenericImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.base.Base;
import columbus.java.asg.statm.Block;
import columbus.java.asg.expr.TypeExpression;
import columbus.java.asg.type.MethodType;
import columbus.java.asg.base.Comment;
import columbus.java.asg.expr.Annotation;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.struc.MethodGeneric MethodGeneric} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class MethodGenericImpl extends BaseImpl implements MethodGeneric {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(MethodGenericImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
protected EdgeList<Comment> _comments;
protected EdgeList<Annotation> _hasAnnotations;
protected Object position;
protected boolean isCompilerGenerated;
protected boolean isToolGenerated;
protected int name;
protected Object namePosition;
protected AccessibilityKind accessibility = AccessibilityKind.ackNone;
protected Object accessibilityPosition;
protected boolean isStatic;
protected Object staticPosition;
protected boolean isFinal;
protected Object finalPosition;
protected int lloc;
protected boolean isAbstract;
protected Object abstractPosition;
protected boolean isStrictfp;
protected Object strictfpPosition;
protected Object parametersStartPosition;
protected Object parametersEndPosition;
protected int _hasReturnType;
protected int _methodType;
protected EdgeList<MethodDeclaration> _overrides;
protected MethodKind methodKind = MethodKind.mekNormal;
protected boolean isSynchronized;
protected Object synchronizedPosition;
protected boolean isNative;
protected Object nativePosition;
protected Object throwsPosition;
protected boolean isDefault;
protected EdgeList<Parameter> _hasParameters;
protected int _hasBody;
protected EdgeList<TypeExpression> _hasThrownExceptions;
protected EdgeList<TypeParameter> _hasTypeParameters;
public MethodGenericImpl(int id, Factory factory) {
super(id, factory);
position = new Range(factory.getStringTable());
namePosition = new Range(factory.getStringTable());
accessibilityPosition = new Range(factory.getStringTable());
staticPosition = new Range(factory.getStringTable());
finalPosition = new Range(factory.getStringTable());
abstractPosition = new Range(factory.getStringTable());
strictfpPosition = new Range(factory.getStringTable());
parametersStartPosition = new Range(factory.getStringTable());
parametersEndPosition = new Range(factory.getStringTable());
synchronizedPosition = new Range(factory.getStringTable());
nativePosition = new Range(factory.getStringTable());
throwsPosition = new Range(factory.getStringTable());
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkMethodGeneric;
}
@Override
public Range getPosition() {
return (Range)position;
}
@Override
public void setPosition(Range _position) {
if (factory.getStringTable() == _position.getStringTable())
position = _position;
else
position = new Range(factory.getStringTable(), _position);
}
@Override
public boolean getIsCompilerGenerated() {
return isCompilerGenerated;
}
@Override
public boolean getIsToolGenerated() {
return isToolGenerated;
}
@Override
public void setIsCompilerGenerated(boolean _isCompilerGenerated) {
isCompilerGenerated = _isCompilerGenerated;
}
@Override
public void setIsToolGenerated(boolean _isToolGenerated) {
isToolGenerated = _isToolGenerated;
}
@Override
public String getName() {
return factory.getStringTable().get(name);
}
@Override
public int getNameKey() {
return name;
}
@Override
public Range getNamePosition() {
return (Range)namePosition;
}
@Override
public void setName(String _name) {
name = factory.getStringTable().set(_name);
}
@Override
public void setNamePosition(Range _namePosition) {
if (factory.getStringTable() == _namePosition.getStringTable())
namePosition = _namePosition;
else
namePosition = new Range(factory.getStringTable(), _namePosition);
}
@Override
public AccessibilityKind getAccessibility() {
return accessibility;
}
@Override
public Range getAccessibilityPosition() {
return (Range)accessibilityPosition;
}
@Override
public boolean getIsStatic() {
return isStatic;
}
@Override
public Range getStaticPosition() {
return (Range)staticPosition;
}
@Override
public boolean getIsFinal() {
return isFinal;
}
@Override
public Range getFinalPosition() {
return (Range)finalPosition;
}
@Override
public void setAccessibility(AccessibilityKind _accessibility) {
accessibility = _accessibility;
}
@Override
public void setAccessibilityPosition(Range _accessibilityPosition) {
if (factory.getStringTable() == _accessibilityPosition.getStringTable())
accessibilityPosition = _accessibilityPosition;
else
accessibilityPosition = new Range(factory.getStringTable(), _accessibilityPosition);
}
@Override
public void setIsStatic(boolean _isStatic) {
isStatic = _isStatic;
}
@Override
public void setStaticPosition(Range _staticPosition) {
if (factory.getStringTable() == _staticPosition.getStringTable())
staticPosition = _staticPosition;
else
staticPosition = new Range(factory.getStringTable(), _staticPosition);
}
@Override
public void setIsFinal(boolean _isFinal) {
isFinal = _isFinal;
}
@Override
public void setFinalPosition(Range _finalPosition) {
if (factory.getStringTable() == _finalPosition.getStringTable())
finalPosition = _finalPosition;
else
finalPosition = new Range(factory.getStringTable(), _finalPosition);
}
@Override
public int getLloc() {
return lloc;
}
@Override
public boolean getIsAbstract() {
return isAbstract;
}
@Override
public Range getAbstractPosition() {
return (Range)abstractPosition;
}
@Override
public boolean getIsStrictfp() {
return isStrictfp;
}
@Override
public Range getStrictfpPosition() {
return (Range)strictfpPosition;
}
@Override
public Range getParametersStartPosition() {
return (Range)parametersStartPosition;
}
@Override
public Range getParametersEndPosition() {
return (Range)parametersEndPosition;
}
@Override
public void setLloc(int _lloc) {
lloc = _lloc;
}
@Override
public void setIsAbstract(boolean _isAbstract) {
isAbstract = _isAbstract;
}
@Override
public void setAbstractPosition(Range _abstractPosition) {
if (factory.getStringTable() == _abstractPosition.getStringTable())
abstractPosition = _abstractPosition;
else
abstractPosition = new Range(factory.getStringTable(), _abstractPosition);
}
@Override
public void setIsStrictfp(boolean _isStrictfp) {
isStrictfp = _isStrictfp;
}
@Override
public void setStrictfpPosition(Range _strictfpPosition) {
if (factory.getStringTable() == _strictfpPosition.getStringTable())
strictfpPosition = _strictfpPosition;
else
strictfpPosition = new Range(factory.getStringTable(), _strictfpPosition);
}
@Override
public void setParametersStartPosition(Range _parametersStartPosition) {
if (factory.getStringTable() == _parametersStartPosition.getStringTable())
parametersStartPosition = _parametersStartPosition;
else
parametersStartPosition = new Range(factory.getStringTable(), _parametersStartPosition);
}
@Override
public void setParametersEndPosition(Range _parametersEndPosition) {
if (factory.getStringTable() == _parametersEndPosition.getStringTable())
parametersEndPosition = _parametersEndPosition;
else
parametersEndPosition = new Range(factory.getStringTable(), _parametersEndPosition);
}
@Override
public MethodKind getMethodKind() {
return methodKind;
}
@Override
public boolean getIsSynchronized() {
return isSynchronized;
}
@Override
public Range getSynchronizedPosition() {
return (Range)synchronizedPosition;
}
@Override
public boolean getIsNative() {
return isNative;
}
@Override
public Range getNativePosition() {
return (Range)nativePosition;
}
@Override
public Range getThrowsPosition() {
return (Range)throwsPosition;
}
@Override
public boolean getIsDefault() {
return isDefault;
}
@Override
public void setMethodKind(MethodKind _methodKind) {
methodKind = _methodKind;
}
@Override
public void setIsSynchronized(boolean _isSynchronized) {
isSynchronized = _isSynchronized;
}
@Override
public void setSynchronizedPosition(Range _synchronizedPosition) {
if (factory.getStringTable() == _synchronizedPosition.getStringTable())
synchronizedPosition = _synchronizedPosition;
else
synchronizedPosition = new Range(factory.getStringTable(), _synchronizedPosition);
}
@Override
public void setIsNative(boolean _isNative) {
isNative = _isNative;
}
@Override
public void setNativePosition(Range _nativePosition) {
if (factory.getStringTable() == _nativePosition.getStringTable())
nativePosition = _nativePosition;
else
nativePosition = new Range(factory.getStringTable(), _nativePosition);
}
@Override
public void setThrowsPosition(Range _throwsPosition) {
if (factory.getStringTable() == _throwsPosition.getStringTable())
throwsPosition = _throwsPosition;
else
throwsPosition = new Range(factory.getStringTable(), _throwsPosition);
}
@Override
public void setIsDefault(boolean _isDefault) {
isDefault = _isDefault;
}
@Override
public EdgeIterator<Comment> getCommentsIterator() {
if (_comments == null)
return EdgeList.<Comment>emptyList().iterator();
else
return _comments.iterator();
}
@Override
public boolean getCommentsIsEmpty() {
if (_comments == null)
return true;
else
return _comments.isEmpty();
}
@Override
public int getCommentsSize() {
if (_comments == null)
return 0;
else
return _comments.size();
}
@Override
public void addComments(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkComment)) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void addComments(Comment _node) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_node);
}
@Override
public EdgeIterator<Annotation> getAnnotationsIterator() {
if (_hasAnnotations == null)
return EdgeList.<Annotation>emptyList().iterator();
else
return _hasAnnotations.iterator();
}
@Override
public boolean getAnnotationsIsEmpty() {
if (_hasAnnotations == null)
return true;
else
return _hasAnnotations.isEmpty();
}
@Override
public int getAnnotationsSize() {
if (_hasAnnotations == null)
return 0;
else
return _hasAnnotations.size();
}
@Override
public void addAnnotations(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkAnnotation)) {
if (_hasAnnotations == null)
_hasAnnotations = new EdgeList<Annotation>(factory);
_hasAnnotations.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addAnnotations(Annotation _node) {
if (_hasAnnotations == null)
_hasAnnotations = new EdgeList<Annotation>(factory);
_hasAnnotations.add(_node);
setParentEdge(_node);
}
@Override
public TypeExpression getReturnType() {
if (_hasReturnType == 0)
return null;
if (factory.getIsFiltered(_hasReturnType))
return null;
return (TypeExpression)factory.getRef(_hasReturnType);
}
@Override
public MethodType getMethodType() {
if (_methodType == 0)
return null;
if (factory.getIsFiltered(_methodType))
return null;
return (MethodType)factory.getRef(_methodType);
}
@Override
public EdgeIterator<MethodDeclaration> getOverridesIterator() {
if (_overrides == null)
return EdgeList.<MethodDeclaration>emptyList().iterator();
else
return _overrides.iterator();
}
@Override
public boolean getOverridesIsEmpty() {
if (_overrides == null)
return true;
else
return _overrides.isEmpty();
}
@Override
public int getOverridesSize() {
if (_overrides == null)
return 0;
else
return _overrides.size();
}
@Override
public void setReturnType(int _id) {
if (_hasReturnType != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasReturnType" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkTypeExpression)) {
_hasReturnType = _id;
setParentEdge(_hasReturnType);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setReturnType(TypeExpression _node) {
if (_hasReturnType != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasReturnType" ));
_hasReturnType = _node.getId();
setParentEdge(_hasReturnType);
}
@Override
public void setMethodType(int _id) {
if (_methodType != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","methodType" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (_node.getNodeKind() == NodeKind.ndkMethodType) {
_methodType = _id;
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setMethodType(MethodType _node) {
if (_methodType != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","methodType" ));
_methodType = _node.getId();
}
@Override
public void addOverrides(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkMethodDeclaration)) {
if (_overrides == null)
_overrides = new EdgeList<MethodDeclaration>(factory);
_overrides.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void addOverrides(MethodDeclaration _node) {
if (_overrides == null)
_overrides = new EdgeList<MethodDeclaration>(factory);
_overrides.add(_node);
}
@Override
public EdgeIterator<Parameter> getParametersIterator() {
if (_hasParameters == null)
return EdgeList.<Parameter>emptyList().iterator();
else
return _hasParameters.iterator();
}
@Override
public boolean getParametersIsEmpty() {
if (_hasParameters == null)
return true;
else
return _hasParameters.isEmpty();
}
@Override
public int getParametersSize() {
if (_hasParameters == null)
return 0;
else
return _hasParameters.size();
}
@Override
public Block getBody() {
if (_hasBody == 0)
return null;
if (factory.getIsFiltered(_hasBody))
return null;
return (Block)factory.getRef(_hasBody);
}
@Override
public EdgeIterator<TypeExpression> getThrownExceptionsIterator() {
if (_hasThrownExceptions == null)
return EdgeList.<TypeExpression>emptyList().iterator();
else
return _hasThrownExceptions.iterator();
}
@Override
public boolean getThrownExceptionsIsEmpty() {
if (_hasThrownExceptions == null)
return true;
else
return _hasThrownExceptions.isEmpty();
}
@Override
public int getThrownExceptionsSize() {
if (_hasThrownExceptions == null)
return 0;
else
return _hasThrownExceptions.size();
}
@Override
public void addParameters(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (_node.getNodeKind() == NodeKind.ndkParameter) {
if (_hasParameters == null)
_hasParameters = new EdgeList<Parameter>(factory);
_hasParameters.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addParameters(Parameter _node) {
if (_hasParameters == null)
_hasParameters = new EdgeList<Parameter>(factory);
_hasParameters.add(_node);
setParentEdge(_node);
}
@Override
public void setBody(int _id) {
if (_hasBody != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasBody" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (_node.getNodeKind() == NodeKind.ndkBlock) {
_hasBody = _id;
setParentEdge(_hasBody);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setBody(Block _node) {
if (_hasBody != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasBody" ));
_hasBody = _node.getId();
setParentEdge(_hasBody);
}
@Override
public void addThrownExceptions(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkTypeExpression)) {
if (_hasThrownExceptions == null)
_hasThrownExceptions = new EdgeList<TypeExpression>(factory);
_hasThrownExceptions.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addThrownExceptions(TypeExpression _node) {
if (_hasThrownExceptions == null)
_hasThrownExceptions = new EdgeList<TypeExpression>(factory);
_hasThrownExceptions.add(_node);
setParentEdge(_node);
}
@Override
public EdgeIterator<TypeParameter> getTypeParametersIterator() {
if (_hasTypeParameters == null)
return EdgeList.<TypeParameter>emptyList().iterator();
else
return _hasTypeParameters.iterator();
}
@Override
public boolean getTypeParametersIsEmpty() {
if (_hasTypeParameters == null)
return true;
else
return _hasTypeParameters.isEmpty();
}
@Override
public int getTypeParametersSize() {
if (_hasTypeParameters == null)
return 0;
else
return _hasTypeParameters.size();
}
@Override
public void addTypeParameters(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (_node.getNodeKind() == NodeKind.ndkTypeParameter) {
if (_hasTypeParameters == null)
_hasTypeParameters = new EdgeList<TypeParameter>(factory);
_hasTypeParameters.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addTypeParameters(TypeParameter _node) {
if (_hasTypeParameters == null)
_hasTypeParameters = new EdgeList<TypeParameter>(factory);
_hasTypeParameters.add(_node);
setParentEdge(_node);
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
if (_comments != null) {
EdgeIterator<Comment> it = getCommentsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
if (_hasAnnotations != null) {
EdgeIterator<Annotation> it = getAnnotationsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
io.writeInt4(((Range)position).getPathKey());
io.writeInt4(((Range)position).getLine());
io.writeInt4(((Range)position).getCol());
io.writeInt4(((Range)position).getEndLine());
io.writeInt4(((Range)position).getEndCol());
io.writeInt4(((Range)position).getWideLine());
io.writeInt4(((Range)position).getWideCol());
io.writeInt4(((Range)position).getWideEndLine());
io.writeInt4(((Range)position).getWideEndCol());
{
byte boolValues = 0;
boolValues <<= 1;
if (isCompilerGenerated)
boolValues |= 1;
boolValues <<= 1;
if (isToolGenerated)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeInt4(name);
io.writeInt4(((Range)namePosition).getPathKey());
io.writeInt4(((Range)namePosition).getLine());
io.writeInt4(((Range)namePosition).getCol());
io.writeInt4(((Range)namePosition).getEndLine());
io.writeInt4(((Range)namePosition).getEndCol());
io.writeInt4(((Range)namePosition).getWideLine());
io.writeInt4(((Range)namePosition).getWideCol());
io.writeInt4(((Range)namePosition).getWideEndLine());
io.writeInt4(((Range)namePosition).getWideEndCol());
{
byte boolValues = 0;
boolValues <<= 1;
if (isStatic)
boolValues |= 1;
boolValues <<= 1;
if (isFinal)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeUByte1(accessibility.ordinal());
io.writeInt4(((Range)accessibilityPosition).getPathKey());
io.writeInt4(((Range)accessibilityPosition).getLine());
io.writeInt4(((Range)accessibilityPosition).getCol());
io.writeInt4(((Range)accessibilityPosition).getEndLine());
io.writeInt4(((Range)accessibilityPosition).getEndCol());
io.writeInt4(((Range)accessibilityPosition).getWideLine());
io.writeInt4(((Range)accessibilityPosition).getWideCol());
io.writeInt4(((Range)accessibilityPosition).getWideEndLine());
io.writeInt4(((Range)accessibilityPosition).getWideEndCol());
io.writeInt4(((Range)staticPosition).getPathKey());
io.writeInt4(((Range)staticPosition).getLine());
io.writeInt4(((Range)staticPosition).getCol());
io.writeInt4(((Range)staticPosition).getEndLine());
io.writeInt4(((Range)staticPosition).getEndCol());
io.writeInt4(((Range)staticPosition).getWideLine());
io.writeInt4(((Range)staticPosition).getWideCol());
io.writeInt4(((Range)staticPosition).getWideEndLine());
io.writeInt4(((Range)staticPosition).getWideEndCol());
io.writeInt4(((Range)finalPosition).getPathKey());
io.writeInt4(((Range)finalPosition).getLine());
io.writeInt4(((Range)finalPosition).getCol());
io.writeInt4(((Range)finalPosition).getEndLine());
io.writeInt4(((Range)finalPosition).getEndCol());
io.writeInt4(((Range)finalPosition).getWideLine());
io.writeInt4(((Range)finalPosition).getWideCol());
io.writeInt4(((Range)finalPosition).getWideEndLine());
io.writeInt4(((Range)finalPosition).getWideEndCol());
{
byte boolValues = 0;
boolValues <<= 1;
if (isAbstract)
boolValues |= 1;
boolValues <<= 1;
if (isStrictfp)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeInt4(lloc);
io.writeInt4(((Range)abstractPosition).getPathKey());
io.writeInt4(((Range)abstractPosition).getLine());
io.writeInt4(((Range)abstractPosition).getCol());
io.writeInt4(((Range)abstractPosition).getEndLine());
io.writeInt4(((Range)abstractPosition).getEndCol());
io.writeInt4(((Range)abstractPosition).getWideLine());
io.writeInt4(((Range)abstractPosition).getWideCol());
io.writeInt4(((Range)abstractPosition).getWideEndLine());
io.writeInt4(((Range)abstractPosition).getWideEndCol());
io.writeInt4(((Range)strictfpPosition).getPathKey());
io.writeInt4(((Range)strictfpPosition).getLine());
io.writeInt4(((Range)strictfpPosition).getCol());
io.writeInt4(((Range)strictfpPosition).getEndLine());
io.writeInt4(((Range)strictfpPosition).getEndCol());
io.writeInt4(((Range)strictfpPosition).getWideLine());
io.writeInt4(((Range)strictfpPosition).getWideCol());
io.writeInt4(((Range)strictfpPosition).getWideEndLine());
io.writeInt4(((Range)strictfpPosition).getWideEndCol());
io.writeInt4(((Range)parametersStartPosition).getPathKey());
io.writeInt4(((Range)parametersStartPosition).getLine());
io.writeInt4(((Range)parametersStartPosition).getCol());
io.writeInt4(((Range)parametersStartPosition).getEndLine());
io.writeInt4(((Range)parametersStartPosition).getEndCol());
io.writeInt4(((Range)parametersStartPosition).getWideLine());
io.writeInt4(((Range)parametersStartPosition).getWideCol());
io.writeInt4(((Range)parametersStartPosition).getWideEndLine());
io.writeInt4(((Range)parametersStartPosition).getWideEndCol());
io.writeInt4(((Range)parametersEndPosition).getPathKey());
io.writeInt4(((Range)parametersEndPosition).getLine());
io.writeInt4(((Range)parametersEndPosition).getCol());
io.writeInt4(((Range)parametersEndPosition).getEndLine());
io.writeInt4(((Range)parametersEndPosition).getEndCol());
io.writeInt4(((Range)parametersEndPosition).getWideLine());
io.writeInt4(((Range)parametersEndPosition).getWideCol());
io.writeInt4(((Range)parametersEndPosition).getWideEndLine());
io.writeInt4(((Range)parametersEndPosition).getWideEndCol());
io.writeInt4(!factory.getIsFiltered(_hasReturnType) ? _hasReturnType : 0);
io.writeInt4(!factory.getIsFiltered(_methodType) ? _methodType : 0);
if (_overrides != null) {
EdgeIterator<MethodDeclaration> it = getOverridesIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
{
byte boolValues = 0;
boolValues <<= 1;
if (isSynchronized)
boolValues |= 1;
boolValues <<= 1;
if (isNative)
boolValues |= 1;
boolValues <<= 1;
if (isDefault)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeUByte1(methodKind.ordinal());
io.writeInt4(((Range)synchronizedPosition).getPathKey());
io.writeInt4(((Range)synchronizedPosition).getLine());
io.writeInt4(((Range)synchronizedPosition).getCol());
io.writeInt4(((Range)synchronizedPosition).getEndLine());
io.writeInt4(((Range)synchronizedPosition).getEndCol());
io.writeInt4(((Range)synchronizedPosition).getWideLine());
io.writeInt4(((Range)synchronizedPosition).getWideCol());
io.writeInt4(((Range)synchronizedPosition).getWideEndLine());
io.writeInt4(((Range)synchronizedPosition).getWideEndCol());
io.writeInt4(((Range)nativePosition).getPathKey());
io.writeInt4(((Range)nativePosition).getLine());
io.writeInt4(((Range)nativePosition).getCol());
io.writeInt4(((Range)nativePosition).getEndLine());
io.writeInt4(((Range)nativePosition).getEndCol());
io.writeInt4(((Range)nativePosition).getWideLine());
io.writeInt4(((Range)nativePosition).getWideCol());
io.writeInt4(((Range)nativePosition).getWideEndLine());
io.writeInt4(((Range)nativePosition).getWideEndCol());
io.writeInt4(((Range)throwsPosition).getPathKey());
io.writeInt4(((Range)throwsPosition).getLine());
io.writeInt4(((Range)throwsPosition).getCol());
io.writeInt4(((Range)throwsPosition).getEndLine());
io.writeInt4(((Range)throwsPosition).getEndCol());
io.writeInt4(((Range)throwsPosition).getWideLine());
io.writeInt4(((Range)throwsPosition).getWideCol());
io.writeInt4(((Range)throwsPosition).getWideEndLine());
io.writeInt4(((Range)throwsPosition).getWideEndCol());
io.writeInt4(!factory.getIsFiltered(_hasBody) ? _hasBody : 0);
if (_hasParameters != null) {
EdgeIterator<Parameter> it = getParametersIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
if (_hasThrownExceptions != null) {
EdgeIterator<TypeExpression> it = getThrownExceptionsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
if (_hasTypeParameters != null) {
EdgeIterator<TypeParameter> it = getTypeParametersIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
}
// ---------- Load ----------
@Override
public void load(IO io) {
int _id;
_id = io.readInt4();
if (_id != 0) {
_comments = new EdgeList<Comment>(factory);
while (_id != 0) {
_comments.add(_id);
_id = io.readInt4();
}
}
_id = io.readInt4();
if (_id != 0) {
_hasAnnotations = new EdgeList<Annotation>(factory);
while (_id != 0) {
_hasAnnotations.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
((Range)position).setPathKey(io.readInt4());
((Range)position).setLine(io.readInt4());
((Range)position).setCol(io.readInt4());
((Range)position).setEndLine(io.readInt4());
((Range)position).setEndCol(io.readInt4());
((Range)position).setWideLine(io.readInt4());
((Range)position).setWideCol(io.readInt4());
((Range)position).setWideEndLine(io.readInt4());
((Range)position).setWideEndCol(io.readInt4());
{
byte boolValues = io.readByte1();
isToolGenerated = (boolValues & 1) != 0;
boolValues >>>= 1;
isCompilerGenerated = (boolValues & 1) != 0;
boolValues >>>= 1;
}
name = io.readInt4();
((Range)namePosition).setPathKey(io.readInt4());
((Range)namePosition).setLine(io.readInt4());
((Range)namePosition).setCol(io.readInt4());
((Range)namePosition).setEndLine(io.readInt4());
((Range)namePosition).setEndCol(io.readInt4());
((Range)namePosition).setWideLine(io.readInt4());
((Range)namePosition).setWideCol(io.readInt4());
((Range)namePosition).setWideEndLine(io.readInt4());
((Range)namePosition).setWideEndCol(io.readInt4());
{
byte boolValues = io.readByte1();
isFinal = (boolValues & 1) != 0;
boolValues >>>= 1;
isStatic = (boolValues & 1) != 0;
boolValues >>>= 1;
}
accessibility = AccessibilityKind.values()[io.readUByte1()];
((Range)accessibilityPosition).setPathKey(io.readInt4());
((Range)accessibilityPosition).setLine(io.readInt4());
((Range)accessibilityPosition).setCol(io.readInt4());
((Range)accessibilityPosition).setEndLine(io.readInt4());
((Range)accessibilityPosition).setEndCol(io.readInt4());
((Range)accessibilityPosition).setWideLine(io.readInt4());
((Range)accessibilityPosition).setWideCol(io.readInt4());
((Range)accessibilityPosition).setWideEndLine(io.readInt4());
((Range)accessibilityPosition).setWideEndCol(io.readInt4());
((Range)staticPosition).setPathKey(io.readInt4());
((Range)staticPosition).setLine(io.readInt4());
((Range)staticPosition).setCol(io.readInt4());
((Range)staticPosition).setEndLine(io.readInt4());
((Range)staticPosition).setEndCol(io.readInt4());
((Range)staticPosition).setWideLine(io.readInt4());
((Range)staticPosition).setWideCol(io.readInt4());
((Range)staticPosition).setWideEndLine(io.readInt4());
((Range)staticPosition).setWideEndCol(io.readInt4());
((Range)finalPosition).setPathKey(io.readInt4());
((Range)finalPosition).setLine(io.readInt4());
((Range)finalPosition).setCol(io.readInt4());
((Range)finalPosition).setEndLine(io.readInt4());
((Range)finalPosition).setEndCol(io.readInt4());
((Range)finalPosition).setWideLine(io.readInt4());
((Range)finalPosition).setWideCol(io.readInt4());
((Range)finalPosition).setWideEndLine(io.readInt4());
((Range)finalPosition).setWideEndCol(io.readInt4());
{
byte boolValues = io.readByte1();
isStrictfp = (boolValues & 1) != 0;
boolValues >>>= 1;
isAbstract = (boolValues & 1) != 0;
boolValues >>>= 1;
}
lloc = io.readInt4();
((Range)abstractPosition).setPathKey(io.readInt4());
((Range)abstractPosition).setLine(io.readInt4());
((Range)abstractPosition).setCol(io.readInt4());
((Range)abstractPosition).setEndLine(io.readInt4());
((Range)abstractPosition).setEndCol(io.readInt4());
((Range)abstractPosition).setWideLine(io.readInt4());
((Range)abstractPosition).setWideCol(io.readInt4());
((Range)abstractPosition).setWideEndLine(io.readInt4());
((Range)abstractPosition).setWideEndCol(io.readInt4());
((Range)strictfpPosition).setPathKey(io.readInt4());
((Range)strictfpPosition).setLine(io.readInt4());
((Range)strictfpPosition).setCol(io.readInt4());
((Range)strictfpPosition).setEndLine(io.readInt4());
((Range)strictfpPosition).setEndCol(io.readInt4());
((Range)strictfpPosition).setWideLine(io.readInt4());
((Range)strictfpPosition).setWideCol(io.readInt4());
((Range)strictfpPosition).setWideEndLine(io.readInt4());
((Range)strictfpPosition).setWideEndCol(io.readInt4());
((Range)parametersStartPosition).setPathKey(io.readInt4());
((Range)parametersStartPosition).setLine(io.readInt4());
((Range)parametersStartPosition).setCol(io.readInt4());
((Range)parametersStartPosition).setEndLine(io.readInt4());
((Range)parametersStartPosition).setEndCol(io.readInt4());
((Range)parametersStartPosition).setWideLine(io.readInt4());
((Range)parametersStartPosition).setWideCol(io.readInt4());
((Range)parametersStartPosition).setWideEndLine(io.readInt4());
((Range)parametersStartPosition).setWideEndCol(io.readInt4());
((Range)parametersEndPosition).setPathKey(io.readInt4());
((Range)parametersEndPosition).setLine(io.readInt4());
((Range)parametersEndPosition).setCol(io.readInt4());
((Range)parametersEndPosition).setEndLine(io.readInt4());
((Range)parametersEndPosition).setEndCol(io.readInt4());
((Range)parametersEndPosition).setWideLine(io.readInt4());
((Range)parametersEndPosition).setWideCol(io.readInt4());
((Range)parametersEndPosition).setWideEndLine(io.readInt4());
((Range)parametersEndPosition).setWideEndCol(io.readInt4());
_hasReturnType = io.readInt4();
if (_hasReturnType != 0)
setParentEdge(_hasReturnType);
_methodType = io.readInt4();
_id = io.readInt4();
if (_id != 0) {
_overrides = new EdgeList<MethodDeclaration>(factory);
while (_id != 0) {
_overrides.add(_id);
_id = io.readInt4();
}
}
{
byte boolValues = io.readByte1();
isDefault = (boolValues & 1) != 0;
boolValues >>>= 1;
isNative = (boolValues & 1) != 0;
boolValues >>>= 1;
isSynchronized = (boolValues & 1) != 0;
boolValues >>>= 1;
}
methodKind = MethodKind.values()[io.readUByte1()];
((Range)synchronizedPosition).setPathKey(io.readInt4());
((Range)synchronizedPosition).setLine(io.readInt4());
((Range)synchronizedPosition).setCol(io.readInt4());
((Range)synchronizedPosition).setEndLine(io.readInt4());
((Range)synchronizedPosition).setEndCol(io.readInt4());
((Range)synchronizedPosition).setWideLine(io.readInt4());
((Range)synchronizedPosition).setWideCol(io.readInt4());
((Range)synchronizedPosition).setWideEndLine(io.readInt4());
((Range)synchronizedPosition).setWideEndCol(io.readInt4());
((Range)nativePosition).setPathKey(io.readInt4());
((Range)nativePosition).setLine(io.readInt4());
((Range)nativePosition).setCol(io.readInt4());
((Range)nativePosition).setEndLine(io.readInt4());
((Range)nativePosition).setEndCol(io.readInt4());
((Range)nativePosition).setWideLine(io.readInt4());
((Range)nativePosition).setWideCol(io.readInt4());
((Range)nativePosition).setWideEndLine(io.readInt4());
((Range)nativePosition).setWideEndCol(io.readInt4());
((Range)throwsPosition).setPathKey(io.readInt4());
((Range)throwsPosition).setLine(io.readInt4());
((Range)throwsPosition).setCol(io.readInt4());
((Range)throwsPosition).setEndLine(io.readInt4());
((Range)throwsPosition).setEndCol(io.readInt4());
((Range)throwsPosition).setWideLine(io.readInt4());
((Range)throwsPosition).setWideCol(io.readInt4());
((Range)throwsPosition).setWideEndLine(io.readInt4());
((Range)throwsPosition).setWideEndCol(io.readInt4());
_hasBody = io.readInt4();
if (_hasBody != 0)
setParentEdge(_hasBody);
_id = io.readInt4();
if (_id != 0) {
_hasParameters = new EdgeList<Parameter>(factory);
while (_id != 0) {
_hasParameters.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
_id = io.readInt4();
if (_id != 0) {
_hasThrownExceptions = new EdgeList<TypeExpression>(factory);
while (_id != 0) {
_hasThrownExceptions.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
_id = io.readInt4();
if (_id != 0) {
_hasTypeParameters = new EdgeList<TypeParameter>(factory);
while (_id != 0) {
_hasTypeParameters.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
}
}
| 37,628 | 28.443662 | 135 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/ClassGenericImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.base.Base;
import columbus.java.asg.expr.TypeExpression;
import columbus.java.asg.base.Positioned;
import columbus.java.asg.base.Comment;
import columbus.java.asg.expr.Annotation;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.struc.ClassGeneric ClassGeneric} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class ClassGenericImpl extends BaseImpl implements ClassGeneric {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(ClassGenericImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
protected EdgeList<Comment> _comments;
protected EdgeList<Annotation> _hasAnnotations;
protected Object position;
protected boolean isCompilerGenerated;
protected boolean isToolGenerated;
protected int name;
protected Object namePosition;
protected AccessibilityKind accessibility = AccessibilityKind.ackNone;
protected Object accessibilityPosition;
protected boolean isStatic;
protected Object staticPosition;
protected boolean isFinal;
protected Object finalPosition;
protected EdgeList<Member> _hasMembers;
protected int lloc;
protected Object typeNamePosition;
protected boolean isAbstract;
protected Object abstractPosition;
protected boolean isStrictfp;
protected Object strictfpPosition;
protected int binaryName;
protected Object extendsPosition;
protected Object implementsPosition;
protected Object bodyStartPosition;
protected int _hasSuperClass;
protected EdgeList<TypeExpression> _hasSuperInterfaces;
protected EdgeList<Positioned> _hasOthers;
protected int _isInCompilationUnit;
protected int _isInModule;
protected EdgeList<TypeParameter> _hasTypeParameters;
public ClassGenericImpl(int id, Factory factory) {
super(id, factory);
position = new Range(factory.getStringTable());
namePosition = new Range(factory.getStringTable());
accessibilityPosition = new Range(factory.getStringTable());
staticPosition = new Range(factory.getStringTable());
finalPosition = new Range(factory.getStringTable());
typeNamePosition = new Range(factory.getStringTable());
abstractPosition = new Range(factory.getStringTable());
strictfpPosition = new Range(factory.getStringTable());
extendsPosition = new Range(factory.getStringTable());
implementsPosition = new Range(factory.getStringTable());
bodyStartPosition = new Range(factory.getStringTable());
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkClassGeneric;
}
@Override
public Range getPosition() {
return (Range)position;
}
@Override
public void setPosition(Range _position) {
if (factory.getStringTable() == _position.getStringTable())
position = _position;
else
position = new Range(factory.getStringTable(), _position);
}
@Override
public boolean getIsCompilerGenerated() {
return isCompilerGenerated;
}
@Override
public boolean getIsToolGenerated() {
return isToolGenerated;
}
@Override
public void setIsCompilerGenerated(boolean _isCompilerGenerated) {
isCompilerGenerated = _isCompilerGenerated;
}
@Override
public void setIsToolGenerated(boolean _isToolGenerated) {
isToolGenerated = _isToolGenerated;
}
@Override
public String getName() {
return factory.getStringTable().get(name);
}
@Override
public int getNameKey() {
return name;
}
@Override
public Range getNamePosition() {
return (Range)namePosition;
}
@Override
public void setName(String _name) {
name = factory.getStringTable().set(_name);
}
@Override
public void setNamePosition(Range _namePosition) {
if (factory.getStringTable() == _namePosition.getStringTable())
namePosition = _namePosition;
else
namePosition = new Range(factory.getStringTable(), _namePosition);
}
@Override
public AccessibilityKind getAccessibility() {
return accessibility;
}
@Override
public Range getAccessibilityPosition() {
return (Range)accessibilityPosition;
}
@Override
public boolean getIsStatic() {
return isStatic;
}
@Override
public Range getStaticPosition() {
return (Range)staticPosition;
}
@Override
public boolean getIsFinal() {
return isFinal;
}
@Override
public Range getFinalPosition() {
return (Range)finalPosition;
}
@Override
public void setAccessibility(AccessibilityKind _accessibility) {
accessibility = _accessibility;
}
@Override
public void setAccessibilityPosition(Range _accessibilityPosition) {
if (factory.getStringTable() == _accessibilityPosition.getStringTable())
accessibilityPosition = _accessibilityPosition;
else
accessibilityPosition = new Range(factory.getStringTable(), _accessibilityPosition);
}
@Override
public void setIsStatic(boolean _isStatic) {
isStatic = _isStatic;
}
@Override
public void setStaticPosition(Range _staticPosition) {
if (factory.getStringTable() == _staticPosition.getStringTable())
staticPosition = _staticPosition;
else
staticPosition = new Range(factory.getStringTable(), _staticPosition);
}
@Override
public void setIsFinal(boolean _isFinal) {
isFinal = _isFinal;
}
@Override
public void setFinalPosition(Range _finalPosition) {
if (factory.getStringTable() == _finalPosition.getStringTable())
finalPosition = _finalPosition;
else
finalPosition = new Range(factory.getStringTable(), _finalPosition);
}
@Override
public int getLloc() {
return lloc;
}
@Override
public Range getTypeNamePosition() {
return (Range)typeNamePosition;
}
@Override
public boolean getIsAbstract() {
return isAbstract;
}
@Override
public Range getAbstractPosition() {
return (Range)abstractPosition;
}
@Override
public boolean getIsStrictfp() {
return isStrictfp;
}
@Override
public Range getStrictfpPosition() {
return (Range)strictfpPosition;
}
@Override
public String getBinaryName() {
return factory.getStringTable().get(binaryName);
}
@Override
public int getBinaryNameKey() {
return binaryName;
}
@Override
public Range getExtendsPosition() {
return (Range)extendsPosition;
}
@Override
public Range getImplementsPosition() {
return (Range)implementsPosition;
}
@Override
public Range getBodyStartPosition() {
return (Range)bodyStartPosition;
}
@Override
public void setLloc(int _lloc) {
lloc = _lloc;
}
@Override
public void setTypeNamePosition(Range _typeNamePosition) {
if (factory.getStringTable() == _typeNamePosition.getStringTable())
typeNamePosition = _typeNamePosition;
else
typeNamePosition = new Range(factory.getStringTable(), _typeNamePosition);
}
@Override
public void setIsAbstract(boolean _isAbstract) {
isAbstract = _isAbstract;
}
@Override
public void setAbstractPosition(Range _abstractPosition) {
if (factory.getStringTable() == _abstractPosition.getStringTable())
abstractPosition = _abstractPosition;
else
abstractPosition = new Range(factory.getStringTable(), _abstractPosition);
}
@Override
public void setIsStrictfp(boolean _isStrictfp) {
isStrictfp = _isStrictfp;
}
@Override
public void setStrictfpPosition(Range _strictfpPosition) {
if (factory.getStringTable() == _strictfpPosition.getStringTable())
strictfpPosition = _strictfpPosition;
else
strictfpPosition = new Range(factory.getStringTable(), _strictfpPosition);
}
@Override
public void setBinaryName(String _binaryName) {
binaryName = factory.getStringTable().set(_binaryName);
}
@Override
public void setExtendsPosition(Range _extendsPosition) {
if (factory.getStringTable() == _extendsPosition.getStringTable())
extendsPosition = _extendsPosition;
else
extendsPosition = new Range(factory.getStringTable(), _extendsPosition);
}
@Override
public void setImplementsPosition(Range _implementsPosition) {
if (factory.getStringTable() == _implementsPosition.getStringTable())
implementsPosition = _implementsPosition;
else
implementsPosition = new Range(factory.getStringTable(), _implementsPosition);
}
@Override
public void setBodyStartPosition(Range _bodyStartPosition) {
if (factory.getStringTable() == _bodyStartPosition.getStringTable())
bodyStartPosition = _bodyStartPosition;
else
bodyStartPosition = new Range(factory.getStringTable(), _bodyStartPosition);
}
@Override
public EdgeIterator<Comment> getCommentsIterator() {
if (_comments == null)
return EdgeList.<Comment>emptyList().iterator();
else
return _comments.iterator();
}
@Override
public boolean getCommentsIsEmpty() {
if (_comments == null)
return true;
else
return _comments.isEmpty();
}
@Override
public int getCommentsSize() {
if (_comments == null)
return 0;
else
return _comments.size();
}
@Override
public void addComments(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkComment)) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void addComments(Comment _node) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_node);
}
@Override
public EdgeIterator<Annotation> getAnnotationsIterator() {
if (_hasAnnotations == null)
return EdgeList.<Annotation>emptyList().iterator();
else
return _hasAnnotations.iterator();
}
@Override
public boolean getAnnotationsIsEmpty() {
if (_hasAnnotations == null)
return true;
else
return _hasAnnotations.isEmpty();
}
@Override
public int getAnnotationsSize() {
if (_hasAnnotations == null)
return 0;
else
return _hasAnnotations.size();
}
@Override
public void addAnnotations(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkAnnotation)) {
if (_hasAnnotations == null)
_hasAnnotations = new EdgeList<Annotation>(factory);
_hasAnnotations.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addAnnotations(Annotation _node) {
if (_hasAnnotations == null)
_hasAnnotations = new EdgeList<Annotation>(factory);
_hasAnnotations.add(_node);
setParentEdge(_node);
}
@Override
public EdgeIterator<Member> getMembersIterator() {
if (_hasMembers == null)
return EdgeList.<Member>emptyList().iterator();
else
return _hasMembers.iterator();
}
@Override
public boolean getMembersIsEmpty() {
if (_hasMembers == null)
return true;
else
return _hasMembers.isEmpty();
}
@Override
public int getMembersSize() {
if (_hasMembers == null)
return 0;
else
return _hasMembers.size();
}
@Override
public void addMembers(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkMember)) {
if (_hasMembers == null)
_hasMembers = new EdgeList<Member>(factory);
_hasMembers.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addMembers(Member _node) {
if (_hasMembers == null)
_hasMembers = new EdgeList<Member>(factory);
_hasMembers.add(_node);
setParentEdge(_node);
}
@Override
public TypeExpression getSuperClass() {
if (_hasSuperClass == 0)
return null;
if (factory.getIsFiltered(_hasSuperClass))
return null;
return (TypeExpression)factory.getRef(_hasSuperClass);
}
@Override
public EdgeIterator<TypeExpression> getSuperInterfacesIterator() {
if (_hasSuperInterfaces == null)
return EdgeList.<TypeExpression>emptyList().iterator();
else
return _hasSuperInterfaces.iterator();
}
@Override
public boolean getSuperInterfacesIsEmpty() {
if (_hasSuperInterfaces == null)
return true;
else
return _hasSuperInterfaces.isEmpty();
}
@Override
public int getSuperInterfacesSize() {
if (_hasSuperInterfaces == null)
return 0;
else
return _hasSuperInterfaces.size();
}
@Override
public EdgeIterator<Positioned> getOthersIterator() {
if (_hasOthers == null)
return EdgeList.<Positioned>emptyList().iterator();
else
return _hasOthers.iterator();
}
@Override
public boolean getOthersIsEmpty() {
if (_hasOthers == null)
return true;
else
return _hasOthers.isEmpty();
}
@Override
public int getOthersSize() {
if (_hasOthers == null)
return 0;
else
return _hasOthers.size();
}
@Override
public CompilationUnit getIsInCompilationUnit() {
if (_isInCompilationUnit == 0)
return null;
if (factory.getIsFiltered(_isInCompilationUnit))
return null;
return (CompilationUnit)factory.getRef(_isInCompilationUnit);
}
@Override
public Module getIsInModule() {
if (_isInModule == 0)
return null;
if (factory.getIsFiltered(_isInModule))
return null;
return (Module)factory.getRef(_isInModule);
}
@Override
public void setSuperClass(int _id) {
if (_hasSuperClass != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasSuperClass" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkTypeExpression)) {
_hasSuperClass = _id;
setParentEdge(_hasSuperClass);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setSuperClass(TypeExpression _node) {
if (_hasSuperClass != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasSuperClass" ));
_hasSuperClass = _node.getId();
setParentEdge(_hasSuperClass);
}
@Override
public void addSuperInterfaces(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkTypeExpression)) {
if (_hasSuperInterfaces == null)
_hasSuperInterfaces = new EdgeList<TypeExpression>(factory);
_hasSuperInterfaces.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addSuperInterfaces(TypeExpression _node) {
if (_hasSuperInterfaces == null)
_hasSuperInterfaces = new EdgeList<TypeExpression>(factory);
_hasSuperInterfaces.add(_node);
setParentEdge(_node);
}
@Override
public void addOthers(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkPositioned)) {
if (_hasOthers == null)
_hasOthers = new EdgeList<Positioned>(factory);
_hasOthers.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addOthers(Positioned _node) {
if (_hasOthers == null)
_hasOthers = new EdgeList<Positioned>(factory);
_hasOthers.add(_node);
setParentEdge(_node);
}
@Override
public void setIsInCompilationUnit(int _id) {
if (_isInCompilationUnit != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","isInCompilationUnit" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (_node.getNodeKind() == NodeKind.ndkCompilationUnit) {
_isInCompilationUnit = _id;
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setIsInCompilationUnit(CompilationUnit _node) {
if (_isInCompilationUnit != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","isInCompilationUnit" ));
_isInCompilationUnit = _node.getId();
}
@Override
public void setIsInModule(int _id) {
if (_isInModule != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","isInModule" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (_node.getNodeKind() == NodeKind.ndkModule) {
_isInModule = _id;
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setIsInModule(Module _node) {
if (_isInModule != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","isInModule" ));
_isInModule = _node.getId();
}
@Override
public EdgeIterator<TypeParameter> getTypeParametersIterator() {
if (_hasTypeParameters == null)
return EdgeList.<TypeParameter>emptyList().iterator();
else
return _hasTypeParameters.iterator();
}
@Override
public boolean getTypeParametersIsEmpty() {
if (_hasTypeParameters == null)
return true;
else
return _hasTypeParameters.isEmpty();
}
@Override
public int getTypeParametersSize() {
if (_hasTypeParameters == null)
return 0;
else
return _hasTypeParameters.size();
}
@Override
public void addTypeParameters(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (_node.getNodeKind() == NodeKind.ndkTypeParameter) {
if (_hasTypeParameters == null)
_hasTypeParameters = new EdgeList<TypeParameter>(factory);
_hasTypeParameters.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addTypeParameters(TypeParameter _node) {
if (_hasTypeParameters == null)
_hasTypeParameters = new EdgeList<TypeParameter>(factory);
_hasTypeParameters.add(_node);
setParentEdge(_node);
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
if (_comments != null) {
EdgeIterator<Comment> it = getCommentsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
if (_hasAnnotations != null) {
EdgeIterator<Annotation> it = getAnnotationsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
io.writeInt4(((Range)position).getPathKey());
io.writeInt4(((Range)position).getLine());
io.writeInt4(((Range)position).getCol());
io.writeInt4(((Range)position).getEndLine());
io.writeInt4(((Range)position).getEndCol());
io.writeInt4(((Range)position).getWideLine());
io.writeInt4(((Range)position).getWideCol());
io.writeInt4(((Range)position).getWideEndLine());
io.writeInt4(((Range)position).getWideEndCol());
{
byte boolValues = 0;
boolValues <<= 1;
if (isCompilerGenerated)
boolValues |= 1;
boolValues <<= 1;
if (isToolGenerated)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeInt4(name);
io.writeInt4(((Range)namePosition).getPathKey());
io.writeInt4(((Range)namePosition).getLine());
io.writeInt4(((Range)namePosition).getCol());
io.writeInt4(((Range)namePosition).getEndLine());
io.writeInt4(((Range)namePosition).getEndCol());
io.writeInt4(((Range)namePosition).getWideLine());
io.writeInt4(((Range)namePosition).getWideCol());
io.writeInt4(((Range)namePosition).getWideEndLine());
io.writeInt4(((Range)namePosition).getWideEndCol());
{
byte boolValues = 0;
boolValues <<= 1;
if (isStatic)
boolValues |= 1;
boolValues <<= 1;
if (isFinal)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeUByte1(accessibility.ordinal());
io.writeInt4(((Range)accessibilityPosition).getPathKey());
io.writeInt4(((Range)accessibilityPosition).getLine());
io.writeInt4(((Range)accessibilityPosition).getCol());
io.writeInt4(((Range)accessibilityPosition).getEndLine());
io.writeInt4(((Range)accessibilityPosition).getEndCol());
io.writeInt4(((Range)accessibilityPosition).getWideLine());
io.writeInt4(((Range)accessibilityPosition).getWideCol());
io.writeInt4(((Range)accessibilityPosition).getWideEndLine());
io.writeInt4(((Range)accessibilityPosition).getWideEndCol());
io.writeInt4(((Range)staticPosition).getPathKey());
io.writeInt4(((Range)staticPosition).getLine());
io.writeInt4(((Range)staticPosition).getCol());
io.writeInt4(((Range)staticPosition).getEndLine());
io.writeInt4(((Range)staticPosition).getEndCol());
io.writeInt4(((Range)staticPosition).getWideLine());
io.writeInt4(((Range)staticPosition).getWideCol());
io.writeInt4(((Range)staticPosition).getWideEndLine());
io.writeInt4(((Range)staticPosition).getWideEndCol());
io.writeInt4(((Range)finalPosition).getPathKey());
io.writeInt4(((Range)finalPosition).getLine());
io.writeInt4(((Range)finalPosition).getCol());
io.writeInt4(((Range)finalPosition).getEndLine());
io.writeInt4(((Range)finalPosition).getEndCol());
io.writeInt4(((Range)finalPosition).getWideLine());
io.writeInt4(((Range)finalPosition).getWideCol());
io.writeInt4(((Range)finalPosition).getWideEndLine());
io.writeInt4(((Range)finalPosition).getWideEndCol());
if (_hasMembers != null) {
EdgeIterator<Member> it = getMembersIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
{
byte boolValues = 0;
boolValues <<= 1;
if (isAbstract)
boolValues |= 1;
boolValues <<= 1;
if (isStrictfp)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeInt4(lloc);
io.writeInt4(((Range)typeNamePosition).getPathKey());
io.writeInt4(((Range)typeNamePosition).getLine());
io.writeInt4(((Range)typeNamePosition).getCol());
io.writeInt4(((Range)typeNamePosition).getEndLine());
io.writeInt4(((Range)typeNamePosition).getEndCol());
io.writeInt4(((Range)typeNamePosition).getWideLine());
io.writeInt4(((Range)typeNamePosition).getWideCol());
io.writeInt4(((Range)typeNamePosition).getWideEndLine());
io.writeInt4(((Range)typeNamePosition).getWideEndCol());
io.writeInt4(((Range)abstractPosition).getPathKey());
io.writeInt4(((Range)abstractPosition).getLine());
io.writeInt4(((Range)abstractPosition).getCol());
io.writeInt4(((Range)abstractPosition).getEndLine());
io.writeInt4(((Range)abstractPosition).getEndCol());
io.writeInt4(((Range)abstractPosition).getWideLine());
io.writeInt4(((Range)abstractPosition).getWideCol());
io.writeInt4(((Range)abstractPosition).getWideEndLine());
io.writeInt4(((Range)abstractPosition).getWideEndCol());
io.writeInt4(((Range)strictfpPosition).getPathKey());
io.writeInt4(((Range)strictfpPosition).getLine());
io.writeInt4(((Range)strictfpPosition).getCol());
io.writeInt4(((Range)strictfpPosition).getEndLine());
io.writeInt4(((Range)strictfpPosition).getEndCol());
io.writeInt4(((Range)strictfpPosition).getWideLine());
io.writeInt4(((Range)strictfpPosition).getWideCol());
io.writeInt4(((Range)strictfpPosition).getWideEndLine());
io.writeInt4(((Range)strictfpPosition).getWideEndCol());
io.writeInt4(binaryName);
io.writeInt4(((Range)extendsPosition).getPathKey());
io.writeInt4(((Range)extendsPosition).getLine());
io.writeInt4(((Range)extendsPosition).getCol());
io.writeInt4(((Range)extendsPosition).getEndLine());
io.writeInt4(((Range)extendsPosition).getEndCol());
io.writeInt4(((Range)extendsPosition).getWideLine());
io.writeInt4(((Range)extendsPosition).getWideCol());
io.writeInt4(((Range)extendsPosition).getWideEndLine());
io.writeInt4(((Range)extendsPosition).getWideEndCol());
io.writeInt4(((Range)implementsPosition).getPathKey());
io.writeInt4(((Range)implementsPosition).getLine());
io.writeInt4(((Range)implementsPosition).getCol());
io.writeInt4(((Range)implementsPosition).getEndLine());
io.writeInt4(((Range)implementsPosition).getEndCol());
io.writeInt4(((Range)implementsPosition).getWideLine());
io.writeInt4(((Range)implementsPosition).getWideCol());
io.writeInt4(((Range)implementsPosition).getWideEndLine());
io.writeInt4(((Range)implementsPosition).getWideEndCol());
io.writeInt4(((Range)bodyStartPosition).getPathKey());
io.writeInt4(((Range)bodyStartPosition).getLine());
io.writeInt4(((Range)bodyStartPosition).getCol());
io.writeInt4(((Range)bodyStartPosition).getEndLine());
io.writeInt4(((Range)bodyStartPosition).getEndCol());
io.writeInt4(((Range)bodyStartPosition).getWideLine());
io.writeInt4(((Range)bodyStartPosition).getWideCol());
io.writeInt4(((Range)bodyStartPosition).getWideEndLine());
io.writeInt4(((Range)bodyStartPosition).getWideEndCol());
io.writeInt4(!factory.getIsFiltered(_hasSuperClass) ? _hasSuperClass : 0);
io.writeInt4(!factory.getIsFiltered(_isInCompilationUnit) ? _isInCompilationUnit : 0);
io.writeInt4(!factory.getIsFiltered(_isInModule) ? _isInModule : 0);
if (_hasSuperInterfaces != null) {
EdgeIterator<TypeExpression> it = getSuperInterfacesIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
if (_hasOthers != null) {
EdgeIterator<Positioned> it = getOthersIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
if (_hasTypeParameters != null) {
EdgeIterator<TypeParameter> it = getTypeParametersIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
}
// ---------- Load ----------
@Override
public void load(IO io) {
int _id;
_id = io.readInt4();
if (_id != 0) {
_comments = new EdgeList<Comment>(factory);
while (_id != 0) {
_comments.add(_id);
_id = io.readInt4();
}
}
_id = io.readInt4();
if (_id != 0) {
_hasAnnotations = new EdgeList<Annotation>(factory);
while (_id != 0) {
_hasAnnotations.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
((Range)position).setPathKey(io.readInt4());
((Range)position).setLine(io.readInt4());
((Range)position).setCol(io.readInt4());
((Range)position).setEndLine(io.readInt4());
((Range)position).setEndCol(io.readInt4());
((Range)position).setWideLine(io.readInt4());
((Range)position).setWideCol(io.readInt4());
((Range)position).setWideEndLine(io.readInt4());
((Range)position).setWideEndCol(io.readInt4());
{
byte boolValues = io.readByte1();
isToolGenerated = (boolValues & 1) != 0;
boolValues >>>= 1;
isCompilerGenerated = (boolValues & 1) != 0;
boolValues >>>= 1;
}
name = io.readInt4();
((Range)namePosition).setPathKey(io.readInt4());
((Range)namePosition).setLine(io.readInt4());
((Range)namePosition).setCol(io.readInt4());
((Range)namePosition).setEndLine(io.readInt4());
((Range)namePosition).setEndCol(io.readInt4());
((Range)namePosition).setWideLine(io.readInt4());
((Range)namePosition).setWideCol(io.readInt4());
((Range)namePosition).setWideEndLine(io.readInt4());
((Range)namePosition).setWideEndCol(io.readInt4());
{
byte boolValues = io.readByte1();
isFinal = (boolValues & 1) != 0;
boolValues >>>= 1;
isStatic = (boolValues & 1) != 0;
boolValues >>>= 1;
}
accessibility = AccessibilityKind.values()[io.readUByte1()];
((Range)accessibilityPosition).setPathKey(io.readInt4());
((Range)accessibilityPosition).setLine(io.readInt4());
((Range)accessibilityPosition).setCol(io.readInt4());
((Range)accessibilityPosition).setEndLine(io.readInt4());
((Range)accessibilityPosition).setEndCol(io.readInt4());
((Range)accessibilityPosition).setWideLine(io.readInt4());
((Range)accessibilityPosition).setWideCol(io.readInt4());
((Range)accessibilityPosition).setWideEndLine(io.readInt4());
((Range)accessibilityPosition).setWideEndCol(io.readInt4());
((Range)staticPosition).setPathKey(io.readInt4());
((Range)staticPosition).setLine(io.readInt4());
((Range)staticPosition).setCol(io.readInt4());
((Range)staticPosition).setEndLine(io.readInt4());
((Range)staticPosition).setEndCol(io.readInt4());
((Range)staticPosition).setWideLine(io.readInt4());
((Range)staticPosition).setWideCol(io.readInt4());
((Range)staticPosition).setWideEndLine(io.readInt4());
((Range)staticPosition).setWideEndCol(io.readInt4());
((Range)finalPosition).setPathKey(io.readInt4());
((Range)finalPosition).setLine(io.readInt4());
((Range)finalPosition).setCol(io.readInt4());
((Range)finalPosition).setEndLine(io.readInt4());
((Range)finalPosition).setEndCol(io.readInt4());
((Range)finalPosition).setWideLine(io.readInt4());
((Range)finalPosition).setWideCol(io.readInt4());
((Range)finalPosition).setWideEndLine(io.readInt4());
((Range)finalPosition).setWideEndCol(io.readInt4());
_id = io.readInt4();
if (_id != 0) {
_hasMembers = new EdgeList<Member>(factory);
while (_id != 0) {
_hasMembers.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
{
byte boolValues = io.readByte1();
isStrictfp = (boolValues & 1) != 0;
boolValues >>>= 1;
isAbstract = (boolValues & 1) != 0;
boolValues >>>= 1;
}
lloc = io.readInt4();
((Range)typeNamePosition).setPathKey(io.readInt4());
((Range)typeNamePosition).setLine(io.readInt4());
((Range)typeNamePosition).setCol(io.readInt4());
((Range)typeNamePosition).setEndLine(io.readInt4());
((Range)typeNamePosition).setEndCol(io.readInt4());
((Range)typeNamePosition).setWideLine(io.readInt4());
((Range)typeNamePosition).setWideCol(io.readInt4());
((Range)typeNamePosition).setWideEndLine(io.readInt4());
((Range)typeNamePosition).setWideEndCol(io.readInt4());
((Range)abstractPosition).setPathKey(io.readInt4());
((Range)abstractPosition).setLine(io.readInt4());
((Range)abstractPosition).setCol(io.readInt4());
((Range)abstractPosition).setEndLine(io.readInt4());
((Range)abstractPosition).setEndCol(io.readInt4());
((Range)abstractPosition).setWideLine(io.readInt4());
((Range)abstractPosition).setWideCol(io.readInt4());
((Range)abstractPosition).setWideEndLine(io.readInt4());
((Range)abstractPosition).setWideEndCol(io.readInt4());
((Range)strictfpPosition).setPathKey(io.readInt4());
((Range)strictfpPosition).setLine(io.readInt4());
((Range)strictfpPosition).setCol(io.readInt4());
((Range)strictfpPosition).setEndLine(io.readInt4());
((Range)strictfpPosition).setEndCol(io.readInt4());
((Range)strictfpPosition).setWideLine(io.readInt4());
((Range)strictfpPosition).setWideCol(io.readInt4());
((Range)strictfpPosition).setWideEndLine(io.readInt4());
((Range)strictfpPosition).setWideEndCol(io.readInt4());
binaryName = io.readInt4();
((Range)extendsPosition).setPathKey(io.readInt4());
((Range)extendsPosition).setLine(io.readInt4());
((Range)extendsPosition).setCol(io.readInt4());
((Range)extendsPosition).setEndLine(io.readInt4());
((Range)extendsPosition).setEndCol(io.readInt4());
((Range)extendsPosition).setWideLine(io.readInt4());
((Range)extendsPosition).setWideCol(io.readInt4());
((Range)extendsPosition).setWideEndLine(io.readInt4());
((Range)extendsPosition).setWideEndCol(io.readInt4());
((Range)implementsPosition).setPathKey(io.readInt4());
((Range)implementsPosition).setLine(io.readInt4());
((Range)implementsPosition).setCol(io.readInt4());
((Range)implementsPosition).setEndLine(io.readInt4());
((Range)implementsPosition).setEndCol(io.readInt4());
((Range)implementsPosition).setWideLine(io.readInt4());
((Range)implementsPosition).setWideCol(io.readInt4());
((Range)implementsPosition).setWideEndLine(io.readInt4());
((Range)implementsPosition).setWideEndCol(io.readInt4());
((Range)bodyStartPosition).setPathKey(io.readInt4());
((Range)bodyStartPosition).setLine(io.readInt4());
((Range)bodyStartPosition).setCol(io.readInt4());
((Range)bodyStartPosition).setEndLine(io.readInt4());
((Range)bodyStartPosition).setEndCol(io.readInt4());
((Range)bodyStartPosition).setWideLine(io.readInt4());
((Range)bodyStartPosition).setWideCol(io.readInt4());
((Range)bodyStartPosition).setWideEndLine(io.readInt4());
((Range)bodyStartPosition).setWideEndCol(io.readInt4());
_hasSuperClass = io.readInt4();
if (_hasSuperClass != 0)
setParentEdge(_hasSuperClass);
_isInCompilationUnit = io.readInt4();
_isInModule = io.readInt4();
_id = io.readInt4();
if (_id != 0) {
_hasSuperInterfaces = new EdgeList<TypeExpression>(factory);
while (_id != 0) {
_hasSuperInterfaces.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
_id = io.readInt4();
if (_id != 0) {
_hasOthers = new EdgeList<Positioned>(factory);
while (_id != 0) {
_hasOthers.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
_id = io.readInt4();
if (_id != 0) {
_hasTypeParameters = new EdgeList<TypeParameter>(factory);
while (_id != 0) {
_hasTypeParameters.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
}
}
| 34,845 | 28.356361 | 134 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/InterfaceImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.base.Base;
import columbus.java.asg.expr.TypeExpression;
import columbus.java.asg.base.Positioned;
import columbus.java.asg.base.Comment;
import columbus.java.asg.expr.Annotation;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.struc.Interface Interface} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class InterfaceImpl extends BaseImpl implements Interface {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(InterfaceImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
protected EdgeList<Comment> _comments;
protected EdgeList<Annotation> _hasAnnotations;
protected Object position;
protected boolean isCompilerGenerated;
protected boolean isToolGenerated;
protected int name;
protected Object namePosition;
protected AccessibilityKind accessibility = AccessibilityKind.ackNone;
protected Object accessibilityPosition;
protected boolean isStatic;
protected Object staticPosition;
protected boolean isFinal;
protected Object finalPosition;
protected EdgeList<Member> _hasMembers;
protected int lloc;
protected Object typeNamePosition;
protected boolean isAbstract;
protected Object abstractPosition;
protected boolean isStrictfp;
protected Object strictfpPosition;
protected int binaryName;
protected Object extendsPosition;
protected Object implementsPosition;
protected Object bodyStartPosition;
protected int _hasSuperClass;
protected EdgeList<TypeExpression> _hasSuperInterfaces;
protected EdgeList<Positioned> _hasOthers;
protected int _isInCompilationUnit;
protected int _isInModule;
public InterfaceImpl(int id, Factory factory) {
super(id, factory);
position = new Range(factory.getStringTable());
namePosition = new Range(factory.getStringTable());
accessibilityPosition = new Range(factory.getStringTable());
staticPosition = new Range(factory.getStringTable());
finalPosition = new Range(factory.getStringTable());
typeNamePosition = new Range(factory.getStringTable());
abstractPosition = new Range(factory.getStringTable());
strictfpPosition = new Range(factory.getStringTable());
extendsPosition = new Range(factory.getStringTable());
implementsPosition = new Range(factory.getStringTable());
bodyStartPosition = new Range(factory.getStringTable());
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkInterface;
}
@Override
public Range getPosition() {
return (Range)position;
}
@Override
public void setPosition(Range _position) {
if (factory.getStringTable() == _position.getStringTable())
position = _position;
else
position = new Range(factory.getStringTable(), _position);
}
@Override
public boolean getIsCompilerGenerated() {
return isCompilerGenerated;
}
@Override
public boolean getIsToolGenerated() {
return isToolGenerated;
}
@Override
public void setIsCompilerGenerated(boolean _isCompilerGenerated) {
isCompilerGenerated = _isCompilerGenerated;
}
@Override
public void setIsToolGenerated(boolean _isToolGenerated) {
isToolGenerated = _isToolGenerated;
}
@Override
public String getName() {
return factory.getStringTable().get(name);
}
@Override
public int getNameKey() {
return name;
}
@Override
public Range getNamePosition() {
return (Range)namePosition;
}
@Override
public void setName(String _name) {
name = factory.getStringTable().set(_name);
}
@Override
public void setNamePosition(Range _namePosition) {
if (factory.getStringTable() == _namePosition.getStringTable())
namePosition = _namePosition;
else
namePosition = new Range(factory.getStringTable(), _namePosition);
}
@Override
public AccessibilityKind getAccessibility() {
return accessibility;
}
@Override
public Range getAccessibilityPosition() {
return (Range)accessibilityPosition;
}
@Override
public boolean getIsStatic() {
return isStatic;
}
@Override
public Range getStaticPosition() {
return (Range)staticPosition;
}
@Override
public boolean getIsFinal() {
return isFinal;
}
@Override
public Range getFinalPosition() {
return (Range)finalPosition;
}
@Override
public void setAccessibility(AccessibilityKind _accessibility) {
accessibility = _accessibility;
}
@Override
public void setAccessibilityPosition(Range _accessibilityPosition) {
if (factory.getStringTable() == _accessibilityPosition.getStringTable())
accessibilityPosition = _accessibilityPosition;
else
accessibilityPosition = new Range(factory.getStringTable(), _accessibilityPosition);
}
@Override
public void setIsStatic(boolean _isStatic) {
isStatic = _isStatic;
}
@Override
public void setStaticPosition(Range _staticPosition) {
if (factory.getStringTable() == _staticPosition.getStringTable())
staticPosition = _staticPosition;
else
staticPosition = new Range(factory.getStringTable(), _staticPosition);
}
@Override
public void setIsFinal(boolean _isFinal) {
isFinal = _isFinal;
}
@Override
public void setFinalPosition(Range _finalPosition) {
if (factory.getStringTable() == _finalPosition.getStringTable())
finalPosition = _finalPosition;
else
finalPosition = new Range(factory.getStringTable(), _finalPosition);
}
@Override
public int getLloc() {
return lloc;
}
@Override
public Range getTypeNamePosition() {
return (Range)typeNamePosition;
}
@Override
public boolean getIsAbstract() {
return isAbstract;
}
@Override
public Range getAbstractPosition() {
return (Range)abstractPosition;
}
@Override
public boolean getIsStrictfp() {
return isStrictfp;
}
@Override
public Range getStrictfpPosition() {
return (Range)strictfpPosition;
}
@Override
public String getBinaryName() {
return factory.getStringTable().get(binaryName);
}
@Override
public int getBinaryNameKey() {
return binaryName;
}
@Override
public Range getExtendsPosition() {
return (Range)extendsPosition;
}
@Override
public Range getImplementsPosition() {
return (Range)implementsPosition;
}
@Override
public Range getBodyStartPosition() {
return (Range)bodyStartPosition;
}
@Override
public void setLloc(int _lloc) {
lloc = _lloc;
}
@Override
public void setTypeNamePosition(Range _typeNamePosition) {
if (factory.getStringTable() == _typeNamePosition.getStringTable())
typeNamePosition = _typeNamePosition;
else
typeNamePosition = new Range(factory.getStringTable(), _typeNamePosition);
}
@Override
public void setIsAbstract(boolean _isAbstract) {
isAbstract = _isAbstract;
}
@Override
public void setAbstractPosition(Range _abstractPosition) {
if (factory.getStringTable() == _abstractPosition.getStringTable())
abstractPosition = _abstractPosition;
else
abstractPosition = new Range(factory.getStringTable(), _abstractPosition);
}
@Override
public void setIsStrictfp(boolean _isStrictfp) {
isStrictfp = _isStrictfp;
}
@Override
public void setStrictfpPosition(Range _strictfpPosition) {
if (factory.getStringTable() == _strictfpPosition.getStringTable())
strictfpPosition = _strictfpPosition;
else
strictfpPosition = new Range(factory.getStringTable(), _strictfpPosition);
}
@Override
public void setBinaryName(String _binaryName) {
binaryName = factory.getStringTable().set(_binaryName);
}
@Override
public void setExtendsPosition(Range _extendsPosition) {
if (factory.getStringTable() == _extendsPosition.getStringTable())
extendsPosition = _extendsPosition;
else
extendsPosition = new Range(factory.getStringTable(), _extendsPosition);
}
@Override
public void setImplementsPosition(Range _implementsPosition) {
if (factory.getStringTable() == _implementsPosition.getStringTable())
implementsPosition = _implementsPosition;
else
implementsPosition = new Range(factory.getStringTable(), _implementsPosition);
}
@Override
public void setBodyStartPosition(Range _bodyStartPosition) {
if (factory.getStringTable() == _bodyStartPosition.getStringTable())
bodyStartPosition = _bodyStartPosition;
else
bodyStartPosition = new Range(factory.getStringTable(), _bodyStartPosition);
}
@Override
public EdgeIterator<Comment> getCommentsIterator() {
if (_comments == null)
return EdgeList.<Comment>emptyList().iterator();
else
return _comments.iterator();
}
@Override
public boolean getCommentsIsEmpty() {
if (_comments == null)
return true;
else
return _comments.isEmpty();
}
@Override
public int getCommentsSize() {
if (_comments == null)
return 0;
else
return _comments.size();
}
@Override
public void addComments(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkComment)) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void addComments(Comment _node) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_node);
}
@Override
public EdgeIterator<Annotation> getAnnotationsIterator() {
if (_hasAnnotations == null)
return EdgeList.<Annotation>emptyList().iterator();
else
return _hasAnnotations.iterator();
}
@Override
public boolean getAnnotationsIsEmpty() {
if (_hasAnnotations == null)
return true;
else
return _hasAnnotations.isEmpty();
}
@Override
public int getAnnotationsSize() {
if (_hasAnnotations == null)
return 0;
else
return _hasAnnotations.size();
}
@Override
public void addAnnotations(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkAnnotation)) {
if (_hasAnnotations == null)
_hasAnnotations = new EdgeList<Annotation>(factory);
_hasAnnotations.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addAnnotations(Annotation _node) {
if (_hasAnnotations == null)
_hasAnnotations = new EdgeList<Annotation>(factory);
_hasAnnotations.add(_node);
setParentEdge(_node);
}
@Override
public EdgeIterator<Member> getMembersIterator() {
if (_hasMembers == null)
return EdgeList.<Member>emptyList().iterator();
else
return _hasMembers.iterator();
}
@Override
public boolean getMembersIsEmpty() {
if (_hasMembers == null)
return true;
else
return _hasMembers.isEmpty();
}
@Override
public int getMembersSize() {
if (_hasMembers == null)
return 0;
else
return _hasMembers.size();
}
@Override
public void addMembers(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkMember)) {
if (_hasMembers == null)
_hasMembers = new EdgeList<Member>(factory);
_hasMembers.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addMembers(Member _node) {
if (_hasMembers == null)
_hasMembers = new EdgeList<Member>(factory);
_hasMembers.add(_node);
setParentEdge(_node);
}
@Override
public TypeExpression getSuperClass() {
if (_hasSuperClass == 0)
return null;
if (factory.getIsFiltered(_hasSuperClass))
return null;
return (TypeExpression)factory.getRef(_hasSuperClass);
}
@Override
public EdgeIterator<TypeExpression> getSuperInterfacesIterator() {
if (_hasSuperInterfaces == null)
return EdgeList.<TypeExpression>emptyList().iterator();
else
return _hasSuperInterfaces.iterator();
}
@Override
public boolean getSuperInterfacesIsEmpty() {
if (_hasSuperInterfaces == null)
return true;
else
return _hasSuperInterfaces.isEmpty();
}
@Override
public int getSuperInterfacesSize() {
if (_hasSuperInterfaces == null)
return 0;
else
return _hasSuperInterfaces.size();
}
@Override
public EdgeIterator<Positioned> getOthersIterator() {
if (_hasOthers == null)
return EdgeList.<Positioned>emptyList().iterator();
else
return _hasOthers.iterator();
}
@Override
public boolean getOthersIsEmpty() {
if (_hasOthers == null)
return true;
else
return _hasOthers.isEmpty();
}
@Override
public int getOthersSize() {
if (_hasOthers == null)
return 0;
else
return _hasOthers.size();
}
@Override
public CompilationUnit getIsInCompilationUnit() {
if (_isInCompilationUnit == 0)
return null;
if (factory.getIsFiltered(_isInCompilationUnit))
return null;
return (CompilationUnit)factory.getRef(_isInCompilationUnit);
}
@Override
public Module getIsInModule() {
if (_isInModule == 0)
return null;
if (factory.getIsFiltered(_isInModule))
return null;
return (Module)factory.getRef(_isInModule);
}
@Override
public void setSuperClass(int _id) {
if (_hasSuperClass != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasSuperClass" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkTypeExpression)) {
_hasSuperClass = _id;
setParentEdge(_hasSuperClass);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setSuperClass(TypeExpression _node) {
if (_hasSuperClass != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasSuperClass" ));
_hasSuperClass = _node.getId();
setParentEdge(_hasSuperClass);
}
@Override
public void addSuperInterfaces(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkTypeExpression)) {
if (_hasSuperInterfaces == null)
_hasSuperInterfaces = new EdgeList<TypeExpression>(factory);
_hasSuperInterfaces.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addSuperInterfaces(TypeExpression _node) {
if (_hasSuperInterfaces == null)
_hasSuperInterfaces = new EdgeList<TypeExpression>(factory);
_hasSuperInterfaces.add(_node);
setParentEdge(_node);
}
@Override
public void addOthers(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkPositioned)) {
if (_hasOthers == null)
_hasOthers = new EdgeList<Positioned>(factory);
_hasOthers.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addOthers(Positioned _node) {
if (_hasOthers == null)
_hasOthers = new EdgeList<Positioned>(factory);
_hasOthers.add(_node);
setParentEdge(_node);
}
@Override
public void setIsInCompilationUnit(int _id) {
if (_isInCompilationUnit != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","isInCompilationUnit" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (_node.getNodeKind() == NodeKind.ndkCompilationUnit) {
_isInCompilationUnit = _id;
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setIsInCompilationUnit(CompilationUnit _node) {
if (_isInCompilationUnit != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","isInCompilationUnit" ));
_isInCompilationUnit = _node.getId();
}
@Override
public void setIsInModule(int _id) {
if (_isInModule != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","isInModule" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (_node.getNodeKind() == NodeKind.ndkModule) {
_isInModule = _id;
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setIsInModule(Module _node) {
if (_isInModule != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","isInModule" ));
_isInModule = _node.getId();
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
if (_comments != null) {
EdgeIterator<Comment> it = getCommentsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
if (_hasAnnotations != null) {
EdgeIterator<Annotation> it = getAnnotationsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
io.writeInt4(((Range)position).getPathKey());
io.writeInt4(((Range)position).getLine());
io.writeInt4(((Range)position).getCol());
io.writeInt4(((Range)position).getEndLine());
io.writeInt4(((Range)position).getEndCol());
io.writeInt4(((Range)position).getWideLine());
io.writeInt4(((Range)position).getWideCol());
io.writeInt4(((Range)position).getWideEndLine());
io.writeInt4(((Range)position).getWideEndCol());
{
byte boolValues = 0;
boolValues <<= 1;
if (isCompilerGenerated)
boolValues |= 1;
boolValues <<= 1;
if (isToolGenerated)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeInt4(name);
io.writeInt4(((Range)namePosition).getPathKey());
io.writeInt4(((Range)namePosition).getLine());
io.writeInt4(((Range)namePosition).getCol());
io.writeInt4(((Range)namePosition).getEndLine());
io.writeInt4(((Range)namePosition).getEndCol());
io.writeInt4(((Range)namePosition).getWideLine());
io.writeInt4(((Range)namePosition).getWideCol());
io.writeInt4(((Range)namePosition).getWideEndLine());
io.writeInt4(((Range)namePosition).getWideEndCol());
{
byte boolValues = 0;
boolValues <<= 1;
if (isStatic)
boolValues |= 1;
boolValues <<= 1;
if (isFinal)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeUByte1(accessibility.ordinal());
io.writeInt4(((Range)accessibilityPosition).getPathKey());
io.writeInt4(((Range)accessibilityPosition).getLine());
io.writeInt4(((Range)accessibilityPosition).getCol());
io.writeInt4(((Range)accessibilityPosition).getEndLine());
io.writeInt4(((Range)accessibilityPosition).getEndCol());
io.writeInt4(((Range)accessibilityPosition).getWideLine());
io.writeInt4(((Range)accessibilityPosition).getWideCol());
io.writeInt4(((Range)accessibilityPosition).getWideEndLine());
io.writeInt4(((Range)accessibilityPosition).getWideEndCol());
io.writeInt4(((Range)staticPosition).getPathKey());
io.writeInt4(((Range)staticPosition).getLine());
io.writeInt4(((Range)staticPosition).getCol());
io.writeInt4(((Range)staticPosition).getEndLine());
io.writeInt4(((Range)staticPosition).getEndCol());
io.writeInt4(((Range)staticPosition).getWideLine());
io.writeInt4(((Range)staticPosition).getWideCol());
io.writeInt4(((Range)staticPosition).getWideEndLine());
io.writeInt4(((Range)staticPosition).getWideEndCol());
io.writeInt4(((Range)finalPosition).getPathKey());
io.writeInt4(((Range)finalPosition).getLine());
io.writeInt4(((Range)finalPosition).getCol());
io.writeInt4(((Range)finalPosition).getEndLine());
io.writeInt4(((Range)finalPosition).getEndCol());
io.writeInt4(((Range)finalPosition).getWideLine());
io.writeInt4(((Range)finalPosition).getWideCol());
io.writeInt4(((Range)finalPosition).getWideEndLine());
io.writeInt4(((Range)finalPosition).getWideEndCol());
if (_hasMembers != null) {
EdgeIterator<Member> it = getMembersIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
{
byte boolValues = 0;
boolValues <<= 1;
if (isAbstract)
boolValues |= 1;
boolValues <<= 1;
if (isStrictfp)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeInt4(lloc);
io.writeInt4(((Range)typeNamePosition).getPathKey());
io.writeInt4(((Range)typeNamePosition).getLine());
io.writeInt4(((Range)typeNamePosition).getCol());
io.writeInt4(((Range)typeNamePosition).getEndLine());
io.writeInt4(((Range)typeNamePosition).getEndCol());
io.writeInt4(((Range)typeNamePosition).getWideLine());
io.writeInt4(((Range)typeNamePosition).getWideCol());
io.writeInt4(((Range)typeNamePosition).getWideEndLine());
io.writeInt4(((Range)typeNamePosition).getWideEndCol());
io.writeInt4(((Range)abstractPosition).getPathKey());
io.writeInt4(((Range)abstractPosition).getLine());
io.writeInt4(((Range)abstractPosition).getCol());
io.writeInt4(((Range)abstractPosition).getEndLine());
io.writeInt4(((Range)abstractPosition).getEndCol());
io.writeInt4(((Range)abstractPosition).getWideLine());
io.writeInt4(((Range)abstractPosition).getWideCol());
io.writeInt4(((Range)abstractPosition).getWideEndLine());
io.writeInt4(((Range)abstractPosition).getWideEndCol());
io.writeInt4(((Range)strictfpPosition).getPathKey());
io.writeInt4(((Range)strictfpPosition).getLine());
io.writeInt4(((Range)strictfpPosition).getCol());
io.writeInt4(((Range)strictfpPosition).getEndLine());
io.writeInt4(((Range)strictfpPosition).getEndCol());
io.writeInt4(((Range)strictfpPosition).getWideLine());
io.writeInt4(((Range)strictfpPosition).getWideCol());
io.writeInt4(((Range)strictfpPosition).getWideEndLine());
io.writeInt4(((Range)strictfpPosition).getWideEndCol());
io.writeInt4(binaryName);
io.writeInt4(((Range)extendsPosition).getPathKey());
io.writeInt4(((Range)extendsPosition).getLine());
io.writeInt4(((Range)extendsPosition).getCol());
io.writeInt4(((Range)extendsPosition).getEndLine());
io.writeInt4(((Range)extendsPosition).getEndCol());
io.writeInt4(((Range)extendsPosition).getWideLine());
io.writeInt4(((Range)extendsPosition).getWideCol());
io.writeInt4(((Range)extendsPosition).getWideEndLine());
io.writeInt4(((Range)extendsPosition).getWideEndCol());
io.writeInt4(((Range)implementsPosition).getPathKey());
io.writeInt4(((Range)implementsPosition).getLine());
io.writeInt4(((Range)implementsPosition).getCol());
io.writeInt4(((Range)implementsPosition).getEndLine());
io.writeInt4(((Range)implementsPosition).getEndCol());
io.writeInt4(((Range)implementsPosition).getWideLine());
io.writeInt4(((Range)implementsPosition).getWideCol());
io.writeInt4(((Range)implementsPosition).getWideEndLine());
io.writeInt4(((Range)implementsPosition).getWideEndCol());
io.writeInt4(((Range)bodyStartPosition).getPathKey());
io.writeInt4(((Range)bodyStartPosition).getLine());
io.writeInt4(((Range)bodyStartPosition).getCol());
io.writeInt4(((Range)bodyStartPosition).getEndLine());
io.writeInt4(((Range)bodyStartPosition).getEndCol());
io.writeInt4(((Range)bodyStartPosition).getWideLine());
io.writeInt4(((Range)bodyStartPosition).getWideCol());
io.writeInt4(((Range)bodyStartPosition).getWideEndLine());
io.writeInt4(((Range)bodyStartPosition).getWideEndCol());
io.writeInt4(!factory.getIsFiltered(_hasSuperClass) ? _hasSuperClass : 0);
io.writeInt4(!factory.getIsFiltered(_isInCompilationUnit) ? _isInCompilationUnit : 0);
io.writeInt4(!factory.getIsFiltered(_isInModule) ? _isInModule : 0);
if (_hasSuperInterfaces != null) {
EdgeIterator<TypeExpression> it = getSuperInterfacesIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
if (_hasOthers != null) {
EdgeIterator<Positioned> it = getOthersIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
}
// ---------- Load ----------
@Override
public void load(IO io) {
int _id;
_id = io.readInt4();
if (_id != 0) {
_comments = new EdgeList<Comment>(factory);
while (_id != 0) {
_comments.add(_id);
_id = io.readInt4();
}
}
_id = io.readInt4();
if (_id != 0) {
_hasAnnotations = new EdgeList<Annotation>(factory);
while (_id != 0) {
_hasAnnotations.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
((Range)position).setPathKey(io.readInt4());
((Range)position).setLine(io.readInt4());
((Range)position).setCol(io.readInt4());
((Range)position).setEndLine(io.readInt4());
((Range)position).setEndCol(io.readInt4());
((Range)position).setWideLine(io.readInt4());
((Range)position).setWideCol(io.readInt4());
((Range)position).setWideEndLine(io.readInt4());
((Range)position).setWideEndCol(io.readInt4());
{
byte boolValues = io.readByte1();
isToolGenerated = (boolValues & 1) != 0;
boolValues >>>= 1;
isCompilerGenerated = (boolValues & 1) != 0;
boolValues >>>= 1;
}
name = io.readInt4();
((Range)namePosition).setPathKey(io.readInt4());
((Range)namePosition).setLine(io.readInt4());
((Range)namePosition).setCol(io.readInt4());
((Range)namePosition).setEndLine(io.readInt4());
((Range)namePosition).setEndCol(io.readInt4());
((Range)namePosition).setWideLine(io.readInt4());
((Range)namePosition).setWideCol(io.readInt4());
((Range)namePosition).setWideEndLine(io.readInt4());
((Range)namePosition).setWideEndCol(io.readInt4());
{
byte boolValues = io.readByte1();
isFinal = (boolValues & 1) != 0;
boolValues >>>= 1;
isStatic = (boolValues & 1) != 0;
boolValues >>>= 1;
}
accessibility = AccessibilityKind.values()[io.readUByte1()];
((Range)accessibilityPosition).setPathKey(io.readInt4());
((Range)accessibilityPosition).setLine(io.readInt4());
((Range)accessibilityPosition).setCol(io.readInt4());
((Range)accessibilityPosition).setEndLine(io.readInt4());
((Range)accessibilityPosition).setEndCol(io.readInt4());
((Range)accessibilityPosition).setWideLine(io.readInt4());
((Range)accessibilityPosition).setWideCol(io.readInt4());
((Range)accessibilityPosition).setWideEndLine(io.readInt4());
((Range)accessibilityPosition).setWideEndCol(io.readInt4());
((Range)staticPosition).setPathKey(io.readInt4());
((Range)staticPosition).setLine(io.readInt4());
((Range)staticPosition).setCol(io.readInt4());
((Range)staticPosition).setEndLine(io.readInt4());
((Range)staticPosition).setEndCol(io.readInt4());
((Range)staticPosition).setWideLine(io.readInt4());
((Range)staticPosition).setWideCol(io.readInt4());
((Range)staticPosition).setWideEndLine(io.readInt4());
((Range)staticPosition).setWideEndCol(io.readInt4());
((Range)finalPosition).setPathKey(io.readInt4());
((Range)finalPosition).setLine(io.readInt4());
((Range)finalPosition).setCol(io.readInt4());
((Range)finalPosition).setEndLine(io.readInt4());
((Range)finalPosition).setEndCol(io.readInt4());
((Range)finalPosition).setWideLine(io.readInt4());
((Range)finalPosition).setWideCol(io.readInt4());
((Range)finalPosition).setWideEndLine(io.readInt4());
((Range)finalPosition).setWideEndCol(io.readInt4());
_id = io.readInt4();
if (_id != 0) {
_hasMembers = new EdgeList<Member>(factory);
while (_id != 0) {
_hasMembers.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
{
byte boolValues = io.readByte1();
isStrictfp = (boolValues & 1) != 0;
boolValues >>>= 1;
isAbstract = (boolValues & 1) != 0;
boolValues >>>= 1;
}
lloc = io.readInt4();
((Range)typeNamePosition).setPathKey(io.readInt4());
((Range)typeNamePosition).setLine(io.readInt4());
((Range)typeNamePosition).setCol(io.readInt4());
((Range)typeNamePosition).setEndLine(io.readInt4());
((Range)typeNamePosition).setEndCol(io.readInt4());
((Range)typeNamePosition).setWideLine(io.readInt4());
((Range)typeNamePosition).setWideCol(io.readInt4());
((Range)typeNamePosition).setWideEndLine(io.readInt4());
((Range)typeNamePosition).setWideEndCol(io.readInt4());
((Range)abstractPosition).setPathKey(io.readInt4());
((Range)abstractPosition).setLine(io.readInt4());
((Range)abstractPosition).setCol(io.readInt4());
((Range)abstractPosition).setEndLine(io.readInt4());
((Range)abstractPosition).setEndCol(io.readInt4());
((Range)abstractPosition).setWideLine(io.readInt4());
((Range)abstractPosition).setWideCol(io.readInt4());
((Range)abstractPosition).setWideEndLine(io.readInt4());
((Range)abstractPosition).setWideEndCol(io.readInt4());
((Range)strictfpPosition).setPathKey(io.readInt4());
((Range)strictfpPosition).setLine(io.readInt4());
((Range)strictfpPosition).setCol(io.readInt4());
((Range)strictfpPosition).setEndLine(io.readInt4());
((Range)strictfpPosition).setEndCol(io.readInt4());
((Range)strictfpPosition).setWideLine(io.readInt4());
((Range)strictfpPosition).setWideCol(io.readInt4());
((Range)strictfpPosition).setWideEndLine(io.readInt4());
((Range)strictfpPosition).setWideEndCol(io.readInt4());
binaryName = io.readInt4();
((Range)extendsPosition).setPathKey(io.readInt4());
((Range)extendsPosition).setLine(io.readInt4());
((Range)extendsPosition).setCol(io.readInt4());
((Range)extendsPosition).setEndLine(io.readInt4());
((Range)extendsPosition).setEndCol(io.readInt4());
((Range)extendsPosition).setWideLine(io.readInt4());
((Range)extendsPosition).setWideCol(io.readInt4());
((Range)extendsPosition).setWideEndLine(io.readInt4());
((Range)extendsPosition).setWideEndCol(io.readInt4());
((Range)implementsPosition).setPathKey(io.readInt4());
((Range)implementsPosition).setLine(io.readInt4());
((Range)implementsPosition).setCol(io.readInt4());
((Range)implementsPosition).setEndLine(io.readInt4());
((Range)implementsPosition).setEndCol(io.readInt4());
((Range)implementsPosition).setWideLine(io.readInt4());
((Range)implementsPosition).setWideCol(io.readInt4());
((Range)implementsPosition).setWideEndLine(io.readInt4());
((Range)implementsPosition).setWideEndCol(io.readInt4());
((Range)bodyStartPosition).setPathKey(io.readInt4());
((Range)bodyStartPosition).setLine(io.readInt4());
((Range)bodyStartPosition).setCol(io.readInt4());
((Range)bodyStartPosition).setEndLine(io.readInt4());
((Range)bodyStartPosition).setEndCol(io.readInt4());
((Range)bodyStartPosition).setWideLine(io.readInt4());
((Range)bodyStartPosition).setWideCol(io.readInt4());
((Range)bodyStartPosition).setWideEndLine(io.readInt4());
((Range)bodyStartPosition).setWideEndCol(io.readInt4());
_hasSuperClass = io.readInt4();
if (_hasSuperClass != 0)
setParentEdge(_hasSuperClass);
_isInCompilationUnit = io.readInt4();
_isInModule = io.readInt4();
_id = io.readInt4();
if (_id != 0) {
_hasSuperInterfaces = new EdgeList<TypeExpression>(factory);
while (_id != 0) {
_hasSuperInterfaces.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
_id = io.readInt4();
if (_id != 0) {
_hasOthers = new EdgeList<Positioned>(factory);
while (_id != 0) {
_hasOthers.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
}
}
| 33,078 | 28.587657 | 131 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/AnnotationTypeImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.base.Base;
import columbus.java.asg.expr.TypeExpression;
import columbus.java.asg.base.Positioned;
import columbus.java.asg.base.Comment;
import columbus.java.asg.expr.Annotation;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.struc.AnnotationType AnnotationType} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class AnnotationTypeImpl extends BaseImpl implements AnnotationType {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(AnnotationTypeImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
protected EdgeList<Comment> _comments;
protected EdgeList<Annotation> _hasAnnotations;
protected Object position;
protected boolean isCompilerGenerated;
protected boolean isToolGenerated;
protected int name;
protected Object namePosition;
protected AccessibilityKind accessibility = AccessibilityKind.ackNone;
protected Object accessibilityPosition;
protected boolean isStatic;
protected Object staticPosition;
protected boolean isFinal;
protected Object finalPosition;
protected EdgeList<Member> _hasMembers;
protected int lloc;
protected Object typeNamePosition;
protected boolean isAbstract;
protected Object abstractPosition;
protected boolean isStrictfp;
protected Object strictfpPosition;
protected int binaryName;
protected Object extendsPosition;
protected Object implementsPosition;
protected Object bodyStartPosition;
protected int _hasSuperClass;
protected EdgeList<TypeExpression> _hasSuperInterfaces;
protected EdgeList<Positioned> _hasOthers;
protected int _isInCompilationUnit;
protected int _isInModule;
protected Object atSignPosition;
public AnnotationTypeImpl(int id, Factory factory) {
super(id, factory);
position = new Range(factory.getStringTable());
namePosition = new Range(factory.getStringTable());
accessibilityPosition = new Range(factory.getStringTable());
staticPosition = new Range(factory.getStringTable());
finalPosition = new Range(factory.getStringTable());
typeNamePosition = new Range(factory.getStringTable());
abstractPosition = new Range(factory.getStringTable());
strictfpPosition = new Range(factory.getStringTable());
extendsPosition = new Range(factory.getStringTable());
implementsPosition = new Range(factory.getStringTable());
bodyStartPosition = new Range(factory.getStringTable());
atSignPosition = new Range(factory.getStringTable());
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkAnnotationType;
}
@Override
public Range getPosition() {
return (Range)position;
}
@Override
public void setPosition(Range _position) {
if (factory.getStringTable() == _position.getStringTable())
position = _position;
else
position = new Range(factory.getStringTable(), _position);
}
@Override
public boolean getIsCompilerGenerated() {
return isCompilerGenerated;
}
@Override
public boolean getIsToolGenerated() {
return isToolGenerated;
}
@Override
public void setIsCompilerGenerated(boolean _isCompilerGenerated) {
isCompilerGenerated = _isCompilerGenerated;
}
@Override
public void setIsToolGenerated(boolean _isToolGenerated) {
isToolGenerated = _isToolGenerated;
}
@Override
public String getName() {
return factory.getStringTable().get(name);
}
@Override
public int getNameKey() {
return name;
}
@Override
public Range getNamePosition() {
return (Range)namePosition;
}
@Override
public void setName(String _name) {
name = factory.getStringTable().set(_name);
}
@Override
public void setNamePosition(Range _namePosition) {
if (factory.getStringTable() == _namePosition.getStringTable())
namePosition = _namePosition;
else
namePosition = new Range(factory.getStringTable(), _namePosition);
}
@Override
public AccessibilityKind getAccessibility() {
return accessibility;
}
@Override
public Range getAccessibilityPosition() {
return (Range)accessibilityPosition;
}
@Override
public boolean getIsStatic() {
return isStatic;
}
@Override
public Range getStaticPosition() {
return (Range)staticPosition;
}
@Override
public boolean getIsFinal() {
return isFinal;
}
@Override
public Range getFinalPosition() {
return (Range)finalPosition;
}
@Override
public void setAccessibility(AccessibilityKind _accessibility) {
accessibility = _accessibility;
}
@Override
public void setAccessibilityPosition(Range _accessibilityPosition) {
if (factory.getStringTable() == _accessibilityPosition.getStringTable())
accessibilityPosition = _accessibilityPosition;
else
accessibilityPosition = new Range(factory.getStringTable(), _accessibilityPosition);
}
@Override
public void setIsStatic(boolean _isStatic) {
isStatic = _isStatic;
}
@Override
public void setStaticPosition(Range _staticPosition) {
if (factory.getStringTable() == _staticPosition.getStringTable())
staticPosition = _staticPosition;
else
staticPosition = new Range(factory.getStringTable(), _staticPosition);
}
@Override
public void setIsFinal(boolean _isFinal) {
isFinal = _isFinal;
}
@Override
public void setFinalPosition(Range _finalPosition) {
if (factory.getStringTable() == _finalPosition.getStringTable())
finalPosition = _finalPosition;
else
finalPosition = new Range(factory.getStringTable(), _finalPosition);
}
@Override
public int getLloc() {
return lloc;
}
@Override
public Range getTypeNamePosition() {
return (Range)typeNamePosition;
}
@Override
public boolean getIsAbstract() {
return isAbstract;
}
@Override
public Range getAbstractPosition() {
return (Range)abstractPosition;
}
@Override
public boolean getIsStrictfp() {
return isStrictfp;
}
@Override
public Range getStrictfpPosition() {
return (Range)strictfpPosition;
}
@Override
public String getBinaryName() {
return factory.getStringTable().get(binaryName);
}
@Override
public int getBinaryNameKey() {
return binaryName;
}
@Override
public Range getExtendsPosition() {
return (Range)extendsPosition;
}
@Override
public Range getImplementsPosition() {
return (Range)implementsPosition;
}
@Override
public Range getBodyStartPosition() {
return (Range)bodyStartPosition;
}
@Override
public void setLloc(int _lloc) {
lloc = _lloc;
}
@Override
public void setTypeNamePosition(Range _typeNamePosition) {
if (factory.getStringTable() == _typeNamePosition.getStringTable())
typeNamePosition = _typeNamePosition;
else
typeNamePosition = new Range(factory.getStringTable(), _typeNamePosition);
}
@Override
public void setIsAbstract(boolean _isAbstract) {
isAbstract = _isAbstract;
}
@Override
public void setAbstractPosition(Range _abstractPosition) {
if (factory.getStringTable() == _abstractPosition.getStringTable())
abstractPosition = _abstractPosition;
else
abstractPosition = new Range(factory.getStringTable(), _abstractPosition);
}
@Override
public void setIsStrictfp(boolean _isStrictfp) {
isStrictfp = _isStrictfp;
}
@Override
public void setStrictfpPosition(Range _strictfpPosition) {
if (factory.getStringTable() == _strictfpPosition.getStringTable())
strictfpPosition = _strictfpPosition;
else
strictfpPosition = new Range(factory.getStringTable(), _strictfpPosition);
}
@Override
public void setBinaryName(String _binaryName) {
binaryName = factory.getStringTable().set(_binaryName);
}
@Override
public void setExtendsPosition(Range _extendsPosition) {
if (factory.getStringTable() == _extendsPosition.getStringTable())
extendsPosition = _extendsPosition;
else
extendsPosition = new Range(factory.getStringTable(), _extendsPosition);
}
@Override
public void setImplementsPosition(Range _implementsPosition) {
if (factory.getStringTable() == _implementsPosition.getStringTable())
implementsPosition = _implementsPosition;
else
implementsPosition = new Range(factory.getStringTable(), _implementsPosition);
}
@Override
public void setBodyStartPosition(Range _bodyStartPosition) {
if (factory.getStringTable() == _bodyStartPosition.getStringTable())
bodyStartPosition = _bodyStartPosition;
else
bodyStartPosition = new Range(factory.getStringTable(), _bodyStartPosition);
}
@Override
public Range getAtSignPosition() {
return (Range)atSignPosition;
}
@Override
public void setAtSignPosition(Range _atSignPosition) {
if (factory.getStringTable() == _atSignPosition.getStringTable())
atSignPosition = _atSignPosition;
else
atSignPosition = new Range(factory.getStringTable(), _atSignPosition);
}
@Override
public EdgeIterator<Comment> getCommentsIterator() {
if (_comments == null)
return EdgeList.<Comment>emptyList().iterator();
else
return _comments.iterator();
}
@Override
public boolean getCommentsIsEmpty() {
if (_comments == null)
return true;
else
return _comments.isEmpty();
}
@Override
public int getCommentsSize() {
if (_comments == null)
return 0;
else
return _comments.size();
}
@Override
public void addComments(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkComment)) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void addComments(Comment _node) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_node);
}
@Override
public EdgeIterator<Annotation> getAnnotationsIterator() {
if (_hasAnnotations == null)
return EdgeList.<Annotation>emptyList().iterator();
else
return _hasAnnotations.iterator();
}
@Override
public boolean getAnnotationsIsEmpty() {
if (_hasAnnotations == null)
return true;
else
return _hasAnnotations.isEmpty();
}
@Override
public int getAnnotationsSize() {
if (_hasAnnotations == null)
return 0;
else
return _hasAnnotations.size();
}
@Override
public void addAnnotations(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkAnnotation)) {
if (_hasAnnotations == null)
_hasAnnotations = new EdgeList<Annotation>(factory);
_hasAnnotations.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addAnnotations(Annotation _node) {
if (_hasAnnotations == null)
_hasAnnotations = new EdgeList<Annotation>(factory);
_hasAnnotations.add(_node);
setParentEdge(_node);
}
@Override
public EdgeIterator<Member> getMembersIterator() {
if (_hasMembers == null)
return EdgeList.<Member>emptyList().iterator();
else
return _hasMembers.iterator();
}
@Override
public boolean getMembersIsEmpty() {
if (_hasMembers == null)
return true;
else
return _hasMembers.isEmpty();
}
@Override
public int getMembersSize() {
if (_hasMembers == null)
return 0;
else
return _hasMembers.size();
}
@Override
public void addMembers(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkMember)) {
if (_hasMembers == null)
_hasMembers = new EdgeList<Member>(factory);
_hasMembers.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addMembers(Member _node) {
if (_hasMembers == null)
_hasMembers = new EdgeList<Member>(factory);
_hasMembers.add(_node);
setParentEdge(_node);
}
@Override
public TypeExpression getSuperClass() {
if (_hasSuperClass == 0)
return null;
if (factory.getIsFiltered(_hasSuperClass))
return null;
return (TypeExpression)factory.getRef(_hasSuperClass);
}
@Override
public EdgeIterator<TypeExpression> getSuperInterfacesIterator() {
if (_hasSuperInterfaces == null)
return EdgeList.<TypeExpression>emptyList().iterator();
else
return _hasSuperInterfaces.iterator();
}
@Override
public boolean getSuperInterfacesIsEmpty() {
if (_hasSuperInterfaces == null)
return true;
else
return _hasSuperInterfaces.isEmpty();
}
@Override
public int getSuperInterfacesSize() {
if (_hasSuperInterfaces == null)
return 0;
else
return _hasSuperInterfaces.size();
}
@Override
public EdgeIterator<Positioned> getOthersIterator() {
if (_hasOthers == null)
return EdgeList.<Positioned>emptyList().iterator();
else
return _hasOthers.iterator();
}
@Override
public boolean getOthersIsEmpty() {
if (_hasOthers == null)
return true;
else
return _hasOthers.isEmpty();
}
@Override
public int getOthersSize() {
if (_hasOthers == null)
return 0;
else
return _hasOthers.size();
}
@Override
public CompilationUnit getIsInCompilationUnit() {
if (_isInCompilationUnit == 0)
return null;
if (factory.getIsFiltered(_isInCompilationUnit))
return null;
return (CompilationUnit)factory.getRef(_isInCompilationUnit);
}
@Override
public Module getIsInModule() {
if (_isInModule == 0)
return null;
if (factory.getIsFiltered(_isInModule))
return null;
return (Module)factory.getRef(_isInModule);
}
@Override
public void setSuperClass(int _id) {
if (_hasSuperClass != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasSuperClass" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkTypeExpression)) {
_hasSuperClass = _id;
setParentEdge(_hasSuperClass);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setSuperClass(TypeExpression _node) {
if (_hasSuperClass != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasSuperClass" ));
_hasSuperClass = _node.getId();
setParentEdge(_hasSuperClass);
}
@Override
public void addSuperInterfaces(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkTypeExpression)) {
if (_hasSuperInterfaces == null)
_hasSuperInterfaces = new EdgeList<TypeExpression>(factory);
_hasSuperInterfaces.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addSuperInterfaces(TypeExpression _node) {
if (_hasSuperInterfaces == null)
_hasSuperInterfaces = new EdgeList<TypeExpression>(factory);
_hasSuperInterfaces.add(_node);
setParentEdge(_node);
}
@Override
public void addOthers(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkPositioned)) {
if (_hasOthers == null)
_hasOthers = new EdgeList<Positioned>(factory);
_hasOthers.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addOthers(Positioned _node) {
if (_hasOthers == null)
_hasOthers = new EdgeList<Positioned>(factory);
_hasOthers.add(_node);
setParentEdge(_node);
}
@Override
public void setIsInCompilationUnit(int _id) {
if (_isInCompilationUnit != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","isInCompilationUnit" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (_node.getNodeKind() == NodeKind.ndkCompilationUnit) {
_isInCompilationUnit = _id;
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setIsInCompilationUnit(CompilationUnit _node) {
if (_isInCompilationUnit != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","isInCompilationUnit" ));
_isInCompilationUnit = _node.getId();
}
@Override
public void setIsInModule(int _id) {
if (_isInModule != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","isInModule" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (_node.getNodeKind() == NodeKind.ndkModule) {
_isInModule = _id;
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setIsInModule(Module _node) {
if (_isInModule != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","isInModule" ));
_isInModule = _node.getId();
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
if (_comments != null) {
EdgeIterator<Comment> it = getCommentsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
if (_hasAnnotations != null) {
EdgeIterator<Annotation> it = getAnnotationsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
io.writeInt4(((Range)position).getPathKey());
io.writeInt4(((Range)position).getLine());
io.writeInt4(((Range)position).getCol());
io.writeInt4(((Range)position).getEndLine());
io.writeInt4(((Range)position).getEndCol());
io.writeInt4(((Range)position).getWideLine());
io.writeInt4(((Range)position).getWideCol());
io.writeInt4(((Range)position).getWideEndLine());
io.writeInt4(((Range)position).getWideEndCol());
{
byte boolValues = 0;
boolValues <<= 1;
if (isCompilerGenerated)
boolValues |= 1;
boolValues <<= 1;
if (isToolGenerated)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeInt4(name);
io.writeInt4(((Range)namePosition).getPathKey());
io.writeInt4(((Range)namePosition).getLine());
io.writeInt4(((Range)namePosition).getCol());
io.writeInt4(((Range)namePosition).getEndLine());
io.writeInt4(((Range)namePosition).getEndCol());
io.writeInt4(((Range)namePosition).getWideLine());
io.writeInt4(((Range)namePosition).getWideCol());
io.writeInt4(((Range)namePosition).getWideEndLine());
io.writeInt4(((Range)namePosition).getWideEndCol());
{
byte boolValues = 0;
boolValues <<= 1;
if (isStatic)
boolValues |= 1;
boolValues <<= 1;
if (isFinal)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeUByte1(accessibility.ordinal());
io.writeInt4(((Range)accessibilityPosition).getPathKey());
io.writeInt4(((Range)accessibilityPosition).getLine());
io.writeInt4(((Range)accessibilityPosition).getCol());
io.writeInt4(((Range)accessibilityPosition).getEndLine());
io.writeInt4(((Range)accessibilityPosition).getEndCol());
io.writeInt4(((Range)accessibilityPosition).getWideLine());
io.writeInt4(((Range)accessibilityPosition).getWideCol());
io.writeInt4(((Range)accessibilityPosition).getWideEndLine());
io.writeInt4(((Range)accessibilityPosition).getWideEndCol());
io.writeInt4(((Range)staticPosition).getPathKey());
io.writeInt4(((Range)staticPosition).getLine());
io.writeInt4(((Range)staticPosition).getCol());
io.writeInt4(((Range)staticPosition).getEndLine());
io.writeInt4(((Range)staticPosition).getEndCol());
io.writeInt4(((Range)staticPosition).getWideLine());
io.writeInt4(((Range)staticPosition).getWideCol());
io.writeInt4(((Range)staticPosition).getWideEndLine());
io.writeInt4(((Range)staticPosition).getWideEndCol());
io.writeInt4(((Range)finalPosition).getPathKey());
io.writeInt4(((Range)finalPosition).getLine());
io.writeInt4(((Range)finalPosition).getCol());
io.writeInt4(((Range)finalPosition).getEndLine());
io.writeInt4(((Range)finalPosition).getEndCol());
io.writeInt4(((Range)finalPosition).getWideLine());
io.writeInt4(((Range)finalPosition).getWideCol());
io.writeInt4(((Range)finalPosition).getWideEndLine());
io.writeInt4(((Range)finalPosition).getWideEndCol());
if (_hasMembers != null) {
EdgeIterator<Member> it = getMembersIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
{
byte boolValues = 0;
boolValues <<= 1;
if (isAbstract)
boolValues |= 1;
boolValues <<= 1;
if (isStrictfp)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeInt4(lloc);
io.writeInt4(((Range)typeNamePosition).getPathKey());
io.writeInt4(((Range)typeNamePosition).getLine());
io.writeInt4(((Range)typeNamePosition).getCol());
io.writeInt4(((Range)typeNamePosition).getEndLine());
io.writeInt4(((Range)typeNamePosition).getEndCol());
io.writeInt4(((Range)typeNamePosition).getWideLine());
io.writeInt4(((Range)typeNamePosition).getWideCol());
io.writeInt4(((Range)typeNamePosition).getWideEndLine());
io.writeInt4(((Range)typeNamePosition).getWideEndCol());
io.writeInt4(((Range)abstractPosition).getPathKey());
io.writeInt4(((Range)abstractPosition).getLine());
io.writeInt4(((Range)abstractPosition).getCol());
io.writeInt4(((Range)abstractPosition).getEndLine());
io.writeInt4(((Range)abstractPosition).getEndCol());
io.writeInt4(((Range)abstractPosition).getWideLine());
io.writeInt4(((Range)abstractPosition).getWideCol());
io.writeInt4(((Range)abstractPosition).getWideEndLine());
io.writeInt4(((Range)abstractPosition).getWideEndCol());
io.writeInt4(((Range)strictfpPosition).getPathKey());
io.writeInt4(((Range)strictfpPosition).getLine());
io.writeInt4(((Range)strictfpPosition).getCol());
io.writeInt4(((Range)strictfpPosition).getEndLine());
io.writeInt4(((Range)strictfpPosition).getEndCol());
io.writeInt4(((Range)strictfpPosition).getWideLine());
io.writeInt4(((Range)strictfpPosition).getWideCol());
io.writeInt4(((Range)strictfpPosition).getWideEndLine());
io.writeInt4(((Range)strictfpPosition).getWideEndCol());
io.writeInt4(binaryName);
io.writeInt4(((Range)extendsPosition).getPathKey());
io.writeInt4(((Range)extendsPosition).getLine());
io.writeInt4(((Range)extendsPosition).getCol());
io.writeInt4(((Range)extendsPosition).getEndLine());
io.writeInt4(((Range)extendsPosition).getEndCol());
io.writeInt4(((Range)extendsPosition).getWideLine());
io.writeInt4(((Range)extendsPosition).getWideCol());
io.writeInt4(((Range)extendsPosition).getWideEndLine());
io.writeInt4(((Range)extendsPosition).getWideEndCol());
io.writeInt4(((Range)implementsPosition).getPathKey());
io.writeInt4(((Range)implementsPosition).getLine());
io.writeInt4(((Range)implementsPosition).getCol());
io.writeInt4(((Range)implementsPosition).getEndLine());
io.writeInt4(((Range)implementsPosition).getEndCol());
io.writeInt4(((Range)implementsPosition).getWideLine());
io.writeInt4(((Range)implementsPosition).getWideCol());
io.writeInt4(((Range)implementsPosition).getWideEndLine());
io.writeInt4(((Range)implementsPosition).getWideEndCol());
io.writeInt4(((Range)bodyStartPosition).getPathKey());
io.writeInt4(((Range)bodyStartPosition).getLine());
io.writeInt4(((Range)bodyStartPosition).getCol());
io.writeInt4(((Range)bodyStartPosition).getEndLine());
io.writeInt4(((Range)bodyStartPosition).getEndCol());
io.writeInt4(((Range)bodyStartPosition).getWideLine());
io.writeInt4(((Range)bodyStartPosition).getWideCol());
io.writeInt4(((Range)bodyStartPosition).getWideEndLine());
io.writeInt4(((Range)bodyStartPosition).getWideEndCol());
io.writeInt4(!factory.getIsFiltered(_hasSuperClass) ? _hasSuperClass : 0);
io.writeInt4(!factory.getIsFiltered(_isInCompilationUnit) ? _isInCompilationUnit : 0);
io.writeInt4(!factory.getIsFiltered(_isInModule) ? _isInModule : 0);
if (_hasSuperInterfaces != null) {
EdgeIterator<TypeExpression> it = getSuperInterfacesIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
if (_hasOthers != null) {
EdgeIterator<Positioned> it = getOthersIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
io.writeInt4(((Range)atSignPosition).getPathKey());
io.writeInt4(((Range)atSignPosition).getLine());
io.writeInt4(((Range)atSignPosition).getCol());
io.writeInt4(((Range)atSignPosition).getEndLine());
io.writeInt4(((Range)atSignPosition).getEndCol());
io.writeInt4(((Range)atSignPosition).getWideLine());
io.writeInt4(((Range)atSignPosition).getWideCol());
io.writeInt4(((Range)atSignPosition).getWideEndLine());
io.writeInt4(((Range)atSignPosition).getWideEndCol());
}
// ---------- Load ----------
@Override
public void load(IO io) {
int _id;
_id = io.readInt4();
if (_id != 0) {
_comments = new EdgeList<Comment>(factory);
while (_id != 0) {
_comments.add(_id);
_id = io.readInt4();
}
}
_id = io.readInt4();
if (_id != 0) {
_hasAnnotations = new EdgeList<Annotation>(factory);
while (_id != 0) {
_hasAnnotations.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
((Range)position).setPathKey(io.readInt4());
((Range)position).setLine(io.readInt4());
((Range)position).setCol(io.readInt4());
((Range)position).setEndLine(io.readInt4());
((Range)position).setEndCol(io.readInt4());
((Range)position).setWideLine(io.readInt4());
((Range)position).setWideCol(io.readInt4());
((Range)position).setWideEndLine(io.readInt4());
((Range)position).setWideEndCol(io.readInt4());
{
byte boolValues = io.readByte1();
isToolGenerated = (boolValues & 1) != 0;
boolValues >>>= 1;
isCompilerGenerated = (boolValues & 1) != 0;
boolValues >>>= 1;
}
name = io.readInt4();
((Range)namePosition).setPathKey(io.readInt4());
((Range)namePosition).setLine(io.readInt4());
((Range)namePosition).setCol(io.readInt4());
((Range)namePosition).setEndLine(io.readInt4());
((Range)namePosition).setEndCol(io.readInt4());
((Range)namePosition).setWideLine(io.readInt4());
((Range)namePosition).setWideCol(io.readInt4());
((Range)namePosition).setWideEndLine(io.readInt4());
((Range)namePosition).setWideEndCol(io.readInt4());
{
byte boolValues = io.readByte1();
isFinal = (boolValues & 1) != 0;
boolValues >>>= 1;
isStatic = (boolValues & 1) != 0;
boolValues >>>= 1;
}
accessibility = AccessibilityKind.values()[io.readUByte1()];
((Range)accessibilityPosition).setPathKey(io.readInt4());
((Range)accessibilityPosition).setLine(io.readInt4());
((Range)accessibilityPosition).setCol(io.readInt4());
((Range)accessibilityPosition).setEndLine(io.readInt4());
((Range)accessibilityPosition).setEndCol(io.readInt4());
((Range)accessibilityPosition).setWideLine(io.readInt4());
((Range)accessibilityPosition).setWideCol(io.readInt4());
((Range)accessibilityPosition).setWideEndLine(io.readInt4());
((Range)accessibilityPosition).setWideEndCol(io.readInt4());
((Range)staticPosition).setPathKey(io.readInt4());
((Range)staticPosition).setLine(io.readInt4());
((Range)staticPosition).setCol(io.readInt4());
((Range)staticPosition).setEndLine(io.readInt4());
((Range)staticPosition).setEndCol(io.readInt4());
((Range)staticPosition).setWideLine(io.readInt4());
((Range)staticPosition).setWideCol(io.readInt4());
((Range)staticPosition).setWideEndLine(io.readInt4());
((Range)staticPosition).setWideEndCol(io.readInt4());
((Range)finalPosition).setPathKey(io.readInt4());
((Range)finalPosition).setLine(io.readInt4());
((Range)finalPosition).setCol(io.readInt4());
((Range)finalPosition).setEndLine(io.readInt4());
((Range)finalPosition).setEndCol(io.readInt4());
((Range)finalPosition).setWideLine(io.readInt4());
((Range)finalPosition).setWideCol(io.readInt4());
((Range)finalPosition).setWideEndLine(io.readInt4());
((Range)finalPosition).setWideEndCol(io.readInt4());
_id = io.readInt4();
if (_id != 0) {
_hasMembers = new EdgeList<Member>(factory);
while (_id != 0) {
_hasMembers.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
{
byte boolValues = io.readByte1();
isStrictfp = (boolValues & 1) != 0;
boolValues >>>= 1;
isAbstract = (boolValues & 1) != 0;
boolValues >>>= 1;
}
lloc = io.readInt4();
((Range)typeNamePosition).setPathKey(io.readInt4());
((Range)typeNamePosition).setLine(io.readInt4());
((Range)typeNamePosition).setCol(io.readInt4());
((Range)typeNamePosition).setEndLine(io.readInt4());
((Range)typeNamePosition).setEndCol(io.readInt4());
((Range)typeNamePosition).setWideLine(io.readInt4());
((Range)typeNamePosition).setWideCol(io.readInt4());
((Range)typeNamePosition).setWideEndLine(io.readInt4());
((Range)typeNamePosition).setWideEndCol(io.readInt4());
((Range)abstractPosition).setPathKey(io.readInt4());
((Range)abstractPosition).setLine(io.readInt4());
((Range)abstractPosition).setCol(io.readInt4());
((Range)abstractPosition).setEndLine(io.readInt4());
((Range)abstractPosition).setEndCol(io.readInt4());
((Range)abstractPosition).setWideLine(io.readInt4());
((Range)abstractPosition).setWideCol(io.readInt4());
((Range)abstractPosition).setWideEndLine(io.readInt4());
((Range)abstractPosition).setWideEndCol(io.readInt4());
((Range)strictfpPosition).setPathKey(io.readInt4());
((Range)strictfpPosition).setLine(io.readInt4());
((Range)strictfpPosition).setCol(io.readInt4());
((Range)strictfpPosition).setEndLine(io.readInt4());
((Range)strictfpPosition).setEndCol(io.readInt4());
((Range)strictfpPosition).setWideLine(io.readInt4());
((Range)strictfpPosition).setWideCol(io.readInt4());
((Range)strictfpPosition).setWideEndLine(io.readInt4());
((Range)strictfpPosition).setWideEndCol(io.readInt4());
binaryName = io.readInt4();
((Range)extendsPosition).setPathKey(io.readInt4());
((Range)extendsPosition).setLine(io.readInt4());
((Range)extendsPosition).setCol(io.readInt4());
((Range)extendsPosition).setEndLine(io.readInt4());
((Range)extendsPosition).setEndCol(io.readInt4());
((Range)extendsPosition).setWideLine(io.readInt4());
((Range)extendsPosition).setWideCol(io.readInt4());
((Range)extendsPosition).setWideEndLine(io.readInt4());
((Range)extendsPosition).setWideEndCol(io.readInt4());
((Range)implementsPosition).setPathKey(io.readInt4());
((Range)implementsPosition).setLine(io.readInt4());
((Range)implementsPosition).setCol(io.readInt4());
((Range)implementsPosition).setEndLine(io.readInt4());
((Range)implementsPosition).setEndCol(io.readInt4());
((Range)implementsPosition).setWideLine(io.readInt4());
((Range)implementsPosition).setWideCol(io.readInt4());
((Range)implementsPosition).setWideEndLine(io.readInt4());
((Range)implementsPosition).setWideEndCol(io.readInt4());
((Range)bodyStartPosition).setPathKey(io.readInt4());
((Range)bodyStartPosition).setLine(io.readInt4());
((Range)bodyStartPosition).setCol(io.readInt4());
((Range)bodyStartPosition).setEndLine(io.readInt4());
((Range)bodyStartPosition).setEndCol(io.readInt4());
((Range)bodyStartPosition).setWideLine(io.readInt4());
((Range)bodyStartPosition).setWideCol(io.readInt4());
((Range)bodyStartPosition).setWideEndLine(io.readInt4());
((Range)bodyStartPosition).setWideEndCol(io.readInt4());
_hasSuperClass = io.readInt4();
if (_hasSuperClass != 0)
setParentEdge(_hasSuperClass);
_isInCompilationUnit = io.readInt4();
_isInModule = io.readInt4();
_id = io.readInt4();
if (_id != 0) {
_hasSuperInterfaces = new EdgeList<TypeExpression>(factory);
while (_id != 0) {
_hasSuperInterfaces.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
_id = io.readInt4();
if (_id != 0) {
_hasOthers = new EdgeList<Positioned>(factory);
while (_id != 0) {
_hasOthers.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
((Range)atSignPosition).setPathKey(io.readInt4());
((Range)atSignPosition).setLine(io.readInt4());
((Range)atSignPosition).setCol(io.readInt4());
((Range)atSignPosition).setEndLine(io.readInt4());
((Range)atSignPosition).setEndCol(io.readInt4());
((Range)atSignPosition).setWideLine(io.readInt4());
((Range)atSignPosition).setWideCol(io.readInt4());
((Range)atSignPosition).setWideEndLine(io.readInt4());
((Range)atSignPosition).setWideEndCol(io.readInt4());
}
}
| 34,509 | 28.904679 | 136 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/StaticInitializerBlockImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.base.Base;
import columbus.java.asg.statm.Block;
import columbus.java.asg.base.Comment;
import columbus.java.asg.expr.Annotation;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.struc.StaticInitializerBlock StaticInitializerBlock} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class StaticInitializerBlockImpl extends BaseImpl implements StaticInitializerBlock {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(StaticInitializerBlockImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
protected EdgeList<Comment> _comments;
protected EdgeList<Annotation> _hasAnnotations;
protected Object position;
protected boolean isCompilerGenerated;
protected boolean isToolGenerated;
protected int lloc;
protected int _hasBody;
protected Object blockStartPosition;
public StaticInitializerBlockImpl(int id, Factory factory) {
super(id, factory);
position = new Range(factory.getStringTable());
blockStartPosition = new Range(factory.getStringTable());
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkStaticInitializerBlock;
}
@Override
public Range getPosition() {
return (Range)position;
}
@Override
public void setPosition(Range _position) {
if (factory.getStringTable() == _position.getStringTable())
position = _position;
else
position = new Range(factory.getStringTable(), _position);
}
@Override
public boolean getIsCompilerGenerated() {
return isCompilerGenerated;
}
@Override
public boolean getIsToolGenerated() {
return isToolGenerated;
}
@Override
public void setIsCompilerGenerated(boolean _isCompilerGenerated) {
isCompilerGenerated = _isCompilerGenerated;
}
@Override
public void setIsToolGenerated(boolean _isToolGenerated) {
isToolGenerated = _isToolGenerated;
}
@Override
public int getLloc() {
return lloc;
}
@Override
public void setLloc(int _lloc) {
lloc = _lloc;
}
@Override
public Range getBlockStartPosition() {
return (Range)blockStartPosition;
}
@Override
public void setBlockStartPosition(Range _blockStartPosition) {
if (factory.getStringTable() == _blockStartPosition.getStringTable())
blockStartPosition = _blockStartPosition;
else
blockStartPosition = new Range(factory.getStringTable(), _blockStartPosition);
}
@Override
public EdgeIterator<Comment> getCommentsIterator() {
if (_comments == null)
return EdgeList.<Comment>emptyList().iterator();
else
return _comments.iterator();
}
@Override
public boolean getCommentsIsEmpty() {
if (_comments == null)
return true;
else
return _comments.isEmpty();
}
@Override
public int getCommentsSize() {
if (_comments == null)
return 0;
else
return _comments.size();
}
@Override
public void addComments(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkComment)) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void addComments(Comment _node) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_node);
}
@Override
public EdgeIterator<Annotation> getAnnotationsIterator() {
if (_hasAnnotations == null)
return EdgeList.<Annotation>emptyList().iterator();
else
return _hasAnnotations.iterator();
}
@Override
public boolean getAnnotationsIsEmpty() {
if (_hasAnnotations == null)
return true;
else
return _hasAnnotations.isEmpty();
}
@Override
public int getAnnotationsSize() {
if (_hasAnnotations == null)
return 0;
else
return _hasAnnotations.size();
}
@Override
public void addAnnotations(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkAnnotation)) {
if (_hasAnnotations == null)
_hasAnnotations = new EdgeList<Annotation>(factory);
_hasAnnotations.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addAnnotations(Annotation _node) {
if (_hasAnnotations == null)
_hasAnnotations = new EdgeList<Annotation>(factory);
_hasAnnotations.add(_node);
setParentEdge(_node);
}
@Override
public Block getBody() {
if (_hasBody == 0)
return null;
if (factory.getIsFiltered(_hasBody))
return null;
return (Block)factory.getRef(_hasBody);
}
@Override
public void setBody(int _id) {
if (_hasBody != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasBody" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (_node.getNodeKind() == NodeKind.ndkBlock) {
_hasBody = _id;
setParentEdge(_hasBody);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setBody(Block _node) {
if (_hasBody != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasBody" ));
_hasBody = _node.getId();
setParentEdge(_hasBody);
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
if (_comments != null) {
EdgeIterator<Comment> it = getCommentsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
if (_hasAnnotations != null) {
EdgeIterator<Annotation> it = getAnnotationsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
io.writeInt4(((Range)position).getPathKey());
io.writeInt4(((Range)position).getLine());
io.writeInt4(((Range)position).getCol());
io.writeInt4(((Range)position).getEndLine());
io.writeInt4(((Range)position).getEndCol());
io.writeInt4(((Range)position).getWideLine());
io.writeInt4(((Range)position).getWideCol());
io.writeInt4(((Range)position).getWideEndLine());
io.writeInt4(((Range)position).getWideEndCol());
{
byte boolValues = 0;
boolValues <<= 1;
if (isCompilerGenerated)
boolValues |= 1;
boolValues <<= 1;
if (isToolGenerated)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeInt4(lloc);
io.writeInt4(!factory.getIsFiltered(_hasBody) ? _hasBody : 0);
io.writeInt4(((Range)blockStartPosition).getPathKey());
io.writeInt4(((Range)blockStartPosition).getLine());
io.writeInt4(((Range)blockStartPosition).getCol());
io.writeInt4(((Range)blockStartPosition).getEndLine());
io.writeInt4(((Range)blockStartPosition).getEndCol());
io.writeInt4(((Range)blockStartPosition).getWideLine());
io.writeInt4(((Range)blockStartPosition).getWideCol());
io.writeInt4(((Range)blockStartPosition).getWideEndLine());
io.writeInt4(((Range)blockStartPosition).getWideEndCol());
}
// ---------- Load ----------
@Override
public void load(IO io) {
int _id;
_id = io.readInt4();
if (_id != 0) {
_comments = new EdgeList<Comment>(factory);
while (_id != 0) {
_comments.add(_id);
_id = io.readInt4();
}
}
_id = io.readInt4();
if (_id != 0) {
_hasAnnotations = new EdgeList<Annotation>(factory);
while (_id != 0) {
_hasAnnotations.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
((Range)position).setPathKey(io.readInt4());
((Range)position).setLine(io.readInt4());
((Range)position).setCol(io.readInt4());
((Range)position).setEndLine(io.readInt4());
((Range)position).setEndCol(io.readInt4());
((Range)position).setWideLine(io.readInt4());
((Range)position).setWideCol(io.readInt4());
((Range)position).setWideEndLine(io.readInt4());
((Range)position).setWideEndCol(io.readInt4());
{
byte boolValues = io.readByte1();
isToolGenerated = (boolValues & 1) != 0;
boolValues >>>= 1;
isCompilerGenerated = (boolValues & 1) != 0;
boolValues >>>= 1;
}
lloc = io.readInt4();
_hasBody = io.readInt4();
if (_hasBody != 0)
setParentEdge(_hasBody);
((Range)blockStartPosition).setPathKey(io.readInt4());
((Range)blockStartPosition).setLine(io.readInt4());
((Range)blockStartPosition).setCol(io.readInt4());
((Range)blockStartPosition).setEndLine(io.readInt4());
((Range)blockStartPosition).setEndCol(io.readInt4());
((Range)blockStartPosition).setWideLine(io.readInt4());
((Range)blockStartPosition).setWideCol(io.readInt4());
((Range)blockStartPosition).setWideEndLine(io.readInt4());
((Range)blockStartPosition).setWideEndCol(io.readInt4());
}
}
| 10,248 | 25.07888 | 144 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/InstanceInitializerBlock.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
/**
* Interface InstanceInitializerBlock, which represents the {@link columbus.java.asg.struc.InstanceInitializerBlock InstanceInitializerBlock} node.
* @columbus.node (missing)
*/
public interface InstanceInitializerBlock extends InitializerBlock {
}
| 1,023 | 31 | 147 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/InterfaceGenericImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.base.Base;
import columbus.java.asg.expr.TypeExpression;
import columbus.java.asg.base.Positioned;
import columbus.java.asg.base.Comment;
import columbus.java.asg.expr.Annotation;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.struc.InterfaceGeneric InterfaceGeneric} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class InterfaceGenericImpl extends BaseImpl implements InterfaceGeneric {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(InterfaceGenericImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
protected EdgeList<Comment> _comments;
protected EdgeList<Annotation> _hasAnnotations;
protected Object position;
protected boolean isCompilerGenerated;
protected boolean isToolGenerated;
protected int name;
protected Object namePosition;
protected AccessibilityKind accessibility = AccessibilityKind.ackNone;
protected Object accessibilityPosition;
protected boolean isStatic;
protected Object staticPosition;
protected boolean isFinal;
protected Object finalPosition;
protected EdgeList<Member> _hasMembers;
protected int lloc;
protected Object typeNamePosition;
protected boolean isAbstract;
protected Object abstractPosition;
protected boolean isStrictfp;
protected Object strictfpPosition;
protected int binaryName;
protected Object extendsPosition;
protected Object implementsPosition;
protected Object bodyStartPosition;
protected int _hasSuperClass;
protected EdgeList<TypeExpression> _hasSuperInterfaces;
protected EdgeList<Positioned> _hasOthers;
protected int _isInCompilationUnit;
protected int _isInModule;
protected EdgeList<TypeParameter> _hasTypeParameters;
public InterfaceGenericImpl(int id, Factory factory) {
super(id, factory);
position = new Range(factory.getStringTable());
namePosition = new Range(factory.getStringTable());
accessibilityPosition = new Range(factory.getStringTable());
staticPosition = new Range(factory.getStringTable());
finalPosition = new Range(factory.getStringTable());
typeNamePosition = new Range(factory.getStringTable());
abstractPosition = new Range(factory.getStringTable());
strictfpPosition = new Range(factory.getStringTable());
extendsPosition = new Range(factory.getStringTable());
implementsPosition = new Range(factory.getStringTable());
bodyStartPosition = new Range(factory.getStringTable());
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkInterfaceGeneric;
}
@Override
public Range getPosition() {
return (Range)position;
}
@Override
public void setPosition(Range _position) {
if (factory.getStringTable() == _position.getStringTable())
position = _position;
else
position = new Range(factory.getStringTable(), _position);
}
@Override
public boolean getIsCompilerGenerated() {
return isCompilerGenerated;
}
@Override
public boolean getIsToolGenerated() {
return isToolGenerated;
}
@Override
public void setIsCompilerGenerated(boolean _isCompilerGenerated) {
isCompilerGenerated = _isCompilerGenerated;
}
@Override
public void setIsToolGenerated(boolean _isToolGenerated) {
isToolGenerated = _isToolGenerated;
}
@Override
public String getName() {
return factory.getStringTable().get(name);
}
@Override
public int getNameKey() {
return name;
}
@Override
public Range getNamePosition() {
return (Range)namePosition;
}
@Override
public void setName(String _name) {
name = factory.getStringTable().set(_name);
}
@Override
public void setNamePosition(Range _namePosition) {
if (factory.getStringTable() == _namePosition.getStringTable())
namePosition = _namePosition;
else
namePosition = new Range(factory.getStringTable(), _namePosition);
}
@Override
public AccessibilityKind getAccessibility() {
return accessibility;
}
@Override
public Range getAccessibilityPosition() {
return (Range)accessibilityPosition;
}
@Override
public boolean getIsStatic() {
return isStatic;
}
@Override
public Range getStaticPosition() {
return (Range)staticPosition;
}
@Override
public boolean getIsFinal() {
return isFinal;
}
@Override
public Range getFinalPosition() {
return (Range)finalPosition;
}
@Override
public void setAccessibility(AccessibilityKind _accessibility) {
accessibility = _accessibility;
}
@Override
public void setAccessibilityPosition(Range _accessibilityPosition) {
if (factory.getStringTable() == _accessibilityPosition.getStringTable())
accessibilityPosition = _accessibilityPosition;
else
accessibilityPosition = new Range(factory.getStringTable(), _accessibilityPosition);
}
@Override
public void setIsStatic(boolean _isStatic) {
isStatic = _isStatic;
}
@Override
public void setStaticPosition(Range _staticPosition) {
if (factory.getStringTable() == _staticPosition.getStringTable())
staticPosition = _staticPosition;
else
staticPosition = new Range(factory.getStringTable(), _staticPosition);
}
@Override
public void setIsFinal(boolean _isFinal) {
isFinal = _isFinal;
}
@Override
public void setFinalPosition(Range _finalPosition) {
if (factory.getStringTable() == _finalPosition.getStringTable())
finalPosition = _finalPosition;
else
finalPosition = new Range(factory.getStringTable(), _finalPosition);
}
@Override
public int getLloc() {
return lloc;
}
@Override
public Range getTypeNamePosition() {
return (Range)typeNamePosition;
}
@Override
public boolean getIsAbstract() {
return isAbstract;
}
@Override
public Range getAbstractPosition() {
return (Range)abstractPosition;
}
@Override
public boolean getIsStrictfp() {
return isStrictfp;
}
@Override
public Range getStrictfpPosition() {
return (Range)strictfpPosition;
}
@Override
public String getBinaryName() {
return factory.getStringTable().get(binaryName);
}
@Override
public int getBinaryNameKey() {
return binaryName;
}
@Override
public Range getExtendsPosition() {
return (Range)extendsPosition;
}
@Override
public Range getImplementsPosition() {
return (Range)implementsPosition;
}
@Override
public Range getBodyStartPosition() {
return (Range)bodyStartPosition;
}
@Override
public void setLloc(int _lloc) {
lloc = _lloc;
}
@Override
public void setTypeNamePosition(Range _typeNamePosition) {
if (factory.getStringTable() == _typeNamePosition.getStringTable())
typeNamePosition = _typeNamePosition;
else
typeNamePosition = new Range(factory.getStringTable(), _typeNamePosition);
}
@Override
public void setIsAbstract(boolean _isAbstract) {
isAbstract = _isAbstract;
}
@Override
public void setAbstractPosition(Range _abstractPosition) {
if (factory.getStringTable() == _abstractPosition.getStringTable())
abstractPosition = _abstractPosition;
else
abstractPosition = new Range(factory.getStringTable(), _abstractPosition);
}
@Override
public void setIsStrictfp(boolean _isStrictfp) {
isStrictfp = _isStrictfp;
}
@Override
public void setStrictfpPosition(Range _strictfpPosition) {
if (factory.getStringTable() == _strictfpPosition.getStringTable())
strictfpPosition = _strictfpPosition;
else
strictfpPosition = new Range(factory.getStringTable(), _strictfpPosition);
}
@Override
public void setBinaryName(String _binaryName) {
binaryName = factory.getStringTable().set(_binaryName);
}
@Override
public void setExtendsPosition(Range _extendsPosition) {
if (factory.getStringTable() == _extendsPosition.getStringTable())
extendsPosition = _extendsPosition;
else
extendsPosition = new Range(factory.getStringTable(), _extendsPosition);
}
@Override
public void setImplementsPosition(Range _implementsPosition) {
if (factory.getStringTable() == _implementsPosition.getStringTable())
implementsPosition = _implementsPosition;
else
implementsPosition = new Range(factory.getStringTable(), _implementsPosition);
}
@Override
public void setBodyStartPosition(Range _bodyStartPosition) {
if (factory.getStringTable() == _bodyStartPosition.getStringTable())
bodyStartPosition = _bodyStartPosition;
else
bodyStartPosition = new Range(factory.getStringTable(), _bodyStartPosition);
}
@Override
public EdgeIterator<Comment> getCommentsIterator() {
if (_comments == null)
return EdgeList.<Comment>emptyList().iterator();
else
return _comments.iterator();
}
@Override
public boolean getCommentsIsEmpty() {
if (_comments == null)
return true;
else
return _comments.isEmpty();
}
@Override
public int getCommentsSize() {
if (_comments == null)
return 0;
else
return _comments.size();
}
@Override
public void addComments(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkComment)) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void addComments(Comment _node) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_node);
}
@Override
public EdgeIterator<Annotation> getAnnotationsIterator() {
if (_hasAnnotations == null)
return EdgeList.<Annotation>emptyList().iterator();
else
return _hasAnnotations.iterator();
}
@Override
public boolean getAnnotationsIsEmpty() {
if (_hasAnnotations == null)
return true;
else
return _hasAnnotations.isEmpty();
}
@Override
public int getAnnotationsSize() {
if (_hasAnnotations == null)
return 0;
else
return _hasAnnotations.size();
}
@Override
public void addAnnotations(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkAnnotation)) {
if (_hasAnnotations == null)
_hasAnnotations = new EdgeList<Annotation>(factory);
_hasAnnotations.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addAnnotations(Annotation _node) {
if (_hasAnnotations == null)
_hasAnnotations = new EdgeList<Annotation>(factory);
_hasAnnotations.add(_node);
setParentEdge(_node);
}
@Override
public EdgeIterator<Member> getMembersIterator() {
if (_hasMembers == null)
return EdgeList.<Member>emptyList().iterator();
else
return _hasMembers.iterator();
}
@Override
public boolean getMembersIsEmpty() {
if (_hasMembers == null)
return true;
else
return _hasMembers.isEmpty();
}
@Override
public int getMembersSize() {
if (_hasMembers == null)
return 0;
else
return _hasMembers.size();
}
@Override
public void addMembers(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkMember)) {
if (_hasMembers == null)
_hasMembers = new EdgeList<Member>(factory);
_hasMembers.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addMembers(Member _node) {
if (_hasMembers == null)
_hasMembers = new EdgeList<Member>(factory);
_hasMembers.add(_node);
setParentEdge(_node);
}
@Override
public TypeExpression getSuperClass() {
if (_hasSuperClass == 0)
return null;
if (factory.getIsFiltered(_hasSuperClass))
return null;
return (TypeExpression)factory.getRef(_hasSuperClass);
}
@Override
public EdgeIterator<TypeExpression> getSuperInterfacesIterator() {
if (_hasSuperInterfaces == null)
return EdgeList.<TypeExpression>emptyList().iterator();
else
return _hasSuperInterfaces.iterator();
}
@Override
public boolean getSuperInterfacesIsEmpty() {
if (_hasSuperInterfaces == null)
return true;
else
return _hasSuperInterfaces.isEmpty();
}
@Override
public int getSuperInterfacesSize() {
if (_hasSuperInterfaces == null)
return 0;
else
return _hasSuperInterfaces.size();
}
@Override
public EdgeIterator<Positioned> getOthersIterator() {
if (_hasOthers == null)
return EdgeList.<Positioned>emptyList().iterator();
else
return _hasOthers.iterator();
}
@Override
public boolean getOthersIsEmpty() {
if (_hasOthers == null)
return true;
else
return _hasOthers.isEmpty();
}
@Override
public int getOthersSize() {
if (_hasOthers == null)
return 0;
else
return _hasOthers.size();
}
@Override
public CompilationUnit getIsInCompilationUnit() {
if (_isInCompilationUnit == 0)
return null;
if (factory.getIsFiltered(_isInCompilationUnit))
return null;
return (CompilationUnit)factory.getRef(_isInCompilationUnit);
}
@Override
public Module getIsInModule() {
if (_isInModule == 0)
return null;
if (factory.getIsFiltered(_isInModule))
return null;
return (Module)factory.getRef(_isInModule);
}
@Override
public void setSuperClass(int _id) {
if (_hasSuperClass != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasSuperClass" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkTypeExpression)) {
_hasSuperClass = _id;
setParentEdge(_hasSuperClass);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setSuperClass(TypeExpression _node) {
if (_hasSuperClass != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","hasSuperClass" ));
_hasSuperClass = _node.getId();
setParentEdge(_hasSuperClass);
}
@Override
public void addSuperInterfaces(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkTypeExpression)) {
if (_hasSuperInterfaces == null)
_hasSuperInterfaces = new EdgeList<TypeExpression>(factory);
_hasSuperInterfaces.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addSuperInterfaces(TypeExpression _node) {
if (_hasSuperInterfaces == null)
_hasSuperInterfaces = new EdgeList<TypeExpression>(factory);
_hasSuperInterfaces.add(_node);
setParentEdge(_node);
}
@Override
public void addOthers(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkPositioned)) {
if (_hasOthers == null)
_hasOthers = new EdgeList<Positioned>(factory);
_hasOthers.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addOthers(Positioned _node) {
if (_hasOthers == null)
_hasOthers = new EdgeList<Positioned>(factory);
_hasOthers.add(_node);
setParentEdge(_node);
}
@Override
public void setIsInCompilationUnit(int _id) {
if (_isInCompilationUnit != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","isInCompilationUnit" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (_node.getNodeKind() == NodeKind.ndkCompilationUnit) {
_isInCompilationUnit = _id;
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setIsInCompilationUnit(CompilationUnit _node) {
if (_isInCompilationUnit != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","isInCompilationUnit" ));
_isInCompilationUnit = _node.getId();
}
@Override
public void setIsInModule(int _id) {
if (_isInModule != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","isInModule" ));
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (_node.getNodeKind() == NodeKind.ndkModule) {
_isInModule = _id;
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void setIsInModule(Module _node) {
if (_isInModule != 0)
throw new JavaException(logger.formatMessage("ex.java.Node.The_previous_end_point","isInModule" ));
_isInModule = _node.getId();
}
@Override
public EdgeIterator<TypeParameter> getTypeParametersIterator() {
if (_hasTypeParameters == null)
return EdgeList.<TypeParameter>emptyList().iterator();
else
return _hasTypeParameters.iterator();
}
@Override
public boolean getTypeParametersIsEmpty() {
if (_hasTypeParameters == null)
return true;
else
return _hasTypeParameters.isEmpty();
}
@Override
public int getTypeParametersSize() {
if (_hasTypeParameters == null)
return 0;
else
return _hasTypeParameters.size();
}
@Override
public void addTypeParameters(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (_node.getNodeKind() == NodeKind.ndkTypeParameter) {
if (_hasTypeParameters == null)
_hasTypeParameters = new EdgeList<TypeParameter>(factory);
_hasTypeParameters.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addTypeParameters(TypeParameter _node) {
if (_hasTypeParameters == null)
_hasTypeParameters = new EdgeList<TypeParameter>(factory);
_hasTypeParameters.add(_node);
setParentEdge(_node);
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
if (_comments != null) {
EdgeIterator<Comment> it = getCommentsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
if (_hasAnnotations != null) {
EdgeIterator<Annotation> it = getAnnotationsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
io.writeInt4(((Range)position).getPathKey());
io.writeInt4(((Range)position).getLine());
io.writeInt4(((Range)position).getCol());
io.writeInt4(((Range)position).getEndLine());
io.writeInt4(((Range)position).getEndCol());
io.writeInt4(((Range)position).getWideLine());
io.writeInt4(((Range)position).getWideCol());
io.writeInt4(((Range)position).getWideEndLine());
io.writeInt4(((Range)position).getWideEndCol());
{
byte boolValues = 0;
boolValues <<= 1;
if (isCompilerGenerated)
boolValues |= 1;
boolValues <<= 1;
if (isToolGenerated)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeInt4(name);
io.writeInt4(((Range)namePosition).getPathKey());
io.writeInt4(((Range)namePosition).getLine());
io.writeInt4(((Range)namePosition).getCol());
io.writeInt4(((Range)namePosition).getEndLine());
io.writeInt4(((Range)namePosition).getEndCol());
io.writeInt4(((Range)namePosition).getWideLine());
io.writeInt4(((Range)namePosition).getWideCol());
io.writeInt4(((Range)namePosition).getWideEndLine());
io.writeInt4(((Range)namePosition).getWideEndCol());
{
byte boolValues = 0;
boolValues <<= 1;
if (isStatic)
boolValues |= 1;
boolValues <<= 1;
if (isFinal)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeUByte1(accessibility.ordinal());
io.writeInt4(((Range)accessibilityPosition).getPathKey());
io.writeInt4(((Range)accessibilityPosition).getLine());
io.writeInt4(((Range)accessibilityPosition).getCol());
io.writeInt4(((Range)accessibilityPosition).getEndLine());
io.writeInt4(((Range)accessibilityPosition).getEndCol());
io.writeInt4(((Range)accessibilityPosition).getWideLine());
io.writeInt4(((Range)accessibilityPosition).getWideCol());
io.writeInt4(((Range)accessibilityPosition).getWideEndLine());
io.writeInt4(((Range)accessibilityPosition).getWideEndCol());
io.writeInt4(((Range)staticPosition).getPathKey());
io.writeInt4(((Range)staticPosition).getLine());
io.writeInt4(((Range)staticPosition).getCol());
io.writeInt4(((Range)staticPosition).getEndLine());
io.writeInt4(((Range)staticPosition).getEndCol());
io.writeInt4(((Range)staticPosition).getWideLine());
io.writeInt4(((Range)staticPosition).getWideCol());
io.writeInt4(((Range)staticPosition).getWideEndLine());
io.writeInt4(((Range)staticPosition).getWideEndCol());
io.writeInt4(((Range)finalPosition).getPathKey());
io.writeInt4(((Range)finalPosition).getLine());
io.writeInt4(((Range)finalPosition).getCol());
io.writeInt4(((Range)finalPosition).getEndLine());
io.writeInt4(((Range)finalPosition).getEndCol());
io.writeInt4(((Range)finalPosition).getWideLine());
io.writeInt4(((Range)finalPosition).getWideCol());
io.writeInt4(((Range)finalPosition).getWideEndLine());
io.writeInt4(((Range)finalPosition).getWideEndCol());
if (_hasMembers != null) {
EdgeIterator<Member> it = getMembersIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
{
byte boolValues = 0;
boolValues <<= 1;
if (isAbstract)
boolValues |= 1;
boolValues <<= 1;
if (isStrictfp)
boolValues |= 1;
io.writeByte1(boolValues);
}
io.writeInt4(lloc);
io.writeInt4(((Range)typeNamePosition).getPathKey());
io.writeInt4(((Range)typeNamePosition).getLine());
io.writeInt4(((Range)typeNamePosition).getCol());
io.writeInt4(((Range)typeNamePosition).getEndLine());
io.writeInt4(((Range)typeNamePosition).getEndCol());
io.writeInt4(((Range)typeNamePosition).getWideLine());
io.writeInt4(((Range)typeNamePosition).getWideCol());
io.writeInt4(((Range)typeNamePosition).getWideEndLine());
io.writeInt4(((Range)typeNamePosition).getWideEndCol());
io.writeInt4(((Range)abstractPosition).getPathKey());
io.writeInt4(((Range)abstractPosition).getLine());
io.writeInt4(((Range)abstractPosition).getCol());
io.writeInt4(((Range)abstractPosition).getEndLine());
io.writeInt4(((Range)abstractPosition).getEndCol());
io.writeInt4(((Range)abstractPosition).getWideLine());
io.writeInt4(((Range)abstractPosition).getWideCol());
io.writeInt4(((Range)abstractPosition).getWideEndLine());
io.writeInt4(((Range)abstractPosition).getWideEndCol());
io.writeInt4(((Range)strictfpPosition).getPathKey());
io.writeInt4(((Range)strictfpPosition).getLine());
io.writeInt4(((Range)strictfpPosition).getCol());
io.writeInt4(((Range)strictfpPosition).getEndLine());
io.writeInt4(((Range)strictfpPosition).getEndCol());
io.writeInt4(((Range)strictfpPosition).getWideLine());
io.writeInt4(((Range)strictfpPosition).getWideCol());
io.writeInt4(((Range)strictfpPosition).getWideEndLine());
io.writeInt4(((Range)strictfpPosition).getWideEndCol());
io.writeInt4(binaryName);
io.writeInt4(((Range)extendsPosition).getPathKey());
io.writeInt4(((Range)extendsPosition).getLine());
io.writeInt4(((Range)extendsPosition).getCol());
io.writeInt4(((Range)extendsPosition).getEndLine());
io.writeInt4(((Range)extendsPosition).getEndCol());
io.writeInt4(((Range)extendsPosition).getWideLine());
io.writeInt4(((Range)extendsPosition).getWideCol());
io.writeInt4(((Range)extendsPosition).getWideEndLine());
io.writeInt4(((Range)extendsPosition).getWideEndCol());
io.writeInt4(((Range)implementsPosition).getPathKey());
io.writeInt4(((Range)implementsPosition).getLine());
io.writeInt4(((Range)implementsPosition).getCol());
io.writeInt4(((Range)implementsPosition).getEndLine());
io.writeInt4(((Range)implementsPosition).getEndCol());
io.writeInt4(((Range)implementsPosition).getWideLine());
io.writeInt4(((Range)implementsPosition).getWideCol());
io.writeInt4(((Range)implementsPosition).getWideEndLine());
io.writeInt4(((Range)implementsPosition).getWideEndCol());
io.writeInt4(((Range)bodyStartPosition).getPathKey());
io.writeInt4(((Range)bodyStartPosition).getLine());
io.writeInt4(((Range)bodyStartPosition).getCol());
io.writeInt4(((Range)bodyStartPosition).getEndLine());
io.writeInt4(((Range)bodyStartPosition).getEndCol());
io.writeInt4(((Range)bodyStartPosition).getWideLine());
io.writeInt4(((Range)bodyStartPosition).getWideCol());
io.writeInt4(((Range)bodyStartPosition).getWideEndLine());
io.writeInt4(((Range)bodyStartPosition).getWideEndCol());
io.writeInt4(!factory.getIsFiltered(_hasSuperClass) ? _hasSuperClass : 0);
io.writeInt4(!factory.getIsFiltered(_isInCompilationUnit) ? _isInCompilationUnit : 0);
io.writeInt4(!factory.getIsFiltered(_isInModule) ? _isInModule : 0);
if (_hasSuperInterfaces != null) {
EdgeIterator<TypeExpression> it = getSuperInterfacesIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
if (_hasOthers != null) {
EdgeIterator<Positioned> it = getOthersIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
if (_hasTypeParameters != null) {
EdgeIterator<TypeParameter> it = getTypeParametersIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
}
// ---------- Load ----------
@Override
public void load(IO io) {
int _id;
_id = io.readInt4();
if (_id != 0) {
_comments = new EdgeList<Comment>(factory);
while (_id != 0) {
_comments.add(_id);
_id = io.readInt4();
}
}
_id = io.readInt4();
if (_id != 0) {
_hasAnnotations = new EdgeList<Annotation>(factory);
while (_id != 0) {
_hasAnnotations.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
((Range)position).setPathKey(io.readInt4());
((Range)position).setLine(io.readInt4());
((Range)position).setCol(io.readInt4());
((Range)position).setEndLine(io.readInt4());
((Range)position).setEndCol(io.readInt4());
((Range)position).setWideLine(io.readInt4());
((Range)position).setWideCol(io.readInt4());
((Range)position).setWideEndLine(io.readInt4());
((Range)position).setWideEndCol(io.readInt4());
{
byte boolValues = io.readByte1();
isToolGenerated = (boolValues & 1) != 0;
boolValues >>>= 1;
isCompilerGenerated = (boolValues & 1) != 0;
boolValues >>>= 1;
}
name = io.readInt4();
((Range)namePosition).setPathKey(io.readInt4());
((Range)namePosition).setLine(io.readInt4());
((Range)namePosition).setCol(io.readInt4());
((Range)namePosition).setEndLine(io.readInt4());
((Range)namePosition).setEndCol(io.readInt4());
((Range)namePosition).setWideLine(io.readInt4());
((Range)namePosition).setWideCol(io.readInt4());
((Range)namePosition).setWideEndLine(io.readInt4());
((Range)namePosition).setWideEndCol(io.readInt4());
{
byte boolValues = io.readByte1();
isFinal = (boolValues & 1) != 0;
boolValues >>>= 1;
isStatic = (boolValues & 1) != 0;
boolValues >>>= 1;
}
accessibility = AccessibilityKind.values()[io.readUByte1()];
((Range)accessibilityPosition).setPathKey(io.readInt4());
((Range)accessibilityPosition).setLine(io.readInt4());
((Range)accessibilityPosition).setCol(io.readInt4());
((Range)accessibilityPosition).setEndLine(io.readInt4());
((Range)accessibilityPosition).setEndCol(io.readInt4());
((Range)accessibilityPosition).setWideLine(io.readInt4());
((Range)accessibilityPosition).setWideCol(io.readInt4());
((Range)accessibilityPosition).setWideEndLine(io.readInt4());
((Range)accessibilityPosition).setWideEndCol(io.readInt4());
((Range)staticPosition).setPathKey(io.readInt4());
((Range)staticPosition).setLine(io.readInt4());
((Range)staticPosition).setCol(io.readInt4());
((Range)staticPosition).setEndLine(io.readInt4());
((Range)staticPosition).setEndCol(io.readInt4());
((Range)staticPosition).setWideLine(io.readInt4());
((Range)staticPosition).setWideCol(io.readInt4());
((Range)staticPosition).setWideEndLine(io.readInt4());
((Range)staticPosition).setWideEndCol(io.readInt4());
((Range)finalPosition).setPathKey(io.readInt4());
((Range)finalPosition).setLine(io.readInt4());
((Range)finalPosition).setCol(io.readInt4());
((Range)finalPosition).setEndLine(io.readInt4());
((Range)finalPosition).setEndCol(io.readInt4());
((Range)finalPosition).setWideLine(io.readInt4());
((Range)finalPosition).setWideCol(io.readInt4());
((Range)finalPosition).setWideEndLine(io.readInt4());
((Range)finalPosition).setWideEndCol(io.readInt4());
_id = io.readInt4();
if (_id != 0) {
_hasMembers = new EdgeList<Member>(factory);
while (_id != 0) {
_hasMembers.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
{
byte boolValues = io.readByte1();
isStrictfp = (boolValues & 1) != 0;
boolValues >>>= 1;
isAbstract = (boolValues & 1) != 0;
boolValues >>>= 1;
}
lloc = io.readInt4();
((Range)typeNamePosition).setPathKey(io.readInt4());
((Range)typeNamePosition).setLine(io.readInt4());
((Range)typeNamePosition).setCol(io.readInt4());
((Range)typeNamePosition).setEndLine(io.readInt4());
((Range)typeNamePosition).setEndCol(io.readInt4());
((Range)typeNamePosition).setWideLine(io.readInt4());
((Range)typeNamePosition).setWideCol(io.readInt4());
((Range)typeNamePosition).setWideEndLine(io.readInt4());
((Range)typeNamePosition).setWideEndCol(io.readInt4());
((Range)abstractPosition).setPathKey(io.readInt4());
((Range)abstractPosition).setLine(io.readInt4());
((Range)abstractPosition).setCol(io.readInt4());
((Range)abstractPosition).setEndLine(io.readInt4());
((Range)abstractPosition).setEndCol(io.readInt4());
((Range)abstractPosition).setWideLine(io.readInt4());
((Range)abstractPosition).setWideCol(io.readInt4());
((Range)abstractPosition).setWideEndLine(io.readInt4());
((Range)abstractPosition).setWideEndCol(io.readInt4());
((Range)strictfpPosition).setPathKey(io.readInt4());
((Range)strictfpPosition).setLine(io.readInt4());
((Range)strictfpPosition).setCol(io.readInt4());
((Range)strictfpPosition).setEndLine(io.readInt4());
((Range)strictfpPosition).setEndCol(io.readInt4());
((Range)strictfpPosition).setWideLine(io.readInt4());
((Range)strictfpPosition).setWideCol(io.readInt4());
((Range)strictfpPosition).setWideEndLine(io.readInt4());
((Range)strictfpPosition).setWideEndCol(io.readInt4());
binaryName = io.readInt4();
((Range)extendsPosition).setPathKey(io.readInt4());
((Range)extendsPosition).setLine(io.readInt4());
((Range)extendsPosition).setCol(io.readInt4());
((Range)extendsPosition).setEndLine(io.readInt4());
((Range)extendsPosition).setEndCol(io.readInt4());
((Range)extendsPosition).setWideLine(io.readInt4());
((Range)extendsPosition).setWideCol(io.readInt4());
((Range)extendsPosition).setWideEndLine(io.readInt4());
((Range)extendsPosition).setWideEndCol(io.readInt4());
((Range)implementsPosition).setPathKey(io.readInt4());
((Range)implementsPosition).setLine(io.readInt4());
((Range)implementsPosition).setCol(io.readInt4());
((Range)implementsPosition).setEndLine(io.readInt4());
((Range)implementsPosition).setEndCol(io.readInt4());
((Range)implementsPosition).setWideLine(io.readInt4());
((Range)implementsPosition).setWideCol(io.readInt4());
((Range)implementsPosition).setWideEndLine(io.readInt4());
((Range)implementsPosition).setWideEndCol(io.readInt4());
((Range)bodyStartPosition).setPathKey(io.readInt4());
((Range)bodyStartPosition).setLine(io.readInt4());
((Range)bodyStartPosition).setCol(io.readInt4());
((Range)bodyStartPosition).setEndLine(io.readInt4());
((Range)bodyStartPosition).setEndCol(io.readInt4());
((Range)bodyStartPosition).setWideLine(io.readInt4());
((Range)bodyStartPosition).setWideCol(io.readInt4());
((Range)bodyStartPosition).setWideEndLine(io.readInt4());
((Range)bodyStartPosition).setWideEndCol(io.readInt4());
_hasSuperClass = io.readInt4();
if (_hasSuperClass != 0)
setParentEdge(_hasSuperClass);
_isInCompilationUnit = io.readInt4();
_isInModule = io.readInt4();
_id = io.readInt4();
if (_id != 0) {
_hasSuperInterfaces = new EdgeList<TypeExpression>(factory);
while (_id != 0) {
_hasSuperInterfaces.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
_id = io.readInt4();
if (_id != 0) {
_hasOthers = new EdgeList<Positioned>(factory);
while (_id != 0) {
_hasOthers.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
_id = io.readInt4();
if (_id != 0) {
_hasTypeParameters = new EdgeList<TypeParameter>(factory);
while (_id != 0) {
_hasTypeParameters.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
}
}
| 34,873 | 28.379949 | 138 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/ClassGeneric.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
/**
* Interface ClassGeneric, which represents the {@link columbus.java.asg.struc.ClassGeneric ClassGeneric} node.
* @columbus.node (missing)
*/
public interface ClassGeneric extends ClassDeclaration, GenericDeclaration {
}
| 995 | 30.125 | 111 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/Class.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
/**
* Interface Class, which represents the {@link columbus.java.asg.struc.Class Class} node.
* @columbus.node (missing)
*/
public interface Class extends ClassDeclaration {
}
| 947 | 28.625 | 90 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/TypeDeclaration.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
import columbus.java.asg.*;
import columbus.java.asg.expr.TypeExpression;
import columbus.java.asg.base.Positioned;
/**
* Interface TypeDeclaration, which represents the {@link columbus.java.asg.struc.TypeDeclaration TypeDeclaration} node.
* @columbus.node (missing)
* @columbus.attr lloc (int) : (missing)
* @columbus.attr typeNamePosition (Range) : (missing)
* @columbus.attr isAbstract (boolean) : (missing)
* @columbus.attr abstractPosition (Range) : (missing)
* @columbus.attr isStrictfp (boolean) : (missing)
* @columbus.attr strictfpPosition (Range) : (missing)
* @columbus.attr binaryName (String) : (missing)
* @columbus.attr extendsPosition (Range) : (missing)
* @columbus.attr implementsPosition (Range) : (missing)
* @columbus.attr bodyStartPosition (Range) : (missing)
* @columbus.edge hasSuperClass ({@link columbus.java.asg.expr.TypeExpression TypeExpression}, single) : (missing)
* @columbus.edge hasSuperInterfaces ({@link columbus.java.asg.expr.TypeExpression TypeExpression}, multiple) : (missing)
* @columbus.edge hasOthers ({@link columbus.java.asg.base.Positioned Positioned}, multiple) : (missing)
* @columbus.edge isInCompilationUnit ({@link columbus.java.asg.struc.CompilationUnit CompilationUnit}, single) : (missing)
* @columbus.edge isInModule ({@link columbus.java.asg.struc.Module Module}, single) : (missing)
*/
public interface TypeDeclaration extends NamedDeclaration, Scope {
/**
* Gives back the {@link columbus.java.asg.struc.TypeDeclaration#attributeLloc lloc} of the node.
* @return Returns with the lloc.
*/
public int getLloc();
/**
* Sets the {@link columbus.java.asg.struc.TypeDeclaration#attributeLloc lloc} of the node.
* @param value The new value of the lloc.
*/
public void setLloc(int value);
/**
* Gives back the {@link columbus.java.asg.struc.TypeDeclaration#attributeTypeNamePosition typeNamePosition} of the node.
* @return Returns with the typeNamePosition.
*/
public Range getTypeNamePosition();
/**
* Sets the {@link columbus.java.asg.struc.TypeDeclaration#attributeTypeNamePosition typeNamePosition} of the node.
* @param value The new value of the typeNamePosition.
*/
public void setTypeNamePosition(Range value);
/**
* Gives back the {@link columbus.java.asg.struc.TypeDeclaration#attributeIsAbstract isAbstract} of the node.
* @return Returns with the isAbstract.
*/
public boolean getIsAbstract();
/**
* Sets the {@link columbus.java.asg.struc.TypeDeclaration#attributeIsAbstract isAbstract} of the node.
* @param value The new value of the isAbstract.
*/
public void setIsAbstract(boolean value);
/**
* Gives back the {@link columbus.java.asg.struc.TypeDeclaration#attributeAbstractPosition abstractPosition} of the node.
* @return Returns with the abstractPosition.
*/
public Range getAbstractPosition();
/**
* Sets the {@link columbus.java.asg.struc.TypeDeclaration#attributeAbstractPosition abstractPosition} of the node.
* @param value The new value of the abstractPosition.
*/
public void setAbstractPosition(Range value);
/**
* Gives back the {@link columbus.java.asg.struc.TypeDeclaration#attributeIsStrictfp isStrictfp} of the node.
* @return Returns with the isStrictfp.
*/
public boolean getIsStrictfp();
/**
* Sets the {@link columbus.java.asg.struc.TypeDeclaration#attributeIsStrictfp isStrictfp} of the node.
* @param value The new value of the isStrictfp.
*/
public void setIsStrictfp(boolean value);
/**
* Gives back the {@link columbus.java.asg.struc.TypeDeclaration#attributeStrictfpPosition strictfpPosition} of the node.
* @return Returns with the strictfpPosition.
*/
public Range getStrictfpPosition();
/**
* Sets the {@link columbus.java.asg.struc.TypeDeclaration#attributeStrictfpPosition strictfpPosition} of the node.
* @param value The new value of the strictfpPosition.
*/
public void setStrictfpPosition(Range value);
/**
* Gives back the {@link columbus.java.asg.struc.TypeDeclaration#attributeBinaryName binaryName} of the node.
* @return Returns with the binaryName.
*/
public String getBinaryName();
/**
* Gives back the Key of {@link columbus.java.asg.struc.TypeDeclaration#attributeBinaryName binaryName} of the node.
* @return Returns with the Key of the binaryName.
*/
public int getBinaryNameKey();
/**
* Sets the {@link columbus.java.asg.struc.TypeDeclaration#attributeBinaryName binaryName} of the node.
* @param value The new value of the binaryName.
*/
public void setBinaryName(String value);
/**
* Gives back the {@link columbus.java.asg.struc.TypeDeclaration#attributeExtendsPosition extendsPosition} of the node.
* @return Returns with the extendsPosition.
*/
public Range getExtendsPosition();
/**
* Sets the {@link columbus.java.asg.struc.TypeDeclaration#attributeExtendsPosition extendsPosition} of the node.
* @param value The new value of the extendsPosition.
*/
public void setExtendsPosition(Range value);
/**
* Gives back the {@link columbus.java.asg.struc.TypeDeclaration#attributeImplementsPosition implementsPosition} of the node.
* @return Returns with the implementsPosition.
*/
public Range getImplementsPosition();
/**
* Sets the {@link columbus.java.asg.struc.TypeDeclaration#attributeImplementsPosition implementsPosition} of the node.
* @param value The new value of the implementsPosition.
*/
public void setImplementsPosition(Range value);
/**
* Gives back the {@link columbus.java.asg.struc.TypeDeclaration#attributeBodyStartPosition bodyStartPosition} of the node.
* @return Returns with the bodyStartPosition.
*/
public Range getBodyStartPosition();
/**
* Sets the {@link columbus.java.asg.struc.TypeDeclaration#attributeBodyStartPosition bodyStartPosition} of the node.
* @param value The new value of the bodyStartPosition.
*/
public void setBodyStartPosition(Range value);
/**
* Gives back the reference of the node the {@link columbus.java.asg.struc.TypeDeclaration#edgeHasSuperClass hasSuperClass} edge points to.
* @return Returns the end point of the hasSuperClass edge.
*/
public TypeExpression getSuperClass();
/**
* Sets the {@link columbus.java.asg.struc.TypeDeclaration#edgeHasSuperClass hasSuperClass} edge.
* @param id The new end point of the hasSuperClass edge.
*/
public void setSuperClass(int id);
/**
* Sets the {@link columbus.java.asg.struc.TypeDeclaration#edgeHasSuperClass hasSuperClass} edge.
* @param node The new end point of the hasSuperClass edge.
*/
public void setSuperClass(TypeExpression node);
/**
* Gives back iterator for the {@link columbus.java.asg.struc.TypeDeclaration#edgeHasSuperInterfaces hasSuperInterfaces} edges.
* @return Returns an iterator for the hasSuperInterfaces edges.
*/
public EdgeIterator<TypeExpression> getSuperInterfacesIterator();
/**
* Tells whether the node has {@link columbus.java.asg.struc.TypeDeclaration#edgeHasSuperInterfaces hasSuperInterfaces} edges or not.
* @return Returns true if the node doesn't have any hasSuperInterfaces edge.
*/
public boolean getSuperInterfacesIsEmpty();
/**
* Gives back how many {@link columbus.java.asg.struc.TypeDeclaration#edgeHasSuperInterfaces hasSuperInterfaces} edges the node has.
* @return Returns with the number of hasSuperInterfaces edges.
*/
public int getSuperInterfacesSize();
/**
* Adds a new {@link columbus.java.asg.struc.TypeDeclaration#edgeHasSuperInterfaces hasSuperInterfaces} edge to the node.
* @param id The end point of the new hasSuperInterfaces edge.
*/
public void addSuperInterfaces(int id);
/**
* Adds a new {@link columbus.java.asg.struc.TypeDeclaration#edgeHasSuperInterfaces hasSuperInterfaces} edge to the node.
* @param node The end point of the new hasSuperInterfaces edge.
*/
public void addSuperInterfaces(TypeExpression node);
/**
* Gives back iterator for the {@link columbus.java.asg.struc.TypeDeclaration#edgeHasOthers hasOthers} edges.
* @return Returns an iterator for the hasOthers edges.
*/
public EdgeIterator<Positioned> getOthersIterator();
/**
* Tells whether the node has {@link columbus.java.asg.struc.TypeDeclaration#edgeHasOthers hasOthers} edges or not.
* @return Returns true if the node doesn't have any hasOthers edge.
*/
public boolean getOthersIsEmpty();
/**
* Gives back how many {@link columbus.java.asg.struc.TypeDeclaration#edgeHasOthers hasOthers} edges the node has.
* @return Returns with the number of hasOthers edges.
*/
public int getOthersSize();
/**
* Adds a new {@link columbus.java.asg.struc.TypeDeclaration#edgeHasOthers hasOthers} edge to the node.
* @param id The end point of the new hasOthers edge.
*/
public void addOthers(int id);
/**
* Adds a new {@link columbus.java.asg.struc.TypeDeclaration#edgeHasOthers hasOthers} edge to the node.
* @param node The end point of the new hasOthers edge.
*/
public void addOthers(Positioned node);
/**
* Gives back the reference of the node the {@link columbus.java.asg.struc.TypeDeclaration#edgeIsInCompilationUnit isInCompilationUnit} edge points to.
* @return Returns the end point of the isInCompilationUnit edge.
*/
public CompilationUnit getIsInCompilationUnit();
/**
* Sets the {@link columbus.java.asg.struc.TypeDeclaration#edgeIsInCompilationUnit isInCompilationUnit} edge.
* @param id The new end point of the isInCompilationUnit edge.
*/
public void setIsInCompilationUnit(int id);
/**
* Sets the {@link columbus.java.asg.struc.TypeDeclaration#edgeIsInCompilationUnit isInCompilationUnit} edge.
* @param node The new end point of the isInCompilationUnit edge.
*/
public void setIsInCompilationUnit(CompilationUnit node);
/**
* Gives back the reference of the node the {@link columbus.java.asg.struc.TypeDeclaration#edgeIsInModule isInModule} edge points to.
* @return Returns the end point of the isInModule edge.
*/
public Module getIsInModule();
/**
* Sets the {@link columbus.java.asg.struc.TypeDeclaration#edgeIsInModule isInModule} edge.
* @param id The new end point of the isInModule edge.
*/
public void setIsInModule(int id);
/**
* Sets the {@link columbus.java.asg.struc.TypeDeclaration#edgeIsInModule isInModule} edge.
* @param node The new end point of the isInModule edge.
*/
public void setIsInModule(Module node);
}
| 11,137 | 37.406897 | 152 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/PackageImpl.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
import columbus.IO;
import columbus.java.asg.*;
import columbus.java.asg.base.BaseImpl;
import columbus.java.asg.base.Base;
import columbus.java.asg.base.Comment;
import columbus.java.asg.expr.Annotation;
import columbus.java.asg.enums.*;
import columbus.java.asg.visitors.Visitor;
import columbus.logger.LoggerHandler;
/**
* Implementation class for the {@link columbus.java.asg.struc.Package Package} node.
* <p><b>WARNING: For internal use only.</b></p>
*/
public class PackageImpl extends BaseImpl implements Package {
@SuppressWarnings("unused")
private static final LoggerHandler logger = new LoggerHandler(PackageImpl.class, columbus.java.asg.Constant.LoggerPropertyFile);
protected EdgeList<Comment> _comments;
protected EdgeList<Annotation> _hasAnnotations;
protected int name;
protected Object namePosition;
protected EdgeList<Member> _hasMembers;
protected int qualifiedName;
protected EdgeList<CompilationUnit> _hasCompilationUnits;
protected EdgeList<Module> _isInModule;
public PackageImpl(int id, Factory factory) {
super(id, factory);
namePosition = new Range(factory.getStringTable());
}
@Override
public NodeKind getNodeKind() {
return NodeKind.ndkPackage;
}
@Override
public String getName() {
return factory.getStringTable().get(name);
}
@Override
public int getNameKey() {
return name;
}
@Override
public Range getNamePosition() {
return (Range)namePosition;
}
@Override
public void setName(String _name) {
name = factory.getStringTable().set(_name);
}
@Override
public void setNamePosition(Range _namePosition) {
if (factory.getStringTable() == _namePosition.getStringTable())
namePosition = _namePosition;
else
namePosition = new Range(factory.getStringTable(), _namePosition);
}
@Override
public String getQualifiedName() {
return factory.getStringTable().get(qualifiedName);
}
@Override
public int getQualifiedNameKey() {
return qualifiedName;
}
@Override
public void setQualifiedName(String _qualifiedName) {
qualifiedName = factory.getStringTable().set(_qualifiedName);
}
@Override
public EdgeIterator<Comment> getCommentsIterator() {
if (_comments == null)
return EdgeList.<Comment>emptyList().iterator();
else
return _comments.iterator();
}
@Override
public boolean getCommentsIsEmpty() {
if (_comments == null)
return true;
else
return _comments.isEmpty();
}
@Override
public int getCommentsSize() {
if (_comments == null)
return 0;
else
return _comments.size();
}
@Override
public void addComments(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkComment)) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void addComments(Comment _node) {
if (_comments == null)
_comments = new EdgeList<Comment>(factory);
_comments.add(_node);
}
@Override
public EdgeIterator<Annotation> getAnnotationsIterator() {
if (_hasAnnotations == null)
return EdgeList.<Annotation>emptyList().iterator();
else
return _hasAnnotations.iterator();
}
@Override
public boolean getAnnotationsIsEmpty() {
if (_hasAnnotations == null)
return true;
else
return _hasAnnotations.isEmpty();
}
@Override
public int getAnnotationsSize() {
if (_hasAnnotations == null)
return 0;
else
return _hasAnnotations.size();
}
@Override
public void addAnnotations(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkAnnotation)) {
if (_hasAnnotations == null)
_hasAnnotations = new EdgeList<Annotation>(factory);
_hasAnnotations.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addAnnotations(Annotation _node) {
if (_hasAnnotations == null)
_hasAnnotations = new EdgeList<Annotation>(factory);
_hasAnnotations.add(_node);
setParentEdge(_node);
}
@Override
public EdgeIterator<Member> getMembersIterator() {
if (_hasMembers == null)
return EdgeList.<Member>emptyList().iterator();
else
return _hasMembers.iterator();
}
@Override
public boolean getMembersIsEmpty() {
if (_hasMembers == null)
return true;
else
return _hasMembers.isEmpty();
}
@Override
public int getMembersSize() {
if (_hasMembers == null)
return 0;
else
return _hasMembers.size();
}
@Override
public void addMembers(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (Common.getIsBaseClassKind(_node.getNodeKind(), NodeKind.ndkMember)) {
if (_hasMembers == null)
_hasMembers = new EdgeList<Member>(factory);
_hasMembers.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addMembers(Member _node) {
if (_hasMembers == null)
_hasMembers = new EdgeList<Member>(factory);
_hasMembers.add(_node);
setParentEdge(_node);
}
@Override
public EdgeIterator<CompilationUnit> getCompilationUnitsIterator() {
if (_hasCompilationUnits == null)
return EdgeList.<CompilationUnit>emptyList().iterator();
else
return _hasCompilationUnits.iterator();
}
@Override
public boolean getCompilationUnitsIsEmpty() {
if (_hasCompilationUnits == null)
return true;
else
return _hasCompilationUnits.isEmpty();
}
@Override
public int getCompilationUnitsSize() {
if (_hasCompilationUnits == null)
return 0;
else
return _hasCompilationUnits.size();
}
@Override
public EdgeIterator<Module> getIsInModuleIterator() {
if (_isInModule == null)
return EdgeList.<Module>emptyList().iterator();
else
return _isInModule.iterator();
}
@Override
public boolean getIsInModuleIsEmpty() {
if (_isInModule == null)
return true;
else
return _isInModule.isEmpty();
}
@Override
public int getIsInModuleSize() {
if (_isInModule == null)
return 0;
else
return _isInModule.size();
}
@Override
public void addCompilationUnits(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (_node.getNodeKind() == NodeKind.ndkCompilationUnit) {
if (_hasCompilationUnits == null)
_hasCompilationUnits = new EdgeList<CompilationUnit>(factory);
_hasCompilationUnits.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
setParentEdge(_id);
}
@Override
public void addCompilationUnits(CompilationUnit _node) {
if (_hasCompilationUnits == null)
_hasCompilationUnits = new EdgeList<CompilationUnit>(factory);
_hasCompilationUnits.add(_node);
setParentEdge(_node);
}
@Override
public void addIsInModule(int _id) {
if (!factory.getExist(_id))
throw new JavaException(logger.formatMessage("ex.java.Node.No_end_point"));
Base _node = factory.getRef(_id);
if (_node.getNodeKind() == NodeKind.ndkModule) {
if (_isInModule == null)
_isInModule = new EdgeList<Module>(factory);
_isInModule.add(_id);
} else {
throw new JavaException(logger.formatMessage("ex.java.Node.Invalid","NodeKind", _node.getNodeKind() ));
}
}
@Override
public void addIsInModule(Module _node) {
if (_isInModule == null)
_isInModule = new EdgeList<Module>(factory);
_isInModule.add(_node);
}
// ---------- Accept methods for Visitor ----------
@Override
public void accept(Visitor visitor) {
visitor.visit(this, true);
}
@Override
public void acceptEnd(Visitor visitor) {
visitor.visitEnd(this, true);
}
// ---------- Save ----------
@Override
public void save(IO io) {
io.writeInt4(id);
io.writeUShort2(getNodeKind().ordinal());
if (_comments != null) {
EdgeIterator<Comment> it = getCommentsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
if (_hasAnnotations != null) {
EdgeIterator<Annotation> it = getAnnotationsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
io.writeInt4(name);
io.writeInt4(((Range)namePosition).getPathKey());
io.writeInt4(((Range)namePosition).getLine());
io.writeInt4(((Range)namePosition).getCol());
io.writeInt4(((Range)namePosition).getEndLine());
io.writeInt4(((Range)namePosition).getEndCol());
io.writeInt4(((Range)namePosition).getWideLine());
io.writeInt4(((Range)namePosition).getWideCol());
io.writeInt4(((Range)namePosition).getWideEndLine());
io.writeInt4(((Range)namePosition).getWideEndCol());
if (_hasMembers != null) {
EdgeIterator<Member> it = getMembersIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
io.writeInt4(qualifiedName);
if (_hasCompilationUnits != null) {
EdgeIterator<CompilationUnit> it = getCompilationUnitsIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
if (_isInModule != null) {
EdgeIterator<Module> it = getIsInModuleIterator();
while (it.hasNext()) {
io.writeInt4(it.next().getId());
}
}
io.writeInt4(0);
}
// ---------- Load ----------
@Override
public void load(IO io) {
int _id;
_id = io.readInt4();
if (_id != 0) {
_comments = new EdgeList<Comment>(factory);
while (_id != 0) {
_comments.add(_id);
_id = io.readInt4();
}
}
_id = io.readInt4();
if (_id != 0) {
_hasAnnotations = new EdgeList<Annotation>(factory);
while (_id != 0) {
_hasAnnotations.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
name = io.readInt4();
((Range)namePosition).setPathKey(io.readInt4());
((Range)namePosition).setLine(io.readInt4());
((Range)namePosition).setCol(io.readInt4());
((Range)namePosition).setEndLine(io.readInt4());
((Range)namePosition).setEndCol(io.readInt4());
((Range)namePosition).setWideLine(io.readInt4());
((Range)namePosition).setWideCol(io.readInt4());
((Range)namePosition).setWideEndLine(io.readInt4());
((Range)namePosition).setWideEndCol(io.readInt4());
_id = io.readInt4();
if (_id != 0) {
_hasMembers = new EdgeList<Member>(factory);
while (_id != 0) {
_hasMembers.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
qualifiedName = io.readInt4();
_id = io.readInt4();
if (_id != 0) {
_hasCompilationUnits = new EdgeList<CompilationUnit>(factory);
while (_id != 0) {
_hasCompilationUnits.add(_id);
setParentEdge(_id);
_id = io.readInt4();
}
}
_id = io.readInt4();
if (_id != 0) {
_isInModule = new EdgeList<Module>(factory);
while (_id != 0) {
_isInModule.add(_id);
_id = io.readInt4();
}
}
}
}
| 12,101 | 23.350101 | 129 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/Member.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
import columbus.java.asg.base.Commentable;
/**
* Interface Member, which represents the {@link columbus.java.asg.struc.Member Member} node.
* @columbus.node (missing)
*/
public interface Member extends Commentable, AnnotatedElement {
}
| 1,007 | 29.545455 | 93 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/InitializerBlock.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
import columbus.java.asg.statm.Block;
/**
* Interface InitializerBlock, which represents the {@link columbus.java.asg.struc.InitializerBlock InitializerBlock} node.
* @columbus.node (missing)
* @columbus.attr lloc (int) : (missing)
* @columbus.edge hasBody ({@link columbus.java.asg.statm.Block Block}, single) : (missing)
*/
public interface InitializerBlock extends Declaration {
/**
* Gives back the {@link columbus.java.asg.struc.InitializerBlock#attributeLloc lloc} of the node.
* @return Returns with the lloc.
*/
public int getLloc();
/**
* Sets the {@link columbus.java.asg.struc.InitializerBlock#attributeLloc lloc} of the node.
* @param value The new value of the lloc.
*/
public void setLloc(int value);
/**
* Gives back the reference of the node the {@link columbus.java.asg.struc.InitializerBlock#edgeHasBody hasBody} edge points to.
* @return Returns the end point of the hasBody edge.
*/
public Block getBody();
/**
* Sets the {@link columbus.java.asg.struc.InitializerBlock#edgeHasBody hasBody} edge.
* @param id The new end point of the hasBody edge.
*/
public void setBody(int id);
/**
* Sets the {@link columbus.java.asg.struc.InitializerBlock#edgeHasBody hasBody} edge.
* @param node The new end point of the hasBody edge.
*/
public void setBody(Block node);
}
| 2,099 | 31.307692 | 129 | java |
OpenStaticAnalyzer | OpenStaticAnalyzer-master/java/lib/java/src/main/java/columbus/java/asg/struc/Method.java | /*
* This file is part of OpenStaticAnalyzer.
*
* Copyright (c) 2004-2018 Department of Software Engineering - University of Szeged
*
* Licensed under Version 1.2 of the EUPL (the "Licence");
*
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence in the LICENSE file or at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and
* limitations under the Licence.
*/
package columbus.java.asg.struc;
/**
* Interface Method, which represents the {@link columbus.java.asg.struc.Method Method} node.
* @columbus.node (missing)
*/
public interface Method extends NormalMethod {
}
| 947 | 28.625 | 93 | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.