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
2f49331
commit 8b8cc6c
Showing
14 changed files
with
155 additions
and
37 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
4 changes: 4 additions & 0 deletions
4
src/main/java/me/tomassetti/symbolsolver/model/TypeDeclaration.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 |
---|---|---|---|
@@ -1,9 +1,13 @@ | |||
package me.tomassetti.symbolsolver.model; | package me.tomassetti.symbolsolver.model; | ||
|
|
||
import java.util.List; | |||
|
|||
/** | /** | ||
* Created by federico on 31/07/15. | * Created by federico on 31/07/15. | ||
*/ | */ | ||
public interface TypeDeclaration extends SymbolDeclaration { | public interface TypeDeclaration extends SymbolDeclaration { | ||
String getQualifiedName(); | String getQualifiedName(); | ||
Context getContext(); | Context getContext(); | ||
|
|||
SymbolReference<MethodDeclaration> solveMethod(String name, List<TypeUsage> parameterTypes); | |||
} | } |
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
50 changes: 50 additions & 0 deletions
50
src/main/java/me/tomassetti/symbolsolver/model/TypeUsageOfTypeDeclaration.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,50 @@ | |||
package me.tomassetti.symbolsolver.model; | |||
|
|||
import java.util.List; | |||
|
|||
/** | |||
* Created by federico on 31/07/15. | |||
*/ | |||
public class TypeUsageOfTypeDeclaration implements TypeUsage { | |||
|
|||
private TypeDeclaration typeDeclaration; | |||
|
|||
public TypeUsageOfTypeDeclaration(TypeDeclaration typeDeclaration) { | |||
this.typeDeclaration = typeDeclaration; | |||
} | |||
|
|||
@Override | |||
public boolean isArray() { | |||
return false; | |||
} | |||
|
|||
@Override | |||
public boolean isPrimitive() { | |||
return false; | |||
} | |||
|
|||
@Override | |||
public boolean isReferenceType() { | |||
return true; | |||
} | |||
|
|||
@Override | |||
public String getTypeName() { | |||
return typeDeclaration.getName(); | |||
} | |||
|
|||
@Override | |||
public TypeUsage getBaseType() { | |||
throw new UnsupportedOperationException(); | |||
} | |||
|
|||
@Override | |||
public Context getContext() { | |||
throw new UnsupportedOperationException(); | |||
} | |||
|
|||
@Override | |||
public SymbolReference<MethodDeclaration> solveMethod(String name, List<TypeUsage> parameterTypes) { | |||
return typeDeclaration.solveMethod(name, parameterTypes); | |||
} | |||
} |
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