Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a7fa0c3
commit c1e95ef
Showing
17 changed files
with
616 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
src/main/java/me/tomassetti/symbolsolver/model/javassist/JavassistFieldDeclaration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,69 @@ | |||
package me.tomassetti.symbolsolver.model.javassist; | |||
|
|||
import com.github.javaparser.ast.Node; | |||
import com.github.javaparser.ast.body.FieldDeclaration; | |||
import javassist.CtField; | |||
import javassist.CtMethod; | |||
import javassist.NotFoundException; | |||
import me.tomassetti.symbolsolver.model.Context; | |||
import me.tomassetti.symbolsolver.model.TypeParameter; | |||
import me.tomassetti.symbolsolver.model.TypeSolver; | |||
import me.tomassetti.symbolsolver.model.declarations.MethodDeclaration; | |||
import me.tomassetti.symbolsolver.model.declarations.ParameterDeclaration; | |||
import me.tomassetti.symbolsolver.model.declarations.TypeDeclaration; | |||
import me.tomassetti.symbolsolver.model.usages.MethodUsage; | |||
|
|||
import java.util.List; | |||
|
|||
/** | |||
* Created by federico on 01/08/15. | |||
*/ | |||
public class JavassistFieldDeclaration implements me.tomassetti.symbolsolver.model.FieldDeclaration { | |||
public JavassistFieldDeclaration(CtField ctField, TypeSolver typeSolver) { | |||
this.ctField = ctField; | |||
this.typeSolver = typeSolver; | |||
} | |||
|
|||
private CtField ctField; | |||
private TypeSolver typeSolver; | |||
|
|||
@Override | |||
public TypeDeclaration getType(TypeSolver typeSolver) { | |||
throw new UnsupportedOperationException(); | |||
} | |||
|
|||
@Override | |||
public String getName() { | |||
return ctField.getName(); | |||
} | |||
|
|||
@Override | |||
public boolean isField() { | |||
return true; | |||
} | |||
|
|||
@Override | |||
public boolean isParameter() { | |||
return false; | |||
} | |||
|
|||
@Override | |||
public boolean isVariable() { | |||
return false; | |||
} | |||
|
|||
@Override | |||
public boolean isType() { | |||
return false; | |||
} | |||
|
|||
@Override | |||
public boolean isClass() { | |||
return false; | |||
} | |||
|
|||
@Override | |||
public boolean isInterface() { | |||
return false; | |||
} | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.