public void setVariableIdentifier(char[] variableIdentifier) { VARIABLE_IDENTIFIER.put(getNd(), this.address, variableIdentifier); }
/** * If this type is a type variable, this returns the variable's identifier. */ public IString getVariableIdentifier() { return VARIABLE_IDENTIFIER.get(getNd(), this.address); }
/** * Returns the declaring type (as reported by the type's generic signature). * Not to be confused with the declaring type as stored in the class file. * That is stored in {@link NdType#getDeclaringType}. Any class that is * nested inside another class with generic arguments will have one of * these. Classes nested inside non-generic classes won't have one of these, * and neither will non-nested classes. */ public NdComplexTypeSignature getGenericDeclaringType() { return DECLARING_TYPE.get(getNd(), this.address); }
/** * Returns the declaring type (as reported by the type's generic signature). * Not to be confused with the declaring type as stored in the class file. * That is stored in {@link NdType#getDeclaringType}. Any class that is * nested inside another class with generic arguments will have one of * these. Classes nested inside non-generic classes won't have one of these, * and neither will non-nested classes. */ public NdComplexTypeSignature getGenericDeclaringType() { return DECLARING_TYPE.get(getNd(), this.address); }
@Override public List<NdTypeArgument> getTypeArguments() { return TYPE_ARGUMENTS.asList(getNd(), this.address); }
/** * If this type is a type variable, this returns the variable's identifier. */ public IString getVariableIdentifier() { return VARIABLE_IDENTIFIER.get(getNd(), this.address); }
@Override public NdTypeId getRawType() { return RAW_TYPE.get(getNd(), this.address); }
public void setGenericDeclaringType(NdComplexTypeSignature enclosingType) { DECLARING_TYPE.put(getNd(), this.address, enclosingType); }
@Override public NdTypeId getRawType() { return RAW_TYPE.get(getNd(), this.address); }
@Override public List<NdTypeArgument> getTypeArguments() { return TYPE_ARGUMENTS.asList(getNd(), this.address); }
public void setRawType(NdTypeId rawType) { RAW_TYPE.put(getNd(), this.address, rawType); }
public void setVariableIdentifier(char[] variableIdentifier) { VARIABLE_IDENTIFIER.put(getNd(), this.address, variableIdentifier); }
public void setRawType(NdTypeId rawType) { RAW_TYPE.put(getNd(), this.address, rawType); }
public void setGenericDeclaringType(NdComplexTypeSignature enclosingType) { DECLARING_TYPE.put(getNd(), this.address, enclosingType); }
@Override public NdTypeSignature getArrayDimensionType() { if (isArrayType()) { long size = TYPE_ARGUMENTS.size(getNd(), this.address); if (size != 1) { throw getNd().describeProblem() .addProblemAddress(TYPE_ARGUMENTS, this.address) .build("Array types should have exactly one argument"); //$NON-NLS-1$ } return TYPE_ARGUMENTS.get(getNd(), this.address, 0).getType(); } return null; }
@Override public NdTypeSignature getArrayDimensionType() { if (isArrayType()) { long size = TYPE_ARGUMENTS.size(getNd(), this.address); if (size != 1) { throw getNd().describeProblem() .addProblemAddress(TYPE_ARGUMENTS, this.address) .build("Array types should have exactly one argument"); //$NON-NLS-1$ } return TYPE_ARGUMENTS.get(getNd(), this.address, 0).getType(); } return null; }