public class PovrayDeclarationProcessor
extends java.lang.Object
Processor for extracting declarations from the Povray code.
Include files are taken into account when searching for known declarations. The following search order is used:
Constructor and Description |
---|
PovrayDeclarationProcessor()
Deprecated.
Constructor
|
Modifier and Type | Method and Description |
---|---|
ICompletionProposal[] |
computeDeclarationProposals(IFile file,
IRegion region,
ImageRegistry imgReg,
java.lang.String match,
boolean recurseInto)
Deprecated.
Gets a list of completion proposals for declared objects and
variables.
|
ICompletionProposal[] |
computeDeclarationProposals(ITextViewer viewer,
IRegion region,
ImageRegistry imgReg,
java.lang.String match)
Deprecated.
Gets a list of completion proposals for declared objects and
variables.
|
java.util.Set<DeclEntry> |
getDeclEntries(IFile file,
boolean includeInterfaceParameter,
boolean recurseInto)
Deprecated.
Gets a list of
DeclEntry objects, each
representing a declared objects or
variables. |
java.util.Set<DeclEntry> |
getIncludes(java.io.File file,
java.util.Set<DeclEntry> includes,
java.util.List<java.lang.String> processedFiles,
java.lang.String match,
IProject project,
boolean includeInterfaceParameter,
boolean recurseInto,
int recursionLevel)
Deprecated.
Gets the list of the names for declared objects and
variables.
|
public PovrayDeclarationProcessor()
public java.util.Set<DeclEntry> getDeclEntries(IFile file, boolean includeInterfaceParameter, boolean recurseInto)
DeclEntry
objects, each
representing a declared objects or
variables. From the beginning file on, all include files
are taken into account as well, as long as they reside either
within the viewer's project, referenced projects or can be found
within the Povray library path, absolute specified files will be
processed as well.file
- The IFile to start with.includeInterfaceParameter
- true
to include macro interface parameter,
false
to ignore them.recurseInto
- true
to include imported files
(follow the #include
statements), false
to process just this file.DeclEntry
objects.public ICompletionProposal[] computeDeclarationProposals(ITextViewer viewer, IRegion region, ImageRegistry imgReg, java.lang.String match)
viewer
- The viewer of the actual document.region
- The selection regionimgReg
- The image registry holding the iconsmatch
- If not-empty only declarations beginning with this String are returned.public ICompletionProposal[] computeDeclarationProposals(IFile file, IRegion region, ImageRegistry imgReg, java.lang.String match, boolean recurseInto)
file
- The IFile to start with.region
- The selection regionimgReg
- The image registry holding the iconsmatch
- If not-empty only declarations beginning with this String are returned.recurseInto
- true
to include imported files
(follow the #include
statements), false
to process just this file.public java.util.Set<DeclEntry> getIncludes(java.io.File file, java.util.Set<DeclEntry> includes, java.util.List<java.lang.String> processedFiles, java.lang.String match, IProject project, boolean includeInterfaceParameter, boolean recurseInto, int recursionLevel)
file
- The file to be processedincludes
- The declared names found so farprocessedFiles
- List of String
, each one beeing the
absolute path of already processed files, used for preventing double-processing
of the very same file as well as cyclic processing.match
- If not-empty only declarations beginning with this String are returned.project
- The project of the starting document.includeInterfaceParameter
- true
to include macro interface parameter,
false
to ignore them.recurseInto
- true
to include imported files
(follow the #include
statements), false
to process just this file.recursionLevel
- The actual recursion level, only utilized if recurseInto
is true
.