private boolean isNativeFunctionType(FunctionType type) { return type.isNativeObjectType(); }
private boolean isNativeFunctionType(FunctionType type) { return type.isNativeObjectType(); }
@Override boolean isTheObjectType() { return getConstructor().isNativeObjectType() && "Object".equals(getReferenceName()); }
@Override public boolean isSymbolObjectType() { return getConstructor().isNativeObjectType() && "Symbol".equals(getReferenceName()); }
@Override public boolean isStringObjectType() { return getConstructor().isNativeObjectType() && "String".equals(getReferenceName()); }
@Override public boolean isStringObjectType() { return getConstructor().isNativeObjectType() && "String".equals(getReferenceName()); }
@Override public boolean isNumberObjectType() { return getConstructor().isNativeObjectType() && "Number".equals(getReferenceName()); }
@Override public boolean isBooleanObjectType() { return getConstructor().isNativeObjectType() && "Boolean".equals(getReferenceName()); }
@Override public boolean isNumberObjectType() { return getConstructor().isNativeObjectType() && "Number".equals(getReferenceName()); }
@Override public boolean isBooleanObjectType() { return getConstructor().isNativeObjectType() && "Boolean".equals(getReferenceName()); }
@Override public boolean isDateType() { return getConstructor().isNativeObjectType() && "Date".equals(getReferenceName()); }
@Override public boolean isArrayType() { return getConstructor().isNativeObjectType() && "Array".equals(getReferenceName()); }
@Override public boolean isDateType() { return getConstructor().isNativeObjectType() && "Date".equals(getReferenceName()); }
@Override public boolean isRegexpType() { return getConstructor().isNativeObjectType() && "RegExp".equals(getReferenceName()); }
@Override boolean isTheObjectType() { return getConstructor().isNativeObjectType() && "Object".equals(getReferenceName()); }
@Override public boolean isArrayType() { return getConstructor().isNativeObjectType() && "Array".equals(getReferenceName()); }
@Override public boolean isRegexpType() { return getConstructor().isNativeObjectType() && "RegExp".equals(getReferenceName()); }
/** Copies all the information from another function type. */ public FunctionBuilder copyFromOtherFunction(FunctionType otherType) { this.name = otherType.getReferenceName(); this.sourceNode = otherType.getSource(); this.parametersNode = otherType.getParametersNode(); this.returnType = otherType.getReturnType(); this.typeOfThis = otherType.getTypeOfThis(); this.templateTypeMap = otherType.getTemplateTypeMap(); this.isConstructor = otherType.isConstructor(); this.isNativeType = otherType.isNativeObjectType(); return this; }
@Override public final void clearCachedValues() { super.clearCachedValues(); if (subTypes != null) { for (FunctionType subType : subTypes) { subType.clearCachedValues(); } } if (!isNativeObjectType()) { if (hasInstanceType()) { getInstanceType().clearCachedValues(); } if (prototypeSlot != null) { ((ObjectType) prototypeSlot.getType()).clearCachedValues(); } } }
/** Copies all the information from another function type. */ public FunctionBuilder copyFromOtherFunction(FunctionType otherType) { int isNative = otherType.isNativeObjectType() ? IS_NATIVE : 0; int isAbstract = otherType.isAbstract() ? IS_ABSTRACT : 0; int inferredReturnType = otherType.isReturnTypeInferred() ? INFERRED_RETURN_TYPE : 0; this.name = otherType.getReferenceName(); this.sourceNode = otherType.getSource(); this.parametersNode = otherType.getParametersNode(); this.returnType = otherType.getReturnType(); this.typeOfThis = otherType.getTypeOfThis(); this.templateTypeMap = otherType.getTemplateTypeMap(); this.kind = otherType.getKind(); this.properties = isNative | isAbstract | inferredReturnType; return this; }