[Java] Class GenericsTypeName
- org.codehaus.groovy.ast.GenericsType.GenericsTypeName
Represents GenericsType name TODO In order to distinguish GenericsType with same name(See GROOVY-8409), we should add a property to keep the declaring class. fixing GROOVY-8409 steps: 1) change the signature of constructor GenericsTypeName to `GenericsTypeName(String name, ClassNode declaringClass)` 2) try to fix all compilation errors(if `GenericsType` has declaringClass property, the step would be a bit easy to fix...) 3) run all tests to see whether the change breaks anything 4) if all tests pass, congratulations! but if some tests are broken, try to debug and find why... We should find a way to set declaring class for `GenericsType` first, it can be completed at the resolving phase.
Constructor Summary
Constructor and description |
---|
GenericsType.GenericsTypeName
(String name) |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
boolean |
equals(Object o) | |
String |
getName() | |
int |
hashCode() | |
String |
toString() |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor Detail
public GenericsType.GenericsTypeName(String name)
Method Detail
@Override public boolean equals(Object o)
public String getName()
@Override public int hashCode()
@Override public String toString()
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.5.14/html/gapi/org/codehaus/groovy/ast/GenericsType.GenericsTypeName.html