diff --git a/build-logic/src/main/kotlin/com/ibm/wala/gradle/VerifiedDownload.kt b/build-logic/src/main/kotlin/com/ibm/wala/gradle/VerifiedDownload.kt
index 0e95bd439c..869f593c54 100644
--- a/build-logic/src/main/kotlin/com/ibm/wala/gradle/VerifiedDownload.kt
+++ b/build-logic/src/main/kotlin/com/ibm/wala/gradle/VerifiedDownload.kt
@@ -49,7 +49,7 @@ abstract class VerifiedDownload : DefaultTask() {
@TaskAction
fun downloadAndVerify() {
downloadExtension.run {
- src(this@VerifiedDownload.src.map { it.toURL() })
+ src(this@VerifiedDownload.src)
dest(this@VerifiedDownload.dest)
overwrite(true)
onlyIfModified(true)
@@ -57,7 +57,7 @@ abstract class VerifiedDownload : DefaultTask() {
retries(5)
}
verifyExtension.run {
- src(this@VerifiedDownload.dest.get().asFile)
+ src(this@VerifiedDownload.dest)
algorithm(this@VerifiedDownload.algorithm.get())
checksum(this@VerifiedDownload.checksum.get())
}
diff --git a/cast/java/ecj/src/main/java/com/ibm/wala/cast/java/ecj/util/SourceDirCallGraph.java b/cast/java/ecj/src/main/java/com/ibm/wala/cast/java/ecj/util/SourceDirCallGraph.java
index b5303a3898..f15af188a3 100644
--- a/cast/java/ecj/src/main/java/com/ibm/wala/cast/java/ecj/util/SourceDirCallGraph.java
+++ b/cast/java/ecj/src/main/java/com/ibm/wala/cast/java/ecj/util/SourceDirCallGraph.java
@@ -51,7 +51,9 @@ public interface Processor {
*
Example args: -sourceDir /tmp/srcTest -mainClass LFoo
*/
public static void main(String[] args)
- throws ClassHierarchyException, IllegalArgumentException, CallGraphBuilderCancelException,
+ throws ClassHierarchyException,
+ IllegalArgumentException,
+ CallGraphBuilderCancelException,
IOException {
new SourceDirCallGraph()
.doit(
@@ -68,7 +70,9 @@ protected ClassLoaderFactory getLoaderFactory(AnalysisScope scope) {
}
public void doit(String[] args, Processor processor)
- throws ClassHierarchyException, IllegalArgumentException, CallGraphBuilderCancelException,
+ throws ClassHierarchyException,
+ IllegalArgumentException,
+ CallGraphBuilderCancelException,
IOException {
long start = System.currentTimeMillis();
Properties p = CommandLine.parse(args);
diff --git a/cast/java/ecj/src/main/java/com/ibm/wala/cast/java/translator/jdt/JDTJava2CAstTranslator.java b/cast/java/ecj/src/main/java/com/ibm/wala/cast/java/translator/jdt/JDTJava2CAstTranslator.java
index 8599988155..aa2ea2c80b 100644
--- a/cast/java/ecj/src/main/java/com/ibm/wala/cast/java/translator/jdt/JDTJava2CAstTranslator.java
+++ b/cast/java/ecj/src/main/java/com/ibm/wala/cast/java/translator/jdt/JDTJava2CAstTranslator.java
@@ -444,7 +444,9 @@ private CAstEntity visitTypeDecl(AbstractTypeDeclaration n, WalkContext context)
makePosition(n.getName()));
}
- /** @param name Used in creating default constructor, and passed into new ClassEntity() */
+ /**
+ * @param name Used in creating default constructor, and passed into new ClassEntity()
+ */
private CAstEntity createClassDeclaration(
ASTNode n,
List bodyDecls,
@@ -4589,7 +4591,9 @@ private CAstEntity visit(EnumDeclaration n, WalkContext context) {
makePosition(n.getName()));
}
- /** @param n for positioning. */
+ /**
+ * @param n for positioning.
+ */
private CAstEntity createEnumConstructorWithParameters(
IMethodBinding ctor,
ASTNode n,
diff --git a/cast/java/ecj/src/main/java/com/ibm/wala/cast/java/translator/jdt/JDTTypeDictionary.java b/cast/java/ecj/src/main/java/com/ibm/wala/cast/java/translator/jdt/JDTTypeDictionary.java
index 286509e2cd..a71c71d033 100644
--- a/cast/java/ecj/src/main/java/com/ibm/wala/cast/java/translator/jdt/JDTTypeDictionary.java
+++ b/cast/java/ecj/src/main/java/com/ibm/wala/cast/java/translator/jdt/JDTTypeDictionary.java
@@ -64,7 +64,9 @@ public class JDTTypeDictionary extends CAstTypeDictionaryImpl {
protected final JDTIdentityMapper fIdentityMapper; // TAGALONG
- /** @param ast Needed to get root type "java.lang.Object" */
+ /**
+ * @param ast Needed to get root type "java.lang.Object"
+ */
public JDTTypeDictionary(AST ast, JDTIdentityMapper identityMapper) {
fAst = ast;
fIdentityMapper = identityMapper;
diff --git a/cast/java/src/main/java/com/ibm/wala/cast/java/ipa/slicer/AstJavaSlicer.java b/cast/java/src/main/java/com/ibm/wala/cast/java/ipa/slicer/AstJavaSlicer.java
index 57e807e05b..0f0c85c659 100644
--- a/cast/java/src/main/java/com/ibm/wala/cast/java/ipa/slicer/AstJavaSlicer.java
+++ b/cast/java/src/main/java/com/ibm/wala/cast/java/ipa/slicer/AstJavaSlicer.java
@@ -47,7 +47,9 @@ public static Collection computeBackwardSlice(SDG> sdg, Collection<
return computeSlice(sdg, ss, true);
}
- /** @param ss a collection of statements of interest */
+ /**
+ * @param ss a collection of statements of interest
+ */
public static Collection computeSlice(
SDG> sdg, Collection ss, boolean backward) throws CancelException {
return new Slicer().slice(sdg, ss, backward);
diff --git a/cast/java/src/main/java/com/ibm/wala/cast/java/loader/JavaSourceLoaderImpl.java b/cast/java/src/main/java/com/ibm/wala/cast/java/loader/JavaSourceLoaderImpl.java
index 899d4cdc1c..0406529f56 100644
--- a/cast/java/src/main/java/com/ibm/wala/cast/java/loader/JavaSourceLoaderImpl.java
+++ b/cast/java/src/main/java/com/ibm/wala/cast/java/loader/JavaSourceLoaderImpl.java
@@ -85,6 +85,7 @@ public abstract class JavaSourceLoaderImpl extends ClassLoaderImpl {
/* BEGIN Custom change: Common superclass is optional */
private final boolean
existsCommonSuperclass; // extension to deal with X10 that has no common superclass
+
/* END Custom change: Common superclass is optional */
/**
@@ -589,6 +590,7 @@ public JavaSourceLoaderImpl(
// standard case: we have a common super class
this(true, loaderRef, parent, cha);
}
+
/* END Custom change: Common superclass is optional */
public IClassHierarchy getClassHierarchy() {
return cha;
@@ -600,8 +602,10 @@ protected void loadAllSources(Set modules) {
}
protected abstract SourceModuleTranslator getTranslator();
+
/* BEGIN Custom change: Optional deletion of fTypeMap */
public static volatile boolean deleteTypeMapAfterInit = true;
+
/* END Custom change: Optional deletion of fTypeMap */
@Override
public void init(List modules) throws IOException {
diff --git a/cast/js/html/nu_validator/src/main/java/com/ibm/wala/cast/js/html/nu_validator/NuValidatorHtmlParser.java b/cast/js/html/nu_validator/src/main/java/com/ibm/wala/cast/js/html/nu_validator/NuValidatorHtmlParser.java
index 2b66be1f4e..ac48364749 100644
--- a/cast/js/html/nu_validator/src/main/java/com/ibm/wala/cast/js/html/nu_validator/NuValidatorHtmlParser.java
+++ b/cast/js/html/nu_validator/src/main/java/com/ibm/wala/cast/js/html/nu_validator/NuValidatorHtmlParser.java
@@ -60,7 +60,8 @@ private int countLines(char[] ch, int start, int length) {
LineNumberReader r =
new LineNumberReader(new StringReader(new String(ch, start, length)));
try {
- while (r.read() > -1) ;
+ while (r.read() > -1)
+ ;
} catch (IOException e) {
throw new RuntimeException("cannot read from string", e);
}
diff --git a/cast/js/nodejs/src/main/java/com/ibm/wala/cast/js/nodejs/NodejsCallGraphBuilderUtil.java b/cast/js/nodejs/src/main/java/com/ibm/wala/cast/js/nodejs/NodejsCallGraphBuilderUtil.java
index 1985792c77..f3cb8b1323 100644
--- a/cast/js/nodejs/src/main/java/com/ibm/wala/cast/js/nodejs/NodejsCallGraphBuilderUtil.java
+++ b/cast/js/nodejs/src/main/java/com/ibm/wala/cast/js/nodejs/NodejsCallGraphBuilderUtil.java
@@ -44,7 +44,9 @@
import java.util.Collection;
import java.util.Collections;
-/** @author Brian Pfretzschner <brian.pfretzschner@gmail.com> */
+/**
+ * @author Brian Pfretzschner <brian.pfretzschner@gmail.com>
+ */
public class NodejsCallGraphBuilderUtil extends JSCallGraphUtil {
public static PropagationCallGraphBuilder makeCGBuilder(File mainFile)
diff --git a/cast/js/nodejs/src/main/java/com/ibm/wala/cast/js/nodejs/NodejsRequiredCoreModule.java b/cast/js/nodejs/src/main/java/com/ibm/wala/cast/js/nodejs/NodejsRequiredCoreModule.java
index 42468f76d1..a5ea172355 100644
--- a/cast/js/nodejs/src/main/java/com/ibm/wala/cast/js/nodejs/NodejsRequiredCoreModule.java
+++ b/cast/js/nodejs/src/main/java/com/ibm/wala/cast/js/nodejs/NodejsRequiredCoreModule.java
@@ -24,7 +24,9 @@
import java.util.Set;
import org.apache.commons.io.FilenameUtils;
-/** @author Brian Pfretzschner <brian.pfretzschner@gmail.com> */
+/**
+ * @author Brian Pfretzschner <brian.pfretzschner@gmail.com>
+ */
public class NodejsRequiredCoreModule extends NodejsRequiredSourceModule {
/**
diff --git a/cast/js/nodejs/src/main/java/com/ibm/wala/cast/js/nodejs/NodejsRequiredSourceModule.java b/cast/js/nodejs/src/main/java/com/ibm/wala/cast/js/nodejs/NodejsRequiredSourceModule.java
index 703fd0dfb7..13ecbdbea2 100644
--- a/cast/js/nodejs/src/main/java/com/ibm/wala/cast/js/nodejs/NodejsRequiredSourceModule.java
+++ b/cast/js/nodejs/src/main/java/com/ibm/wala/cast/js/nodejs/NodejsRequiredSourceModule.java
@@ -44,7 +44,9 @@ public class NodejsRequiredSourceModule extends SourceFileModule {
private final String className;
- /** @param f Must be a file located below folder workingDir. */
+ /**
+ * @param f Must be a file located below folder workingDir.
+ */
protected NodejsRequiredSourceModule(String className, File f, SourceFileModule clonedFrom)
throws IOException {
super(f, clonedFrom);
diff --git a/cast/js/nodejs/src/test/java/com/ibm/wala/cast/js/nodejs/test/NodejsRequireJsonTest.java b/cast/js/nodejs/src/test/java/com/ibm/wala/cast/js/nodejs/test/NodejsRequireJsonTest.java
index 11679449e8..9d52c71cc0 100644
--- a/cast/js/nodejs/src/test/java/com/ibm/wala/cast/js/nodejs/test/NodejsRequireJsonTest.java
+++ b/cast/js/nodejs/src/test/java/com/ibm/wala/cast/js/nodejs/test/NodejsRequireJsonTest.java
@@ -20,7 +20,9 @@
import java.net.URL;
import org.junit.jupiter.api.Test;
-/** @author Brian Pfretzschner <brian.pfretzschner@gmail.com> */
+/**
+ * @author Brian Pfretzschner <brian.pfretzschner@gmail.com>
+ */
public class NodejsRequireJsonTest {
@Test
diff --git a/cast/js/nodejs/src/test/java/com/ibm/wala/cast/js/nodejs/test/NodejsRequireTargetSelectorResolveTest.java b/cast/js/nodejs/src/test/java/com/ibm/wala/cast/js/nodejs/test/NodejsRequireTargetSelectorResolveTest.java
index 0901cdd044..6f07a3a7b3 100644
--- a/cast/js/nodejs/src/test/java/com/ibm/wala/cast/js/nodejs/test/NodejsRequireTargetSelectorResolveTest.java
+++ b/cast/js/nodejs/src/test/java/com/ibm/wala/cast/js/nodejs/test/NodejsRequireTargetSelectorResolveTest.java
@@ -20,7 +20,9 @@
import java.net.URL;
import org.junit.jupiter.api.Test;
-/** @author Brian Pfretzschner <brian.pfretzschner@gmail.com> */
+/**
+ * @author Brian Pfretzschner <brian.pfretzschner@gmail.com>
+ */
public class NodejsRequireTargetSelectorResolveTest {
@Test
diff --git a/cast/js/rhino/src/main/java/com/ibm/wala/cast/js/translator/RhinoToAstTranslator.java b/cast/js/rhino/src/main/java/com/ibm/wala/cast/js/translator/RhinoToAstTranslator.java
index 9f25e4f437..c7b69bfa8e 100644
--- a/cast/js/rhino/src/main/java/com/ibm/wala/cast/js/translator/RhinoToAstTranslator.java
+++ b/cast/js/rhino/src/main/java/com/ibm/wala/cast/js/translator/RhinoToAstTranslator.java
@@ -320,6 +320,7 @@ private static boolean isPrologueScript(WalkContext context) {
private static Node getCallTarget(FunctionCall n) {
return n.getTarget();
}
+
/** is n a call to "primitive" within our synthetic modeling code? */
private static boolean isPrimitiveCall(WalkContext context, FunctionCall n) {
return isPrologueScript(context)
diff --git a/cast/js/rhino/src/test/java/com/ibm/wala/cast/js/vis/JsViewerDriver.java b/cast/js/rhino/src/test/java/com/ibm/wala/cast/js/vis/JsViewerDriver.java
index 18249b10c6..8739b8218e 100644
--- a/cast/js/rhino/src/test/java/com/ibm/wala/cast/js/vis/JsViewerDriver.java
+++ b/cast/js/rhino/src/test/java/com/ibm/wala/cast/js/vis/JsViewerDriver.java
@@ -39,7 +39,11 @@
public class JsViewerDriver extends JSCallGraphBuilderUtil {
public static void main(String args[])
- throws ClassHierarchyException, IllegalArgumentException, IOException, CancelException, Error,
+ throws ClassHierarchyException,
+ IllegalArgumentException,
+ IOException,
+ CancelException,
+ Error,
WalaException {
if (args.length != 1) {
diff --git a/cast/js/src/main/java/com/ibm/wala/cast/js/callgraph/fieldbased/WorklistBasedOptimisticCallgraphBuilder.java b/cast/js/src/main/java/com/ibm/wala/cast/js/callgraph/fieldbased/WorklistBasedOptimisticCallgraphBuilder.java
index a43d8565d1..9b0a414a34 100644
--- a/cast/js/src/main/java/com/ibm/wala/cast/js/callgraph/fieldbased/WorklistBasedOptimisticCallgraphBuilder.java
+++ b/cast/js/src/main/java/com/ibm/wala/cast/js/callgraph/fieldbased/WorklistBasedOptimisticCallgraphBuilder.java
@@ -204,6 +204,7 @@ public void processPendingReflectiveCallWorklist(
}
}
}
+
// add flow corresponding to a new call edge
private void addCallEdge(
FlowGraph flowgraph, CallVertex c, FuncVertex callee, Set worklist) {
diff --git a/cast/js/src/main/java/com/ibm/wala/cast/js/client/JavaScriptAnalysisEngine.java b/cast/js/src/main/java/com/ibm/wala/cast/js/client/JavaScriptAnalysisEngine.java
index 92cf28e074..e22a0befa2 100644
--- a/cast/js/src/main/java/com/ibm/wala/cast/js/client/JavaScriptAnalysisEngine.java
+++ b/cast/js/src/main/java/com/ibm/wala/cast/js/client/JavaScriptAnalysisEngine.java
@@ -120,12 +120,16 @@ public enum BuilderType {
private BuilderType builderType = BuilderType.OPTIMISTIC;
- /** @return the builderType */
+ /**
+ * @return the builderType
+ */
public BuilderType getBuilderType() {
return builderType;
}
- /** @param builderType the builderType to set */
+ /**
+ * @param builderType the builderType to set
+ */
public void setBuilderType(BuilderType builderType) {
this.builderType = builderType;
}
diff --git a/cast/js/src/main/java/com/ibm/wala/cast/js/html/FileMapping.java b/cast/js/src/main/java/com/ibm/wala/cast/js/html/FileMapping.java
index 3ad9129d55..9adf369af0 100644
--- a/cast/js/src/main/java/com/ibm/wala/cast/js/html/FileMapping.java
+++ b/cast/js/src/main/java/com/ibm/wala/cast/js/html/FileMapping.java
@@ -14,6 +14,8 @@
public interface FileMapping {
- /** @return Null if no mapping for the given line. */
+ /**
+ * @return Null if no mapping for the given line.
+ */
IncludedPosition getIncludedPosition(Position line);
}
diff --git a/cast/js/src/main/java/com/ibm/wala/cast/js/html/ITag.java b/cast/js/src/main/java/com/ibm/wala/cast/js/html/ITag.java
index 8340fd8dfb..38d02fdfd4 100644
--- a/cast/js/src/main/java/com/ibm/wala/cast/js/html/ITag.java
+++ b/cast/js/src/main/java/com/ibm/wala/cast/js/html/ITag.java
@@ -20,7 +20,9 @@
*/
public interface ITag {
- /** @return tag's name (e.g., "HEAD" / "HTML" / "FORM") */
+ /**
+ * @return tag's name (e.g., "HEAD" / "HTML" / "FORM")
+ */
String getName();
/**
diff --git a/cast/js/src/main/java/com/ibm/wala/cast/js/html/jericho/JerichoHtmlParser.java b/cast/js/src/main/java/com/ibm/wala/cast/js/html/jericho/JerichoHtmlParser.java
index f17ff1487f..317f13786e 100644
--- a/cast/js/src/main/java/com/ibm/wala/cast/js/html/jericho/JerichoHtmlParser.java
+++ b/cast/js/src/main/java/com/ibm/wala/cast/js/html/jericho/JerichoHtmlParser.java
@@ -26,7 +26,9 @@
import net.htmlparser.jericho.LoggerProvider;
import net.htmlparser.jericho.Source;
-/** @author danielk Uses the Jericho parser to go over the HTML */
+/**
+ * @author danielk Uses the Jericho parser to go over the HTML
+ */
public class JerichoHtmlParser implements IHtmlParser {
static Set warnings = HashSetFactory.make();
@@ -113,7 +115,10 @@ public void parse(URL url, Reader reader, IHtmlCallback callback, String fileNam
System.err.println("Error parsing file: " + e.getMessage());
}
}
- /** @author danielk Inner class does the actual traversal of the HTML using recursion */
+
+ /**
+ * @author danielk Inner class does the actual traversal of the HTML using recursion
+ */
private static class Parser {
private final IHtmlCallback handler;
private final String fileName;
diff --git a/cast/js/src/main/java/com/ibm/wala/cast/js/ipa/callgraph/JSCallGraphUtil.java b/cast/js/src/main/java/com/ibm/wala/cast/js/ipa/callgraph/JSCallGraphUtil.java
index 38e3682206..8dd17872b5 100755
--- a/cast/js/src/main/java/com/ibm/wala/cast/js/ipa/callgraph/JSCallGraphUtil.java
+++ b/cast/js/src/main/java/com/ibm/wala/cast/js/ipa/callgraph/JSCallGraphUtil.java
@@ -179,7 +179,9 @@ public static MethodReference getMethodReference(String funName) {
return MR;
}
- /** @return The set of class names that where defined in the CHA as a result loading process. */
+ /**
+ * @return The set of class names that where defined in the CHA as a result loading process.
+ */
public static Set loadAdditionalFile(IClassHierarchy cha, JavaScriptLoader cl, URL url)
throws IOException {
return loadAdditionalFile(cha, cl, new SourceURLModule(url));
diff --git a/cast/js/src/main/java/com/ibm/wala/cast/js/translator/PropertyReadExpander.java b/cast/js/src/main/java/com/ibm/wala/cast/js/translator/PropertyReadExpander.java
index 21562fd0cc..793f367812 100644
--- a/cast/js/src/main/java/com/ibm/wala/cast/js/translator/PropertyReadExpander.java
+++ b/cast/js/src/main/java/com/ibm/wala/cast/js/translator/PropertyReadExpander.java
@@ -63,7 +63,9 @@ public ExpanderKey key() {
/** are we handling a sub-node of an assignment? */
abstract boolean inAssignment();
- /** @see AssignPreOrPostOpContext */
+ /**
+ * @see AssignPreOrPostOpContext
+ */
abstract void setAssign(CAstNode receiverTemp, CAstNode elementTemp);
}
diff --git a/cast/js/src/testFixtures/java/com/ibm/wala/cast/js/test/TestArgumentSensitivity.java b/cast/js/src/testFixtures/java/com/ibm/wala/cast/js/test/TestArgumentSensitivity.java
index ed2757ca79..32b426c614 100644
--- a/cast/js/src/testFixtures/java/com/ibm/wala/cast/js/test/TestArgumentSensitivity.java
+++ b/cast/js/src/testFixtures/java/com/ibm/wala/cast/js/test/TestArgumentSensitivity.java
@@ -42,7 +42,10 @@ public abstract class TestArgumentSensitivity extends TestJSCallGraphShape {
@Test
public void testArgs()
- throws IOException, IllegalArgumentException, CancelException, ClassHierarchyException,
+ throws IOException,
+ IllegalArgumentException,
+ CancelException,
+ ClassHierarchyException,
WalaException {
JavaScriptLoaderFactory loaders = JSCallGraphUtil.makeLoaders(null);
AnalysisScope scope = JSCallGraphBuilderUtil.makeScriptScope("tests", "args.js", loaders);
diff --git a/cast/js/src/testFixtures/java/com/ibm/wala/cast/js/test/TestSimpleCallGraphShape.java b/cast/js/src/testFixtures/java/com/ibm/wala/cast/js/test/TestSimpleCallGraphShape.java
index 2ca23a17f0..9c4915a633 100644
--- a/cast/js/src/testFixtures/java/com/ibm/wala/cast/js/test/TestSimpleCallGraphShape.java
+++ b/cast/js/src/testFixtures/java/com/ibm/wala/cast/js/test/TestSimpleCallGraphShape.java
@@ -651,6 +651,7 @@ public void testReturnThis()
new Object[] {"suffix:test1", new String[] {"suffix:bar1"}},
new Object[] {"suffix:test2", new String[] {"suffix:bar2"}}
};
+
// when using the ObjectSensitivityContextSelector, we additionally know that test1 does not call
// bar2,
// and test2 does not call bar1
diff --git a/cast/src/main/java/com/ibm/wala/cast/ipa/callgraph/CAstAnalysisScope.java b/cast/src/main/java/com/ibm/wala/cast/ipa/callgraph/CAstAnalysisScope.java
index d98a09e5c0..11d0bf5182 100644
--- a/cast/src/main/java/com/ibm/wala/cast/ipa/callgraph/CAstAnalysisScope.java
+++ b/cast/src/main/java/com/ibm/wala/cast/ipa/callgraph/CAstAnalysisScope.java
@@ -79,7 +79,9 @@ public ClassLoaderReference getApplicationLoader() {
return null;
}
- /** @return Returns the arrayClassLoader. */
+ /**
+ * @return Returns the arrayClassLoader.
+ */
@Override
public ArrayClassLoader getArrayClassLoader() {
Assertions.UNREACHABLE();
@@ -102,7 +104,9 @@ public void addClassFileToScope(ClassLoaderReference loader, File file) {
Assertions.UNREACHABLE();
}
- /** @return the ClassLoaderReference specified by {@code name}. */
+ /**
+ * @return the ClassLoaderReference specified by {@code name}.
+ */
@Override
public ClassLoaderReference getLoader(Atom name) {
assert name.equals(theLoader.getName());
@@ -115,7 +119,9 @@ public Collection getLoaders() {
return Collections.singleton(theLoader);
}
- /** @return the number of loaders. */
+ /**
+ * @return the number of loaders.
+ */
@Override
public int getNumberOfLoaders() {
return 1;
diff --git a/cast/src/main/java/com/ibm/wala/cast/ir/ssa/AbstractReflectiveGet.java b/cast/src/main/java/com/ibm/wala/cast/ir/ssa/AbstractReflectiveGet.java
index 5f4c35c454..aa830f845d 100644
--- a/cast/src/main/java/com/ibm/wala/cast/ir/ssa/AbstractReflectiveGet.java
+++ b/cast/src/main/java/com/ibm/wala/cast/ir/ssa/AbstractReflectiveGet.java
@@ -33,7 +33,9 @@ public String toString(SymbolTable symbolTable) {
return getValueString(symbolTable, result) + " = " + super.toString(symbolTable);
}
- /** @see com.ibm.wala.ssa.SSAInstruction#getDef() */
+ /**
+ * @see com.ibm.wala.ssa.SSAInstruction#getDef()
+ */
@Override
public boolean hasDef() {
return true;
@@ -49,7 +51,9 @@ public int getDef(int i) {
return result;
}
- /** @see com.ibm.wala.ssa.SSAInstruction#getNumberOfUses() */
+ /**
+ * @see com.ibm.wala.ssa.SSAInstruction#getNumberOfUses()
+ */
@Override
public int getNumberOfUses() {
return 2;
diff --git a/cast/src/main/java/com/ibm/wala/cast/ir/ssa/AbstractReflectivePut.java b/cast/src/main/java/com/ibm/wala/cast/ir/ssa/AbstractReflectivePut.java
index e378fc19a0..6902b8f875 100644
--- a/cast/src/main/java/com/ibm/wala/cast/ir/ssa/AbstractReflectivePut.java
+++ b/cast/src/main/java/com/ibm/wala/cast/ir/ssa/AbstractReflectivePut.java
@@ -33,13 +33,17 @@ public String toString(SymbolTable symbolTable) {
return super.toString(symbolTable) + " = " + getValueString(symbolTable, value);
}
- /** @see com.ibm.wala.ssa.SSAInstruction#getDef() */
+ /**
+ * @see com.ibm.wala.ssa.SSAInstruction#getDef()
+ */
@Override
public int getDef() {
return -1;
}
- /** @see com.ibm.wala.ssa.SSAInstruction#getNumberOfUses() */
+ /**
+ * @see com.ibm.wala.ssa.SSAInstruction#getNumberOfUses()
+ */
@Override
public int getNumberOfUses() {
return 3;
diff --git a/cast/src/main/java/com/ibm/wala/cast/ir/ssa/AssignInstruction.java b/cast/src/main/java/com/ibm/wala/cast/ir/ssa/AssignInstruction.java
index 8421f54bc5..f8680d6f30 100644
--- a/cast/src/main/java/com/ibm/wala/cast/ir/ssa/AssignInstruction.java
+++ b/cast/src/main/java/com/ibm/wala/cast/ir/ssa/AssignInstruction.java
@@ -31,7 +31,9 @@ public AssignInstruction(int iindex, int result, int val) {
assert val != -1;
}
- /** @see com.ibm.wala.ssa.SSAInstruction#copyForSSA(SSAInstructionFactory, int[], int[]) */
+ /**
+ * @see com.ibm.wala.ssa.SSAInstruction#copyForSSA(SSAInstructionFactory, int[], int[])
+ */
@Override
public SSAInstruction copyForSSA(SSAInstructionFactory insts, int[] defs, int[] uses) {
return ((AstInstructionFactory) insts)
@@ -39,13 +41,17 @@ public SSAInstruction copyForSSA(SSAInstructionFactory insts, int[] defs, int[]
iIndex(), defs == null ? getDef(0) : defs[0], uses == null ? getUse(0) : uses[0]);
}
- /** @see com.ibm.wala.ssa.SSAInstruction#toString(SymbolTable) */
+ /**
+ * @see com.ibm.wala.ssa.SSAInstruction#toString(SymbolTable)
+ */
@Override
public String toString(SymbolTable symbolTable) {
return getValueString(symbolTable, result) + " := " + getValueString(symbolTable, val);
}
- /** @see com.ibm.wala.ssa.SSAInstruction#visit(IVisitor) */
+ /**
+ * @see com.ibm.wala.ssa.SSAInstruction#visit(IVisitor)
+ */
@Override
public void visit(IVisitor v) {
((AstPreInstructionVisitor) v).visitAssign(this);
diff --git a/cast/src/main/java/com/ibm/wala/cast/ir/ssa/AstLexicalAccess.java b/cast/src/main/java/com/ibm/wala/cast/ir/ssa/AstLexicalAccess.java
index 6c88c3fdbe..1faa390553 100644
--- a/cast/src/main/java/com/ibm/wala/cast/ir/ssa/AstLexicalAccess.java
+++ b/cast/src/main/java/com/ibm/wala/cast/ir/ssa/AstLexicalAccess.java
@@ -32,10 +32,13 @@ public abstract class AstLexicalAccess extends SSAInstruction {
public static class Access {
/** name being accessed */
public final String variableName;
+
/** name of entity that defines the variable */
public final String variableDefiner;
+
/** type of the lexical value */
public final TypeReference type;
+
/** value number used for name where access is being performed (not in the declaring entity) */
public final int valueNumber;
diff --git a/cast/src/main/java/com/ibm/wala/cast/ir/ssa/AstPropertyWrite.java b/cast/src/main/java/com/ibm/wala/cast/ir/ssa/AstPropertyWrite.java
index 729b68c4ff..c2b33db06b 100644
--- a/cast/src/main/java/com/ibm/wala/cast/ir/ssa/AstPropertyWrite.java
+++ b/cast/src/main/java/com/ibm/wala/cast/ir/ssa/AstPropertyWrite.java
@@ -25,7 +25,9 @@ public String toString(SymbolTable symbolTable) {
return super.toString(symbolTable) + " = " + getValueString(symbolTable, getValue());
}
- /** @see com.ibm.wala.ssa.SSAInstruction#visit(IVisitor) */
+ /**
+ * @see com.ibm.wala.ssa.SSAInstruction#visit(IVisitor)
+ */
@Override
public void visit(IVisitor v) {
assert v instanceof AstInstructionVisitor;
diff --git a/cast/src/main/java/com/ibm/wala/cast/loader/AstMethod.java b/cast/src/main/java/com/ibm/wala/cast/loader/AstMethod.java
index 29e6182081..31e8a030d8 100644
--- a/cast/src/main/java/com/ibm/wala/cast/loader/AstMethod.java
+++ b/cast/src/main/java/com/ibm/wala/cast/loader/AstMethod.java
@@ -348,12 +348,14 @@ public boolean hasMonitorOp() {
public int getNumberOfParameters() {
return symtab.getParameterValueNumbers().length;
}
+
/* BEGIN Custom change: precise bytecode positions */
@Override
public SourcePosition getParameterSourcePosition(int paramNum) throws InvalidClassFileException {
return null;
}
+
/* END Custom change: precise bytecode positions */
@Override
public int getLineNumber(int instructionIndex) {
diff --git a/cast/src/main/java/com/ibm/wala/cast/tree/CAst.java b/cast/src/main/java/com/ibm/wala/cast/tree/CAst.java
index 0e67d1f244..0f7c5545e4 100644
--- a/cast/src/main/java/com/ibm/wala/cast/tree/CAst.java
+++ b/cast/src/main/java/com/ibm/wala/cast/tree/CAst.java
@@ -38,6 +38,7 @@ public interface CAst {
/** Make a node of type kind with four children. */
CAstNode makeNode(int kind, CAstNode c1, CAstNode c2, CAstNode c3, CAstNode c4);
+
/** Make a node of type kind with five children. */
CAstNode makeNode(int kind, CAstNode c1, CAstNode c2, CAstNode c3, CAstNode c4, CAstNode c5);
diff --git a/cast/src/main/java/com/ibm/wala/cast/tree/visit/CAstVisitor.java b/cast/src/main/java/com/ibm/wala/cast/tree/visit/CAstVisitor.java
index 4a7c6a0220..7c97a84387 100644
--- a/cast/src/main/java/com/ibm/wala/cast/tree/visit/CAstVisitor.java
+++ b/cast/src/main/java/com/ibm/wala/cast/tree/visit/CAstVisitor.java
@@ -21,7 +21,9 @@
import java.util.Iterator;
import java.util.Map;
-/** @author Igor Peshansky Ripped out of Julian's AstTranslator TODO: document me. */
+/**
+ * @author Igor Peshansky Ripped out of Julian's AstTranslator TODO: document me.
+ */
public abstract class CAstVisitor {
public static boolean DEBUG = true;
@@ -57,6 +59,7 @@ public interface Context {
protected C makeFileContext(C context, CAstEntity n) {
return context;
}
+
/**
* Construct a context for a Type entity.
*
@@ -66,6 +69,7 @@ protected C makeFileContext(C context, CAstEntity n) {
protected C makeTypeContext(C context, CAstEntity n) {
return context;
}
+
/**
* Construct a context for a Code entity.
*
@@ -85,6 +89,7 @@ protected C makeCodeContext(C context, CAstEntity n) {
protected C makeLocalContext(C context, CAstNode n) {
return context;
}
+
/**
* Construct a context for an Unwind node.
*
@@ -268,6 +273,7 @@ protected boolean enterEntity(
CAstEntity n, C context, @SuppressWarnings("unused") CAstVisitor visitor) {
return false;
}
+
/**
* Post-process an entity after visiting it.
*
@@ -290,6 +296,7 @@ public boolean visitEntity(
CAstEntity n, C context, @SuppressWarnings("unused") CAstVisitor visitor) {
return false;
}
+
/**
* Leave any entity. Override only this to change behavior for all entities.
*
@@ -312,6 +319,7 @@ public void leaveEntity(
protected boolean visitFileEntity(CAstEntity n, C context, C fileC, CAstVisitor visitor) {
return visitor.visitEntity(n, context, visitor);
}
+
/**
* Leave a File entity.
*
@@ -322,6 +330,7 @@ protected boolean visitFileEntity(CAstEntity n, C context, C fileC, CAstVisitor<
protected void leaveFileEntity(CAstEntity n, C context, C fileContext, CAstVisitor visitor) {
visitor.leaveEntity(n, context, visitor);
}
+
/**
* Visit a Field entity.
*
@@ -332,6 +341,7 @@ protected void leaveFileEntity(CAstEntity n, C context, C fileContext, CAstVisit
protected boolean visitFieldEntity(CAstEntity n, C context, CAstVisitor visitor) {
return visitor.visitEntity(n, context, visitor);
}
+
/**
* Leave a Field entity.
*
@@ -341,6 +351,7 @@ protected boolean visitFieldEntity(CAstEntity n, C context, CAstVisitor visit
protected void leaveFieldEntity(CAstEntity n, C context, CAstVisitor visitor) {
visitor.leaveEntity(n, context, visitor);
}
+
/**
* Visit a Field entity.
*
@@ -351,6 +362,7 @@ protected void leaveFieldEntity(CAstEntity n, C context, CAstVisitor visitor)
protected boolean visitGlobalEntity(CAstEntity n, C context, CAstVisitor visitor) {
return visitor.visitEntity(n, context, visitor);
}
+
/**
* Leave a Field entity.
*
@@ -360,6 +372,7 @@ protected boolean visitGlobalEntity(CAstEntity n, C context, CAstVisitor visi
protected void leaveGlobalEntity(CAstEntity n, C context, CAstVisitor visitor) {
visitor.leaveEntity(n, context, visitor);
}
+
/**
* Visit a Type entity.
*
@@ -372,6 +385,7 @@ protected boolean visitTypeEntity(
CAstEntity n, C context, C typeContext, CAstVisitor visitor) {
return visitor.visitEntity(n, context, visitor);
}
+
/**
* Leave a Type entity.
*
@@ -382,6 +396,7 @@ protected boolean visitTypeEntity(
protected void leaveTypeEntity(CAstEntity n, C context, C typeContext, CAstVisitor visitor) {
visitor.leaveEntity(n, context, visitor);
}
+
/**
* Visit a Function entity.
*
@@ -394,6 +409,7 @@ protected boolean visitFunctionEntity(
CAstEntity n, C context, C codeContext, CAstVisitor visitor) {
return visitor.visitEntity(n, context, visitor);
}
+
/**
* Leave a Function entity.
*
@@ -405,6 +421,7 @@ protected void leaveFunctionEntity(
CAstEntity n, C context, C codeContext, CAstVisitor visitor) {
visitor.leaveEntity(n, context, visitor);
}
+
/**
* Visit a Macro entity.
*
@@ -417,6 +434,7 @@ protected boolean visitMacroEntity(
CAstEntity n, C context, C codeContext, CAstVisitor visitor) {
return visitor.visitEntity(n, context, visitor);
}
+
/**
* Leave a Macro entity.
*
@@ -427,6 +445,7 @@ protected boolean visitMacroEntity(
protected void leaveMacroEntity(CAstEntity n, C context, C codeContext, CAstVisitor visitor) {
visitor.leaveEntity(n, context, visitor);
}
+
/**
* Visit a Script entity.
*
@@ -439,6 +458,7 @@ protected boolean visitScriptEntity(
CAstEntity n, C context, C codeContext, CAstVisitor visitor) {
return visitor.visitEntity(n, context, visitor);
}
+
/**
* Leave a Script entity.
*
@@ -487,6 +507,7 @@ public final void visitChildren(CAstNode n, int start, C context, CAstVisitor
int end = n.getChildCount();
for (int i = start; i < end; i++) visitor.visit(n.getChild(i), context, visitor);
}
+
/**
* Visit all children of a node.
*
@@ -496,6 +517,7 @@ public final void visitChildren(CAstNode n, int start, C context, CAstVisitor
public final void visitAllChildren(CAstNode n, C context, CAstVisitor visitor) {
visitor.visitChildren(n, 0, context, visitor);
}
+
/**
* Recursively visit a given node. TODO: do assertions about structure belong here?
*
@@ -1117,6 +1139,7 @@ protected boolean visitAssignNodes(
protected boolean enterNode(CAstNode n, C c, @SuppressWarnings("unused") CAstVisitor visitor) {
return false;
}
+
/**
* Post-process a node after visiting it.
*
@@ -1138,6 +1161,7 @@ protected void postProcessNode(
public boolean visitNode(CAstNode n, C c, @SuppressWarnings("unused") CAstVisitor visitor) {
return false;
}
+
/**
* Leave any node. Override only this to change behavior for all nodes.
*
@@ -1158,6 +1182,7 @@ public void leaveNode(CAstNode n, C c, @SuppressWarnings("unused") CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave a FunctionExpr node.
*
@@ -1167,6 +1192,7 @@ protected boolean visitFunctionExpr(CAstNode n, C c, CAstVisitor visitor) {
protected void leaveFunctionExpr(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit a FunctionStmt node.
*
@@ -1177,6 +1203,7 @@ protected void leaveFunctionExpr(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitFunctionStmt(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave a FunctionStmt node.
*
@@ -1197,6 +1224,7 @@ protected void leaveFunctionStmt(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitClassStmt(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave a FunctionStmt node.
*
@@ -1217,6 +1245,7 @@ protected void leaveClassStmt(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitLocalScope(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave a LocalScope node.
*
@@ -1226,6 +1255,7 @@ protected boolean visitLocalScope(CAstNode n, C c, CAstVisitor visitor) {
protected void leaveLocalScope(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit a BlockExpr node.
*
@@ -1236,6 +1266,7 @@ protected void leaveLocalScope(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitBlockExpr(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave a BlockExpr node.
*
@@ -1245,6 +1276,7 @@ protected boolean visitBlockExpr(CAstNode n, C c, CAstVisitor visitor) {
protected void leaveBlockExpr(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit a BlockStmt node.
*
@@ -1255,6 +1287,7 @@ protected void leaveBlockExpr(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitBlockStmt(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave a BlockStmt node.
*
@@ -1264,6 +1297,7 @@ protected boolean visitBlockStmt(CAstNode n, C c, CAstVisitor visitor) {
protected void leaveBlockStmt(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit a Loop node.
*
@@ -1274,6 +1308,7 @@ protected void leaveBlockStmt(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitLoop(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Visit a For..In node.
*
@@ -1284,6 +1319,7 @@ protected boolean visitLoop(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitForIn(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Visit a Loop node after processing the loop header.
*
@@ -1294,6 +1330,7 @@ protected void leaveLoopHeader(
CAstNode n, C c, @SuppressWarnings("unused") CAstVisitor visitor) {
/* empty */
}
+
/**
* Leave a Loop node.
*
@@ -1303,6 +1340,7 @@ protected void leaveLoopHeader(
protected void leaveLoop(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Leave a For..In node.
*
@@ -1312,6 +1350,7 @@ protected void leaveLoop(CAstNode n, C c, CAstVisitor visitor) {
protected void leaveForIn(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit a GetCaughtException node.
*
@@ -1322,6 +1361,7 @@ protected void leaveForIn(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitGetCaughtException(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave a GetCaughtException node.
*
@@ -1331,6 +1371,7 @@ protected boolean visitGetCaughtException(CAstNode n, C c, CAstVisitor visito
protected void leaveGetCaughtException(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit a This node.
*
@@ -1341,6 +1382,7 @@ protected void leaveGetCaughtException(CAstNode n, C c, CAstVisitor visitor)
protected boolean visitThis(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave a This node.
*
@@ -1350,6 +1392,7 @@ protected boolean visitThis(CAstNode n, C c, CAstVisitor visitor) {
protected void leaveThis(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit a Super node.
*
@@ -1360,6 +1403,7 @@ protected void leaveThis(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitSuper(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave a Super node.
*
@@ -1369,6 +1413,7 @@ protected boolean visitSuper(CAstNode n, C c, CAstVisitor visitor) {
protected void leaveSuper(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit a Call node.
*
@@ -1379,6 +1424,7 @@ protected void leaveSuper(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitCall(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave a Call node.
*
@@ -1388,6 +1434,7 @@ protected boolean visitCall(CAstNode n, C c, CAstVisitor visitor) {
protected void leaveCall(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit a Var node.
*
@@ -1398,6 +1445,7 @@ protected void leaveCall(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitVar(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave a Var node.
*
@@ -1407,6 +1455,7 @@ protected boolean visitVar(CAstNode n, C c, CAstVisitor visitor) {
protected void leaveVar(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit a Constant node.
*
@@ -1417,6 +1466,7 @@ protected void leaveVar(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitConstant(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave a Constant node.
*
@@ -1426,6 +1476,7 @@ protected boolean visitConstant(CAstNode n, C c, CAstVisitor visitor) {
protected void leaveConstant(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit a BinaryExpr node.
*
@@ -1436,6 +1487,7 @@ protected void leaveConstant(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitBinaryExpr(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave a BinaryExpr node.
*
@@ -1445,6 +1497,7 @@ protected boolean visitBinaryExpr(CAstNode n, C c, CAstVisitor visitor) {
protected void leaveBinaryExpr(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit a UnaryExpr node.
*
@@ -1455,6 +1508,7 @@ protected void leaveBinaryExpr(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitUnaryExpr(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave a UnaryExpr node.
*
@@ -1464,6 +1518,7 @@ protected boolean visitUnaryExpr(CAstNode n, C c, CAstVisitor visitor) {
protected void leaveUnaryExpr(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit an ArrayLength node.
*
@@ -1474,6 +1529,7 @@ protected void leaveUnaryExpr(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitArrayLength(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave an ArrayLength node.
*
@@ -1483,6 +1539,7 @@ protected boolean visitArrayLength(CAstNode n, C c, CAstVisitor visitor) {
protected void leaveArrayLength(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit an ArrayRef node.
*
@@ -1493,6 +1550,7 @@ protected void leaveArrayLength(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitArrayRef(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave an ArrayRef node.
*
@@ -1502,6 +1560,7 @@ protected boolean visitArrayRef(CAstNode n, C c, CAstVisitor visitor) {
protected void leaveArrayRef(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit a DeclStmt node.
*
@@ -1512,6 +1571,7 @@ protected void leaveArrayRef(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitDeclStmt(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave a DeclStmt node.
*
@@ -1521,6 +1581,7 @@ protected boolean visitDeclStmt(CAstNode n, C c, CAstVisitor visitor) {
protected void leaveDeclStmt(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit a Return node.
*
@@ -1531,6 +1592,7 @@ protected void leaveDeclStmt(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitReturn(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave a Return node.
*
@@ -1540,6 +1602,7 @@ protected boolean visitReturn(CAstNode n, C c, CAstVisitor visitor) {
protected void leaveReturn(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit a Return node.
*
@@ -1550,6 +1613,7 @@ protected void leaveReturn(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitYield(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave a Return node.
*
@@ -1559,6 +1623,7 @@ protected boolean visitYield(CAstNode n, C c, CAstVisitor visitor) {
protected void leaveYield(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit an Ifgoto node.
*
@@ -1569,6 +1634,7 @@ protected void leaveYield(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitIfgoto(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave an Ifgoto node.
*
@@ -1578,6 +1644,7 @@ protected boolean visitIfgoto(CAstNode n, C c, CAstVisitor visitor) {
protected void leaveIfgoto(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit a Goto node.
*
@@ -1588,6 +1655,7 @@ protected void leaveIfgoto(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitGoto(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave a Goto node.
*
@@ -1597,6 +1665,7 @@ protected boolean visitGoto(CAstNode n, C c, CAstVisitor visitor) {
protected void leaveGoto(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit a LabelStmt node.
*
@@ -1607,6 +1676,7 @@ protected void leaveGoto(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitLabelStmt(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave a LabelStmt node.
*
@@ -1616,6 +1686,7 @@ protected boolean visitLabelStmt(CAstNode n, C c, CAstVisitor visitor) {
protected void leaveLabelStmt(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit an IfStmt node.
*
@@ -1626,6 +1697,7 @@ protected void leaveLabelStmt(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitIfStmt(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Visit an IfStmt node after processing the condition.
*
@@ -1636,6 +1708,7 @@ protected void leaveIfStmtCondition(
CAstNode n, C c, @SuppressWarnings("unused") CAstVisitor visitor) {
/* empty */
}
+
/**
* Visit an IfStmt node after processing the true clause.
*
@@ -1646,6 +1719,7 @@ protected void leaveIfStmtTrueClause(
CAstNode n, C c, @SuppressWarnings("unused") CAstVisitor visitor) {
/* empty */
}
+
/**
* Leave an IfStmt node.
*
@@ -1655,6 +1729,7 @@ protected void leaveIfStmtTrueClause(
protected void leaveIfStmt(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit an IfExpr node.
*
@@ -1665,6 +1740,7 @@ protected void leaveIfStmt(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitIfExpr(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Visit an IfExpr node after processing the condition.
*
@@ -1675,6 +1751,7 @@ protected void leaveIfExprCondition(
CAstNode n, C c, @SuppressWarnings("unused") CAstVisitor visitor) {
/* empty */
}
+
/**
* Visit an IfExpr node after processing the true clause.
*
@@ -1685,6 +1762,7 @@ protected void leaveIfExprTrueClause(
CAstNode n, C c, @SuppressWarnings("unused") CAstVisitor visitor) {
/* empty */
}
+
/**
* Leave an IfExpr node.
*
@@ -1694,6 +1772,7 @@ protected void leaveIfExprTrueClause(
protected void leaveIfExpr(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit a New node.
*
@@ -1704,6 +1783,7 @@ protected void leaveIfExpr(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitNew(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave a New node.
*
@@ -1713,6 +1793,7 @@ protected boolean visitNew(CAstNode n, C c, CAstVisitor visitor) {
protected void leaveNew(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit an ObjectLiteral node.
*
@@ -1723,6 +1804,7 @@ protected void leaveNew(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitObjectLiteral(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Visit an ObjectLiteral node after processing the {i}th field initializer.
*
@@ -1734,6 +1816,7 @@ protected void leaveObjectLiteralFieldInit(
CAstNode n, int i, C c, @SuppressWarnings("unused") CAstVisitor visitor) {
/* empty */
}
+
/**
* Leave an ObjectLiteral node.
*
@@ -1743,6 +1826,7 @@ protected void leaveObjectLiteralFieldInit(
protected void leaveObjectLiteral(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit an ArrayLiteral node.
*
@@ -1753,6 +1837,7 @@ protected void leaveObjectLiteral(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitArrayLiteral(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Visit an ArrayLiteral node after processing the array object.
*
@@ -1763,6 +1848,7 @@ protected void leaveArrayLiteralObject(
CAstNode n, C c, @SuppressWarnings("unused") CAstVisitor visitor) {
/* empty */
}
+
/**
* Visit an ArrayLiteral node after processing the {i}th element initializer.
*
@@ -1774,6 +1860,7 @@ protected void leaveArrayLiteralInitElement(
CAstNode n, int i, C c, @SuppressWarnings("unused") CAstVisitor visitor) {
/* empty */
}
+
/**
* Leave a ArrayLiteral node.
*
@@ -1783,6 +1870,7 @@ protected void leaveArrayLiteralInitElement(
protected void leaveArrayLiteral(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit an ObjectRef node.
*
@@ -1793,6 +1881,7 @@ protected void leaveArrayLiteral(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitObjectRef(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave an ObjectRef node.
*
@@ -1802,6 +1891,7 @@ protected boolean visitObjectRef(CAstNode n, C c, CAstVisitor visitor) {
protected void leaveObjectRef(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit an Assign node. Override only this to change behavior for all assignment nodes.
*
@@ -1812,6 +1902,7 @@ protected void leaveObjectRef(CAstNode n, C c, CAstVisitor visitor) {
public boolean visitAssign(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave an Assign node. Override only this to change behavior for all assignment nodes.
*
@@ -1821,6 +1912,7 @@ public boolean visitAssign(CAstNode n, C c, CAstVisitor visitor) {
public void leaveAssign(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit an ArrayRef Assignment node after visiting the RHS.
*
@@ -1835,6 +1927,7 @@ protected boolean visitArrayRefAssign(
/* empty */
return false;
}
+
/**
* Visit an ArrayRef Assignment node after visiting the LHS.
*
@@ -1847,6 +1940,7 @@ protected void leaveArrayRefAssign(
CAstNode n, CAstNode v, CAstNode a, C c, @SuppressWarnings("unused") CAstVisitor visitor) {
/* empty */
}
+
/**
* Visit an ArrayRef Op/Assignment node after visiting the RHS.
*
@@ -1867,6 +1961,7 @@ protected boolean visitArrayRefAssignOp(
/* empty */
return false;
}
+
/**
* Visit an ArrayRef Op/Assignment node after visiting the LHS.
*
@@ -1885,6 +1980,7 @@ protected void leaveArrayRefAssignOp(
@SuppressWarnings("unused") CAstVisitor visitor) {
/* empty */
}
+
/**
* Visit an ObjectRef Assignment node after visiting the RHS.
*
@@ -1899,6 +1995,7 @@ protected boolean visitObjectRefAssign(
/* empty */
return false;
}
+
/**
* Visit an ObjectRef Assignment node after visiting the LHS.
*
@@ -1911,6 +2008,7 @@ protected void leaveObjectRefAssign(
CAstNode n, CAstNode v, CAstNode a, C c, @SuppressWarnings("unused") CAstVisitor visitor) {
/* empty */
}
+
/**
* Visit an ObjectRef Op/Assignment node after visiting the RHS.
*
@@ -1931,6 +2029,7 @@ protected boolean visitObjectRefAssignOp(
/* empty */
return false;
}
+
/**
* Visit an ObjectRef Op/Assignment node after visiting the LHS.
*
@@ -1949,6 +2048,7 @@ protected void leaveObjectRefAssignOp(
@SuppressWarnings("unused") CAstVisitor visitor) {
/* empty */
}
+
/**
* Visit a BlockExpr Assignment node after visiting the RHS.
*
@@ -1963,6 +2063,7 @@ protected boolean visitBlockExprAssign(
/* empty */
return false;
}
+
/**
* Visit a BlockExpr Assignment node after visiting the LHS.
*
@@ -1975,6 +2076,7 @@ protected void leaveBlockExprAssign(
CAstNode n, CAstNode v, CAstNode a, C c, @SuppressWarnings("unused") CAstVisitor visitor) {
/* empty */
}
+
/**
* Visit a BlockExpr Op/Assignment node after visiting the RHS.
*
@@ -1995,6 +2097,7 @@ protected boolean visitBlockExprAssignOp(
/* empty */
return false;
}
+
/**
* Visit a BlockExpr Op/Assignment node after visiting the LHS.
*
@@ -2013,6 +2116,7 @@ protected void leaveBlockExprAssignOp(
@SuppressWarnings("unused") CAstVisitor visitor) {
/* empty */
}
+
/**
* Visit a Var Assignment node after visiting the RHS.
*
@@ -2027,6 +2131,7 @@ protected boolean visitVarAssign(
/* empty */
return false;
}
+
/**
* Visit a Var Assignment node after visiting the LHS.
*
@@ -2039,6 +2144,7 @@ protected void leaveVarAssign(
CAstNode n, CAstNode v, CAstNode a, C c, @SuppressWarnings("unused") CAstVisitor visitor) {
/* empty */
}
+
/**
* Visit an array literal Assignment node after visiting the RHS.
*
@@ -2053,6 +2159,7 @@ protected boolean visitArrayLiteralAssign(
/* empty */
return false;
}
+
/**
* Visit an array literal Assignment node after visiting the LHS.
*
@@ -2065,6 +2172,7 @@ protected void leaveArrayLiteralAssign(
CAstNode n, CAstNode v, CAstNode a, C c, @SuppressWarnings("unused") CAstVisitor visitor) {
/* empty */
}
+
/**
* Visit an array literal Assignment node after visiting the RHS.
*
@@ -2079,6 +2187,7 @@ protected boolean visitObjectLiteralAssign(
/* empty */
return false;
}
+
/**
* Visit an array literal Assignment node after visiting the LHS.
*
@@ -2091,6 +2200,7 @@ protected void leaveObjectLiteralAssign(
CAstNode n, CAstNode v, CAstNode a, C c, @SuppressWarnings("unused") CAstVisitor visitor) {
/* empty */
}
+
/**
* Visit a Var Op/Assignment node after visiting the RHS.
*
@@ -2111,6 +2221,7 @@ protected boolean visitVarAssignOp(
/* empty */
return false;
}
+
/**
* Visit a Var Op/Assignment node after visiting the LHS.
*
@@ -2129,6 +2240,7 @@ protected void leaveVarAssignOp(
@SuppressWarnings("unused") CAstVisitor visitor) {
/* empty */
}
+
/**
* Visit a Switch node.
*
@@ -2139,6 +2251,7 @@ protected void leaveVarAssignOp(
protected boolean visitSwitch(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Visit a Switch node after processing the switch value.
*
@@ -2149,6 +2262,7 @@ protected void leaveSwitchValue(
CAstNode n, C c, @SuppressWarnings("unused") CAstVisitor visitor) {
/* empty */
}
+
/**
* Leave a Switch node.
*
@@ -2158,6 +2272,7 @@ protected void leaveSwitchValue(
protected void leaveSwitch(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit a Throw node.
*
@@ -2168,6 +2283,7 @@ protected void leaveSwitch(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitThrow(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave a Throw node.
*
@@ -2177,6 +2293,7 @@ protected boolean visitThrow(CAstNode n, C c, CAstVisitor visitor) {
protected void leaveThrow(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit a Catch node.
*
@@ -2187,6 +2304,7 @@ protected void leaveThrow(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitCatch(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave a Catch node.
*
@@ -2196,6 +2314,7 @@ protected boolean visitCatch(CAstNode n, C c, CAstVisitor visitor) {
protected void leaveCatch(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit an Unwind node.
*
@@ -2206,6 +2325,7 @@ protected void leaveCatch(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitUnwind(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave an Unwind node.
*
@@ -2215,6 +2335,7 @@ protected boolean visitUnwind(CAstNode n, C c, CAstVisitor visitor) {
protected void leaveUnwind(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit a Try node.
*
@@ -2225,6 +2346,7 @@ protected void leaveUnwind(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitTry(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Visit a Try node after processing the try block.
*
@@ -2235,6 +2357,7 @@ protected void leaveTryBlock(
CAstNode n, C c, @SuppressWarnings("unused") CAstVisitor visitor) {
/* empty */
}
+
/**
* Leave a Try node.
*
@@ -2244,6 +2367,7 @@ protected void leaveTryBlock(
protected void leaveTry(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit an Empty node.
*
@@ -2254,6 +2378,7 @@ protected void leaveTry(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitEmpty(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave an Empty node.
*
@@ -2263,6 +2388,7 @@ protected boolean visitEmpty(CAstNode n, C c, CAstVisitor visitor) {
protected void leaveEmpty(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit a Primitive node.
*
@@ -2273,6 +2399,7 @@ protected void leaveEmpty(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitPrimitive(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave a Primitive node.
*
@@ -2282,6 +2409,7 @@ protected boolean visitPrimitive(CAstNode n, C c, CAstVisitor visitor) {
protected void leavePrimitive(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit a Void node.
*
@@ -2292,6 +2420,7 @@ protected void leavePrimitive(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitVoid(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave a Void node.
*
@@ -2301,6 +2430,7 @@ protected boolean visitVoid(CAstNode n, C c, CAstVisitor visitor) {
protected void leaveVoid(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit a Cast node.
*
@@ -2311,6 +2441,7 @@ protected void leaveVoid(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitCast(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave a Cast node.
*
@@ -2320,6 +2451,7 @@ protected boolean visitCast(CAstNode n, C c, CAstVisitor visitor) {
protected void leaveCast(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit an InstanceOf node.
*
@@ -2330,6 +2462,7 @@ protected void leaveCast(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitInstanceOf(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave an InstanceOf node.
*
@@ -2339,6 +2472,7 @@ protected boolean visitInstanceOf(CAstNode n, C c, CAstVisitor visitor) {
protected void leaveInstanceOf(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit an InstanceOf node.
*
@@ -2352,6 +2486,7 @@ protected void leaveAssert(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitAssert(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave an InstanceOf node.
*
@@ -2365,6 +2500,7 @@ protected boolean visitEachElementHasNext(CAstNode n, C c, CAstVisitor visito
protected void leaveEachElementHasNext(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit an InstanceOf node.
*
@@ -2375,6 +2511,7 @@ protected void leaveEachElementHasNext(CAstNode n, C c, CAstVisitor visitor)
protected boolean visitEachElementGet(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave an FOR_EACH_ELEMENT_GET node.
*
@@ -2384,6 +2521,7 @@ protected boolean visitEachElementGet(CAstNode n, C c, CAstVisitor visitor) {
protected void leaveEachElementGet(CAstNode n, C c, CAstVisitor visitor) {
visitor.leaveNode(n, c, visitor);
}
+
/**
* Visit an TYPE_LITERAL_EXPR node.
*
@@ -2394,6 +2532,7 @@ protected void leaveEachElementGet(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitTypeLiteralExpr(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave an TYPE_LITERAL_EXPR node.
*
@@ -2407,6 +2546,7 @@ protected void leaveTypeLiteralExpr(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitIsDefinedExpr(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave an IS_DEFINED_EXPR node.
*
@@ -2420,6 +2560,7 @@ protected void leaveIsDefinedExpr(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitEcho(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave an ECHO node.
*
@@ -2433,6 +2574,7 @@ protected void leaveEcho(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitInclude(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave an INCLUDE node.
*
@@ -2446,6 +2588,7 @@ protected void leaveInclude(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitMacroVar(CAstNode n, C c, CAstVisitor visitor) {
return visitor.visitNode(n, c, visitor);
}
+
/**
* Leave an MACRO_VAR node.
*
diff --git a/cast/src/main/java/com/ibm/wala/cast/tree/visit/DelegatingCAstVisitor.java b/cast/src/main/java/com/ibm/wala/cast/tree/visit/DelegatingCAstVisitor.java
index b4098d1ffb..0b56d4063c 100644
--- a/cast/src/main/java/com/ibm/wala/cast/tree/visit/DelegatingCAstVisitor.java
+++ b/cast/src/main/java/com/ibm/wala/cast/tree/visit/DelegatingCAstVisitor.java
@@ -31,6 +31,7 @@ public abstract class DelegatingCAstVisitor exten
protected C makeFileContext(C context, CAstEntity n) {
return delegate.makeFileContext(context, n);
}
+
/**
* Construct a context for a Type entity or delegate by default.
*
@@ -41,6 +42,7 @@ protected C makeFileContext(C context, CAstEntity n) {
protected C makeTypeContext(C context, CAstEntity n) {
return delegate.makeTypeContext(context, n);
}
+
/**
* Construct a context for a Code entity or delegate by default.
*
@@ -62,6 +64,7 @@ protected C makeCodeContext(C context, CAstEntity n) {
protected C makeLocalContext(C context, CAstNode n) {
return delegate.makeLocalContext(context, n);
}
+
/**
* Construct a context for an Unwind node or delegate by default.
*
@@ -134,6 +137,7 @@ protected boolean doVisitEntity(CAstEntity n, C context, CAstVisitor visitor)
protected boolean enterEntity(CAstEntity n, C context, CAstVisitor visitor) {
return delegate.enterEntity(n, context, visitor);
}
+
/**
* Post-process an entity after visiting it.
*
@@ -156,6 +160,7 @@ protected void postProcessEntity(CAstEntity n, C context, CAstVisitor visitor
public boolean visitEntity(CAstEntity n, C context, CAstVisitor visitor) {
return delegate.visitEntity(n, context, visitor);
}
+
/**
* Leave any entity. Override only this to change behavior for all entities.
*
@@ -180,6 +185,7 @@ protected boolean visitFileEntity(
CAstEntity n, C context, C fileContext, CAstVisitor visitor) {
return delegate.visitFileEntity(n, context, fileContext, visitor);
}
+
/**
* Leave a File entity.
*
@@ -191,6 +197,7 @@ protected boolean visitFileEntity(
protected void leaveFileEntity(CAstEntity n, C context, C fileContext, CAstVisitor visitor) {
delegate.leaveFileEntity(n, context, fileContext, visitor);
}
+
/**
* Visit a Field entity.
*
@@ -202,6 +209,7 @@ protected void leaveFileEntity(CAstEntity n, C context, C fileContext, CAstVisit
protected boolean visitFieldEntity(CAstEntity n, C context, CAstVisitor visitor) {
return delegate.visitFieldEntity(n, context, visitor);
}
+
/**
* Leave a Field entity.
*
@@ -212,6 +220,7 @@ protected boolean visitFieldEntity(CAstEntity n, C context, CAstVisitor visit
protected void leaveFieldEntity(CAstEntity n, C context, CAstVisitor visitor) {
delegate.leaveFieldEntity(n, context, visitor);
}
+
/**
* Visit a Type entity.
*
@@ -225,6 +234,7 @@ protected boolean visitTypeEntity(
CAstEntity n, C context, C typeContext, CAstVisitor visitor) {
return delegate.visitTypeEntity(n, context, typeContext, visitor);
}
+
/**
* Leave a Type entity.
*
@@ -236,6 +246,7 @@ protected boolean visitTypeEntity(
protected void leaveTypeEntity(CAstEntity n, C context, C typeContext, CAstVisitor visitor) {
delegate.leaveTypeEntity(n, context, typeContext, visitor);
}
+
/**
* Visit a Function entity.
*
@@ -249,6 +260,7 @@ protected boolean visitFunctionEntity(
CAstEntity n, C context, C codeContext, CAstVisitor visitor) {
return delegate.visitFunctionEntity(n, context, codeContext, visitor);
}
+
/**
* Leave a Function entity.
*
@@ -261,6 +273,7 @@ protected void leaveFunctionEntity(
CAstEntity n, C context, C codeContext, CAstVisitor visitor) {
delegate.leaveFunctionEntity(n, context, codeContext, visitor);
}
+
/**
* Visit a Script entity.
*
@@ -274,6 +287,7 @@ protected boolean visitScriptEntity(
CAstEntity n, C context, C codeContext, CAstVisitor visitor) {
return delegate.visitScriptEntity(n, context, codeContext, visitor);
}
+
/**
* Leave a Script entity.
*
@@ -308,6 +322,7 @@ protected boolean doVisit(CAstNode n, C context, CAstVisitor visitor) {
protected boolean enterNode(CAstNode n, C c, CAstVisitor visitor) {
return delegate.enterNode(n, c, visitor);
}
+
/**
* Post-process a node after visiting it.
*
@@ -330,6 +345,7 @@ protected void postProcessNode(CAstNode n, C c, CAstVisitor visitor) {
public boolean visitNode(CAstNode n, C c, CAstVisitor visitor) {
return delegate.visitNode(n, c, visitor);
}
+
/**
* Leave any node. Override only this to change behavior for all nodes.
*
@@ -352,6 +368,7 @@ public void leaveNode(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitFunctionExpr(CAstNode n, C c, CAstVisitor visitor) {
return delegate.visitFunctionExpr(n, c, visitor);
}
+
/**
* Leave a FunctionExpr node.
*
@@ -362,6 +379,7 @@ protected boolean visitFunctionExpr(CAstNode n, C c, CAstVisitor visitor) {
protected void leaveFunctionExpr(CAstNode n, C c, CAstVisitor visitor) {
delegate.leaveFunctionExpr(n, c, visitor);
}
+
/**
* Visit a FunctionStmt node.
*
@@ -373,6 +391,7 @@ protected void leaveFunctionExpr(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitFunctionStmt(CAstNode n, C c, CAstVisitor visitor) {
return delegate.visitFunctionStmt(n, c, visitor);
}
+
/**
* Leave a FunctionStmt node.
*
@@ -383,6 +402,7 @@ protected boolean visitFunctionStmt(CAstNode n, C c, CAstVisitor visitor) {
protected void leaveFunctionStmt(CAstNode n, C c, CAstVisitor visitor) {
delegate.leaveFunctionStmt(n, c, visitor);
}
+
/**
* Visit a ClassStmt node.
*
@@ -394,6 +414,7 @@ protected void leaveFunctionStmt(CAstNode n, C c, CAstVisitor visitor) {
protected boolean visitClassStmt(CAstNode n, C c, CAstVisitor