SpoonUtils

public class SpoonUtils(source)

A collection of utilities for working with spoon.

Functions

Link copied to clipboard
public static T getCtElementForSourceCode<T, U extends CtType<? extends Object>>(String ignoredSourceCode, Class<U> ignoredKind, Matcher<Stringifiable> ignoredNameMatcher)
Returns a CtElement for the given source code.
Link copied to clipboard
public static CtModel getCtModel()
Returns a CtModel for submission.
Link copied to clipboard
public static String getNameOfCtElement(Class<? extends Object> type)
Returns a human-readable name of the given element type.
public static String getNameOfCtElement(CtElement element)
Returns a human-readable name of the given element.
Link copied to clipboard
public static CtType<? extends Object> getType(String className)
public static T getType<T extends CtType<? extends Object>>(String className, Class<T> type)
Returns the corresponding CtType in the spoon world for the given class.