@Test public void testAsArrayTypeUsage() { assertEquals(arrayOfBoolean, arrayOfBoolean.asArrayTypeUsage()); assertEquals(arrayOfString, arrayOfString.asArrayTypeUsage()); assertEquals(arrayOfArrayOfString, arrayOfArrayOfString.asArrayTypeUsage()); }
@Override public ArrayTypeUsage asArrayTypeUsage() { return this; }
ArrayTypeUsage implements TypeUsage { @Override public ArrayTypeUsage asArrayTypeUsage() { return this; } }
ArrayTypeUsage implements TypeUsage { @Override public ArrayTypeUsage asArrayTypeUsage() { return this; } ArrayTypeUsage(TypeUsage componentType); }
ArrayTypeUsage implements TypeUsage { @Override public ArrayTypeUsage asArrayTypeUsage() { return this; } ArrayTypeUsage(TypeUsage componentType); TypeUsage getComponentType(); @Override boolean equals(Object o); @Override int hashCode(); @Override boolean isArray(); @Override boolean isReference(); @Override ArrayTypeUsage asArrayTypeUsage(); @Override JvmType jvmType(); @Override boolean hasInstanceField(String fieldName, Symbol instance); @Override Symbol getInstanceField(String fieldName, Symbol instance); @Override Optional<Invokable> getMethod(String method, boolean staticContext); @Override boolean canBeAssignedTo(TypeUsage type); @Override String toString(); @Override TypeUsage replaceTypeVariables(Map<String, T> typeParams); @Override boolean sameType(TypeUsage other); @Override String describe(); }
ArrayTypeUsage implements TypeUsage { @Override public ArrayTypeUsage asArrayTypeUsage() { return this; } ArrayTypeUsage(TypeUsage componentType); TypeUsage getComponentType(); @Override boolean equals(Object o); @Override int hashCode(); @Override boolean isArray(); @Override boolean isReference(); @Override ArrayTypeUsage asArrayTypeUsage(); @Override JvmType jvmType(); @Override boolean hasInstanceField(String fieldName, Symbol instance); @Override Symbol getInstanceField(String fieldName, Symbol instance); @Override Optional<Invokable> getMethod(String method, boolean staticContext); @Override boolean canBeAssignedTo(TypeUsage type); @Override String toString(); @Override TypeUsage replaceTypeVariables(Map<String, T> typeParams); @Override boolean sameType(TypeUsage other); @Override String describe();  }