/** * @author kosyakov - Initial contribution and API * @since 2.10 */ @Accessors @SuppressWarnings("all") public class DefaultHierarchyRoot implements IHierarchyRoot { private final List<IHierarchyNode> roots = CollectionLiterals.<IHierarchyNode>newArrayList(); @Pure public List<IHierarchyNode> getRoots() { return this.roots; } }
/** * A fragment that generates a class that inherits from the generated class of the super-grammar. * This inheritance can be disabled with the {@code inheritImplementation} property. */ @SuppressWarnings("all") public abstract class AbstractInheritingFragment extends AbstractStubGeneratingFragment { @Accessors private boolean inheritImplementation = true; @Pure public boolean isInheritImplementation() { return this.inheritImplementation; } public void setInheritImplementation(final boolean inheritImplementation) { this.inheritImplementation = inheritImplementation; } }
@SuppressWarnings("all") class CompositeGeneratorException extends RuntimeException { @Accessors private final List<Exception> exceptions = CollectionLiterals.<Exception>newArrayList(); public boolean addException(final Exception exception) { return this.exceptions.add(exception); } public boolean hasExceptions() { int _size = this.exceptions.size(); return (_size > 0); } @Pure public List<Exception> getExceptions() { return this.exceptions; } }
@SuppressWarnings("all") public class ApiTokenAuthenticator implements Authenticator<String, User> { @Accessors(AccessorType.PUBLIC_SETTER) private String apiToken; @Override public Optional<User> authenticate(final String credentials) throws AuthenticationException { if (((!StringExtensions.isNullOrEmpty(this.apiToken)) && Objects.equal(credentials, this.apiToken))) { User _user = new User("_apiToken", "apiToken", "api.token@example.com"); return Optional.<User>of(_user); } else { return Optional.<User>empty(); } } public void setApiToken(final String apiToken) { this.apiToken = apiToken; } }
/** * @noextend This class is not intended to be subclassed by clients. * @noinstantiate This class is not intended to be instantiated by clients. * @noreference This class is not intended to be referenced by clients. * * @since 2.7 */ @SuppressWarnings("all") public class JvmIdentifiableMetaData extends AdapterImpl { @Accessors private boolean synthetic; @Override public boolean isAdapterForType(final Object type) { return Objects.equal(JvmIdentifiableMetaData.class, type); } @Pure public boolean isSynthetic() { return this.synthetic; } public void setSynthetic(final boolean synthetic) { this.synthetic = synthetic; } }
@SuppressWarnings("all") public abstract class AbstractDelegator<T extends Object> { @Accessors private T delegate; @Accessors private CompilationUnitImpl compilationUnit; @Pure public T getDelegate() { return this.delegate; } public void setDelegate(final T delegate) { this.delegate = delegate; } @Pure public CompilationUnitImpl getCompilationUnit() { return this.compilationUnit; } public void setCompilationUnit(final CompilationUnitImpl compilationUnit) { this.compilationUnit = compilationUnit; } }
@Accessors(AccessorType.PUBLIC_GETTER) public static final class JavaParseResult<T extends ASTNode> { private String javaCode; private List<T> nodes; private int type; public JavaParseResult(final String javaCode, final int type, final List<T> nodes) { this.javaCode = javaCode; this.type = type; this.nodes = nodes; } @Pure public String getJavaCode() { return this.javaCode; } @Pure public List<T> getNodes() { return this.nodes; } @Pure public int getType() { return this.type; } }
private static class QueueAppender extends AppenderSkeleton { @Accessors(AccessorType.PUBLIC_GETTER) private final Queue<LoggingTester.LogEntry> events = new ConcurrentLinkedQueue<LoggingTester.LogEntry>(); @Override public boolean requiresLayout() { return false; } @Override public void close() { } @Override protected void append(final LoggingEvent event) { String _renderedMessage = event.getRenderedMessage(); String _loggerName = event.getLoggerName(); long _timeStamp = event.getTimeStamp(); Level _level = event.getLevel(); final LoggingTester.LogEntry entry = new LoggingTester.LogEntry(_renderedMessage, _loggerName, _timeStamp, _level); this.events.add(entry); } @Pure public Queue<LoggingTester.LogEntry> getEvents() { return this.events; } }
@Accessors @SuppressWarnings("all") public class ActiveAnnotationContext {
@Accessors @SuppressWarnings("all") public abstract class Entry<T extends Object, R extends ITextSegment> {
@Accessors(AccessorType.PUBLIC_GETTER) public static class DefaultImportsAcceptor implements ImportsAcceptor { private Set<String> types = CollectionLiterals.<String>newHashSet();
/** * Configuration object for the generated standalone setup class. This class is responsible for adding * required EMF packages to the global registries. */ @Accessors @SuppressWarnings("all") public class StandaloneSetupAccess { private final List<StringConcatenationClient> registrations = CollectionLiterals.<StringConcatenationClient>newArrayList(); @Deprecated private final Set<TypeReference> imports = CollectionLiterals.<TypeReference>newHashSet(); /** * @deprecated this set is required for backwards-compatibility to Xpand templates included with * {@code org.eclipse.xtext.generator.adapter.FragmentAdapter}. */ @Deprecated public Set<TypeReference> getImports() { return this.imports; } @Pure public List<StringConcatenationClient> getRegistrations() { return this.registrations; } }
@FinalFieldsConstructor public static class QualifiedClassName { @Accessors(AccessorType.PUBLIC_GETTER) private final String packageName; @Accessors(AccessorType.PUBLIC_GETTER) private final String className; @Pure public String getPackageName() { return this.packageName; } @Pure public String getClassName() { return this.className; } public QualifiedClassName(final String packageName, final String className) { super(); this.packageName = packageName; this.className = className; } }
@FinalFieldsConstructor @Accessors protected static class SuperGrammar extends AdapterImpl { private final Grammar grammar; @Override public boolean isAdapterForType(final Object type) { return (type == SemanticSequencerExtensions.SuperGrammar.class); } public SuperGrammar(final Grammar grammar) { super(); this.grammar = grammar; } @Pure public Grammar getGrammar() { return this.grammar; } }
@FinalFieldsConstructor public static class Result { @Accessors private final Set<CategorizedProblem> compilationProblems = CollectionLiterals.<CategorizedProblem>newLinkedHashSet(); private final HashMap<String, byte[]> classMap = new HashMap<String, byte[]>(); private final ClassLoader parentClassLoader; public ClassLoader getClassLoader() { return new InMemoryJavaCompiler.ByteClassLoader(this.classMap, this.parentClassLoader); } public Result(final ClassLoader parentClassLoader) { super(); this.parentClassLoader = parentClassLoader; } @Pure public Set<CategorizedProblem> getCompilationProblems() { return this.compilationProblems; } }
@Accessors @FinalFieldsConstructor @SuppressWarnings("all")
/** * @author kosyakov - Initial contribution and API */ @Singleton @Accessors @FinalFieldsConstructor @SuppressWarnings("all") public class DefaultBracePairProvider implements IBracePairProvider { private final Set<BracePair> pairs; public DefaultBracePairProvider() { this( Collections.<BracePair>unmodifiableSet(CollectionLiterals.<BracePair>newHashSet(new BracePair("(", ")", true), new BracePair("{", "}", true), new BracePair("[", "]", true)))); } public DefaultBracePairProvider(final Set<BracePair> pairs) { super(); this.pairs = pairs; } @Pure public Set<BracePair> getPairs() { return this.pairs; } }
@SuppressWarnings("all") public class ArrayBracketsFormattingReplacer implements ITextReplacer { @Accessors private final ISemanticRegion region;
@Accessors @FinalFieldsConstructor @SuppressWarnings("all")
@Observable @Accessors @SuppressWarnings("all") public class DistanceConverter {