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; }
12 public static boolean is_ITargetNode(INode node
)
14 try { ITargetNode src
= (ITargetNode
)node
; }
15 catch (ClassCastException e
) { return false; }
18 public static boolean is_IImportNode(INode node
)
20 try { IImportNode src
= (IImportNode
)node
; }
21 catch (ClassCastException e
) { return false; }
24 public static boolean is_IPackageNode(INode node
)
26 try { IPackageNode src
= (IPackageNode
)node
; }
27 catch (ClassCastException e
) { return false; }
30 public static boolean is_IDependNode(INode node
)
32 try { IDependNode d
= (IDependNode
)node
; }
33 catch (ClassCastException e
) { return false; }
36 public static boolean is_IIncludeNode(INode node
)
38 try { IIncludeNode i
= (IIncludeNode
)node
; }
39 catch (ClassCastException e
) { return false; }
43 public static IDependNode
to_IDependNode(INode node
)
45 try { return (IDependNode
)node
; }
46 catch (ClassCastException e
) { return null; }