TreebuildConfig.java: implemented own caching
[treebuild.git] / base / Conversion.java
blob4c8db1e0420f6736d10b0fdd81cd0bd214ba2be9
2 package org.de.metux.treebuild.base;
4 public class Conversion
6 public static boolean is_ISourceNode(INode node)
8 try { ISourceNode src = (ISourceNode)node; }
9 catch (ClassCastException e) { return false; }
10 return true;
12 public static boolean is_ITargetNode(INode node)
14 try { ITargetNode src = (ITargetNode)node; }
15 catch (ClassCastException e) { return false; }
16 return true;
18 public static boolean is_IImportNode(INode node)
20 try { IImportNode src = (IImportNode)node; }
21 catch (ClassCastException e) { return false; }
22 return true;
24 public static boolean is_IPackageNode(INode node)
26 try { IPackageNode src = (IPackageNode)node; }
27 catch (ClassCastException e) { return false; }
28 return true;
30 public static boolean is_IDependNode(INode node)
32 try { IDependNode d = (IDependNode)node; }
33 catch (ClassCastException e) { return false; }
34 return true;
36 public static boolean is_IIncludeNode(INode node)
38 try { IIncludeNode i = (IIncludeNode)node; }
39 catch (ClassCastException e) { return false; }
40 return true;
43 public static IDependNode to_IDependNode(INode node)
45 try { return (IDependNode)node; }
46 catch (ClassCastException e) { return null; }