Uses of Interface
spoon.reflect.cu.SourcePosition
Package
Description
This package defines compilation units that hold the source code and some classes around them (in most cases, these features should be ignored by the programmers).
This package contains the meta-model part that models the declarations (program's structures such as classes, fields, etc).
This package defines all the sub-factories for the Spoon meta-model.
This package contains some default implementations for commonly used processing tasks.
This package provides an implementation of the spoon.reflect package.
-
Uses of SourcePosition in spoon.reflect.cu
Modifier and TypeMethodDescriptionSourcePositionHolder.getPosition()
If the element comes from a Java source file (hence has not created during transformation), returns the position in the original source file -
Uses of SourcePosition in spoon.reflect.cu.position
Modifier and TypeInterfaceDescriptioninterface
This interface represents the position of a Method or Type declaration in a source file.interface
This interface represents the position of a program element like an expression in a source file.interface
Represents the position of a program element in a source file in an immutable manner.Modifier and TypeClassDescriptionclass
This class represents the position of a program element in a source file. -
Uses of SourcePosition in spoon.reflect.declaration
Modifier and TypeMethodDescriptionCtElement.getPosition()
Gets the position of this element in input source filesModifier and TypeMethodDescription<E extends CtElement>
ECtCompilationUnit.setPosition(SourcePosition position)
<E extends CtElement>
ECtElement.setPosition(SourcePosition position)
Sets the position in the Java source file.<E extends CtElement>
ECtElement.setPositions(SourcePosition position)
Sets the position of this element and all its children element. -
Uses of SourcePosition in spoon.reflect.factory
Modifier and TypeMethodDescriptionCoreFactory.createPartialSourcePosition(CompilationUnit compilationUnit)
Creates a source position that points to the given compilation unitFactory.createPartialSourcePosition(CompilationUnit compilationUnit)
FactoryImpl.createPartialSourcePosition(CompilationUnit compilationUnit)
CoreFactory.createSourcePosition(CompilationUnit compilationUnit, int startSource, int end, int[] lineSeparatorPositions)
Creates a source position.Factory.createSourcePosition(CompilationUnit compilationUnit, int startSource, int end, int[] lineSeparatorPositions)
FactoryImpl.createSourcePosition(CompilationUnit compilationUnit, int startSource, int end, int[] lineSeparatorPositions)
-
Uses of SourcePosition in spoon.support
Modifier and TypeMethodDescriptionDefaultCoreFactory.createPartialSourcePosition(CompilationUnit compilationUnit)
DefaultCoreFactory.createSourcePosition(CompilationUnit compilationUnit, int startSource, int end, int[] lineSeparatorPositions)
-
Uses of SourcePosition in spoon.support.reflect
-
Uses of SourcePosition in spoon.support.reflect.code
Modifier and TypeMethodDescription<E extends CtElement>
ECtStatementListImpl.setPosition(SourcePosition position)
-
Uses of SourcePosition in spoon.support.reflect.cu.position
Modifier and TypeClassDescriptionclass
This class represents the position of a Java program element in a source file.class
This class represents the position of a named Java program element in a source file.class
This class represents the position of a Java program element in a source file.class
This class intends to create a source position containing only a compilation unit.class
This immutable class represents the position of a Java program element in a source file. -
Uses of SourcePosition in spoon.support.reflect.declaration
Modifier and TypeMethodDescriptionCtCompilationUnitImpl.getOrCreatePartialSourcePosition()
CtCompilationUnitImpl.getPosition()
CtElementImpl.getPosition()
Modifier and TypeMethodDescription<E extends CtElement>
ECtCompilationUnitImpl.setPosition(SourcePosition position)
<E extends CtElement>
ECtElementImpl.setPosition(SourcePosition position)
<E extends CtElement>
ECtElementImpl.setPositions(SourcePosition position)
-
Uses of SourcePosition in spoon.support.sniper.internal