Top Fields Constructors Methods
org.eclipse.lsp4j.generator

public Class JsonRpcDataTransformationContext

extends Object
implements TransformationContext
Class Inheritance
All Implemented Interfaces
org.eclipse.xtend.lib.macro.TransformationContext, org.eclipse.xtend.lib.macro.services.Associator, org.eclipse.xtend.lib.macro.services.AnnotationReferenceProvider, org.eclipse.xtend.lib.macro.file.FileLocations, org.eclipse.xtend.lib.macro.file.FileSystemSupport, org.eclipse.xtend.lib.macro.services.TypeLookup, org.eclipse.xtend.lib.macro.services.GlobalTypeLookup, org.eclipse.xtend.lib.macro.services.TypeReferenceProvider, org.eclipse.xtend.lib.macro.services.ProblemSupport, org.eclipse.xtend.lib.macro.services.Tracability
Annotations
@SuppressWarnings:all
Imports
java.io.InputStream, java.net.URI, java.util.ArrayList, .Collection, .List, .Set, org.eclipse.lsp4j.jsonrpc.messages.Either, org.eclipse.xtend.lib.annotations.AccessorType, .Accessors, .Delegate, org.eclipse.xtend.lib.macro.TransformationContext, org.eclipse.xtend.lib.macro.declaration.AnnotationReference, .Element, .InterfaceDeclaration, .MutableAnnotationTypeDeclaration, .MutableClassDeclaration, .MutableElement, .MutableEnumerationTypeDeclaration, .MutableInterfaceDeclaration, .Type, .TypeReference, org.eclipse.xtend.lib.macro.file.Path, org.eclipse.xtend.lib.macro.services.AnnotationReferenceBuildContext, .Problem, org.eclipse.xtext.xbase.lib.CollectionLiterals, .Functions.Function1, .IterableExtensions, .Procedures.Procedure0, .Procedures.Procedure1, .Pure

Field Summary

Modifier and TypeField and Description
private final TransformationContext
private final TypeReference

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addError(final Element arg0, final String arg1)

Implements org.eclipse.xtend.lib.macro.services.ProblemSupport.addError.

Adds a problem marker with severity Severity#ERROR to the given element

public void
addWarning(final Element arg0, final String arg1)

Implements org.eclipse.xtend.lib.macro.services.ProblemSupport.addWarning.

Adds a problem marker with severity Severity#WARNING to the given element

protected void
collectChildTypes(final TypeReference type, final EitherTypeArgument parent, final boolean right, final Collection<EitherTypeArgument> types)

public boolean
public MutableAnnotationTypeDeclaration
public MutableClassDeclaration
public MutableEnumerationTypeDeclaration
public MutableInterfaceDeclaration
public Type
public Type
public TypeReference
getAnyType()

Implements org.eclipse.xtend.lib.macro.services.TypeReferenceProvider.getAnyType.

The any type is the type of the null pointer and has no concrete representation in Java.

public String
getCharset(final Path arg0)

Implements org.eclipse.xtend.lib.macro.file.FileSystemSupport.getCharset.

Returns the name of a charset to be used when decoding the contents of this file into characters.

public Iterable<? extends Path>
public Collection<EitherTypeArgument>
getChildTypes(final TypeReference typeReference)

public CharSequence
getContents(final Path arg0)

Implements org.eclipse.xtend.lib.macro.file.FileSystemSupport.getContents.

Returns the contents of this file as a char sequence.

public InputStream
getContentsAsStream(final Path arg0)

Implements org.eclipse.xtend.lib.macro.file.FileSystemSupport.getContentsAsStream.

Returns an open input stream on the contents of this file.

public TypeReference
public JsonType
public long
public TypeReference
getLeftType(final TypeReference typeReference)

public TypeReference
public TypeReference
public Element
public Element
public TypeReference
public TypeReference
public TypeReference
public TypeReference
public TypeReference
public TypeReference
public TypeReference
public TypeReference
public TypeReference
public List<? extends Problem>
public Path
getProjectFolder(final Path arg0)

Implements org.eclipse.xtend.lib.macro.file.FileLocations.getProjectFolder.

Returns the project root for the given resource handle.

public Set<Path>
public TypeReference
getRightType(final TypeReference typeReference)

public TypeReference
public Path
getSourceFolder(final Path arg0)

Implements org.eclipse.xtend.lib.macro.file.FileLocations.getSourceFolder.

Returns the source folder the given handle is contained in or null if the given Path is not located in a source folder.

public TypeReference
public Path
getTargetFolder(final Path arg0)

Implements org.eclipse.xtend.lib.macro.file.FileLocations.getTargetFolder.

Returns the target folder for the given source folder or null if the given folder is not a source folder or doesn't have a configured target folder.

public boolean
isEither(final TypeReference typeReference)

public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public AnnotationReference
newAnnotationReference(final AnnotationReference arg0)

Implements org.eclipse.xtend.lib.macro.services.AnnotationReferenceProvider.newAnnotationReference.

Create a new annotation reference base on the given annotation reference.

public AnnotationReference
public AnnotationReference
newAnnotationReference(final Class<?> arg0)

Implements org.eclipse.xtend.lib.macro.services.AnnotationReferenceProvider.newAnnotationReference.

Creates a new annotation reference for the given Class.

public AnnotationReference
public AnnotationReference
newAnnotationReference(final String arg0)

Implements org.eclipse.xtend.lib.macro.services.AnnotationReferenceProvider.newAnnotationReference.

Creates a new annotation reference for the given name.

public AnnotationReference
public AnnotationReference
newAnnotationReference(final Type arg0)

Implements org.eclipse.xtend.lib.macro.services.AnnotationReferenceProvider.newAnnotationReference.

Creates a new annotation reference for the given type declaration.

public AnnotationReference
public TypeReference
newArrayTypeReference(final TypeReference arg0)

Implements org.eclipse.xtend.lib.macro.services.TypeReferenceProvider.newArrayTypeReference.

Creates a new array type reference using the given component type.

public TypeReference
newSelfTypeReference(final Type arg0)

Implements org.eclipse.xtend.lib.macro.services.TypeReferenceProvider.newSelfTypeReference.

Returns a new self type reference for the given typeDeclaration, e.g. if you have a class like

 class Foo<T> {}
public TypeReference
newTypeReference(final Class<?> arg0, final TypeReference... arg1)

Implements org.eclipse.xtend.lib.macro.services.TypeReferenceProvider.newTypeReference.

Creates a new type reference for the given Class and the type arguments.

public TypeReference
newTypeReference(final String arg0, final TypeReference... arg1)

Implements org.eclipse.xtend.lib.macro.services.TypeReferenceProvider.newTypeReference.

Creates a new type reference for the given name and the given type arguments.

public TypeReference
newTypeReference(final Type arg0, final TypeReference... arg1)

Implements org.eclipse.xtend.lib.macro.services.TypeReferenceProvider.newTypeReference.

Creates a new type reference for the given typeDeclaration and the type arguments.

public TypeReference
public TypeReference
public TypeReference
public void
setPrimarySourceElement(final MutableElement arg0, final Element arg1)

Implements org.eclipse.xtend.lib.macro.services.Associator.setPrimarySourceElement.

Associates the generate element with the Xtend source code.

public URI
toURI(final Path arg0)

Implements org.eclipse.xtend.lib.macro.file.FileSystemSupport.toURI.

Returns the URI representing the given path.

public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait