◆ JavaExtractor() [1/4]
ppt4j.feature.java.JavaExtractor.JavaExtractor |
( |
InputStream | inputStream | ) |
throws IOException |
◆ JavaExtractor() [2/4]
ppt4j.feature.java.JavaExtractor.JavaExtractor |
( |
String | path | ) |
throws IOException |
◆ JavaExtractor() [3/4]
ppt4j.feature.java.JavaExtractor.JavaExtractor |
( |
CtClass<?> | clazz | ) |
|
◆ JavaExtractor() [4/4]
ppt4j.feature.java.JavaExtractor.JavaExtractor |
( |
ClassFactory | factory, |
|
|
String | className ) |
◆ getInnerClass()
Collection< JavaExtractor > ppt4j.feature.java.JavaExtractor.getInnerClass |
( |
| ) |
|
◆ getLogicalLine()
int ppt4j.feature.java.JavaExtractor.getLogicalLine |
( |
int | line | ) |
|
Retrieves the logical line number corresponding to the given physical line number. If the mapping does not exist, returns -1.
- Parameters
-
line | the physical line number |
- Returns
- the logical line number, or -1 if the mapping does not exist
◆ getSourceType()
Features.SourceType ppt4j.feature.java.JavaExtractor.getSourceType |
( |
| ) |
|
◆ isValidLine()
boolean ppt4j.feature.java.JavaExtractor.isValidLine |
( |
int | line | ) |
|
Checks if the given line number is a valid line.
- Parameters
-
line | the line number to be checked |
- Returns
- true if the line number is valid, false otherwise
◆ nil()
Creates and returns a new instance of JavaExtractor with default values. This method is used to create an instance of JavaExtractor when no specific parameters are needed.
- Returns
- a new instance of JavaExtractor with default values
◆ parse()
void ppt4j.feature.java.JavaExtractor.parse |
( |
| ) |
|
Parses the root element by iterating through its fields, elements, nested types, and inner classes. For each nested type that is a class, it creates a JavaExtractor object and adds it to the innerClasses map. For each anonymous inner class, it creates a JavaExtractor object and adds it to the innerClasses map. Finally, it recursively calls parse method on all inner classes and marks the root element as parsed.
Implements ppt4j.feature.Extractor.
The documentation for this class was generated from the following file: