|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.cs.crystal.util.Utilities
public class Utilities
Assorted utility methods
Constructor Summary | |
---|---|
Utilities()
|
Method Summary | ||
---|---|---|
static String |
ASTNodeToString(ASTNode node)
Takes an ASTNode and creates a more useful textual representation of it. |
|
static MethodDeclaration |
getMethodDeclaration(ASTNode node)
Finds the method declaration that this node is within. |
|
static boolean |
isVoidType(ITypeBinding type)
Is the given type the "void" type? |
|
static String |
methodDeclarationToString(MethodDeclaration md)
|
|
static String |
ModifierToString(int modifier)
Converts a modifier flag to a String representation of the modifers. |
|
static
|
nyi()
Not Yet Implemented. |
|
static
|
nyi(String err_msg)
Not Yet Implemented. |
|
static String |
resolveBinaryType(IType context,
String binaryType)
For resolving binary types. |
|
static String |
resolveType(IType context,
String simpleName)
To be used instead of IType.resolveType(String). |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Utilities()
Method Detail |
---|
public static String resolveBinaryType(IType context, String binaryType) throws JavaModelException
JavaModelException
public static String resolveType(IType context, String simpleName) throws JavaModelException
JavaModelException
public static String ASTNodeToString(ASTNode node)
public static boolean isVoidType(ITypeBinding type)
public static String ModifierToString(int modifier)
modifier
- the modifier flag
public static MethodDeclaration getMethodDeclaration(ASTNode node)
node
- the node whose method we wish to find
public static String methodDeclarationToString(MethodDeclaration md)
public static <T> T nyi()
public static <T> T nyi(String err_msg)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |