Top Inners Constructors Methods
org.eclipse.xtend.lib.annotations

public Class FinalFieldsConstructorProcessor

extends Object
implements TransformationParticipant<MutableTypeParameterDeclarator>
Class Inheritance
All Implemented Interfaces
org.eclipse.xtend.lib.macro.TransformationParticipant
Annotations
@Beta
@SuppressWarnings:all
Imports
com.google.common.annotations.Beta, com.google.common.collect.Iterables, java.util.ArrayList, .Arrays, .Collections, .HashMap, .List, .Objects, java.util.function.Consumer, java.util.regex.Pattern, org.eclipse.xtend.lib.macro.TransformationContext, .TransformationParticipant, org.eclipse.xtend.lib.macro.declaration.AnnotationReference, .ClassDeclaration, .MutableClassDeclaration, .MutableConstructorDeclaration, .MutableFieldDeclaration, .MutableParameterDeclaration, .MutableTypeDeclaration, .MutableTypeParameterDeclarator, .ResolvedConstructor, .ResolvedParameter, .TypeDeclaration, .TypeReference, org.eclipse.xtend2.lib.StringConcatenation, .StringConcatenationClient, org.eclipse.xtext.xbase.lib.CollectionLiterals, .Extension, .Functions.Function1, .IterableExtensions, .Procedures.Procedure1, .XbaseGenerated

Since
2.7

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
protected void
public void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

FinalFieldsConstructorProcessorback to summary
public FinalFieldsConstructorProcessor()

Method Detail

_transformback to summary
protected void _transform(final MutableClassDeclaration it, final TransformationContext context)
_transformback to summary
protected void _transform(final MutableConstructorDeclaration it, final TransformationContext context)
doTransformback to summary
public void doTransform(final List<? extends MutableTypeParameterDeclarator> elements, final TransformationContext context)

Implements org.eclipse.xtend.lib.macro.TransformationParticipant.doTransform.

Doc from org.eclipse.xtend.lib.macro.TransformationParticipant.doTransform.

Invoked by the compiler

Annotations
@Override
transformback to summary
public void transform(final MutableTypeParameterDeclarator it, final TransformationContext context)
Annotations
@XbaseGenerated
org.eclipse.xtend.lib.annotations back to summary

public Class FinalFieldsConstructorProcessor.Util

extends Object
Class Inheritance
  • java.lang.Object
  • org.eclipse.xtend.lib.annotations.FinalFieldsConstructorProcessor.Util
Annotations
@Beta

Since
2.7

Field Summary

Modifier and TypeField and Description
private TransformationContext
private static final Pattern

Constructor Summary

AccessConstructor and Description
public
Util(final TransformationContext context)

Method Summary

Modifier and TypeMethod and Description
public void
public String
public Iterable<? extends MutableFieldDeclaration>
public ArrayList<TypeReference>
public ResolvedConstructor
public boolean
public void
public boolean
private TypeReference
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

contextback to summary
private TransformationContext context
Annotations
@Extension
EMPTY_BODYback to summary
private static final Pattern EMPTY_BODY

Constructor Detail

Utilback to summary
public Util(final TransformationContext context)

Method Detail

addFinalFieldsConstructorback to summary
public void addFinalFieldsConstructor(final MutableClassDeclaration it)
getConstructorAlreadyExistsMessageback to summary
public String getConstructorAlreadyExistsMessage(final MutableTypeDeclaration it)
getFinalFieldsback to summary
public Iterable<? extends MutableFieldDeclaration> getFinalFields(final MutableTypeDeclaration it)
getFinalFieldsConstructorArgumentTypesback to summary
public ArrayList<TypeReference> getFinalFieldsConstructorArgumentTypes(final MutableTypeDeclaration cls)
getSuperConstructorback to summary
public ResolvedConstructor getSuperConstructor(final TypeDeclaration it)
hasFinalFieldsConstructorback to summary
public boolean hasFinalFieldsConstructor(final MutableTypeDeclaration cls)
makeFinalFieldsConstructorback to summary
public void makeFinalFieldsConstructor(final MutableConstructorDeclaration it)
needsFinalFieldConstructorback to summary
public boolean needsFinalFieldConstructor(final MutableClassDeclaration it)
orObjectback to summary
private TypeReference orObject(final TypeReference ref)