sun.tools.tree.StringExpression Java Examples

The following examples show how to use sun.tools.tree.StringExpression. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ConstantPool.java    From jdk8u-jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Add an entry
 */
public void put(Object obj) {
    ConstantPoolData data = hash.get(obj);
    if (data == null) {
        if (obj instanceof String) {
            data = new StringConstantData(this, (String)obj);
        } else if (obj instanceof StringExpression) {
            data = new StringExpressionConstantData(this, (StringExpression)obj);
        } else if (obj instanceof ClassDeclaration) {
            data = new ClassConstantData(this, (ClassDeclaration)obj);
        } else if (obj instanceof Type) {
            data = new ClassConstantData(this, (Type)obj);
        } else if (obj instanceof MemberDefinition) {
            data = new FieldConstantData(this, (MemberDefinition)obj);
        } else if (obj instanceof NameAndTypeData) {
            data = new NameAndTypeConstantData(this, (NameAndTypeData)obj);
        } else if (obj instanceof Number) {
            data = new NumberConstantData(this, (Number)obj);
        }
        hash.put(obj, data);
    }
}
 
Example #2
Source File: ConstantPool.java    From jdk8u-dev-jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Add an entry
 */
public void put(Object obj) {
    ConstantPoolData data = hash.get(obj);
    if (data == null) {
        if (obj instanceof String) {
            data = new StringConstantData(this, (String)obj);
        } else if (obj instanceof StringExpression) {
            data = new StringExpressionConstantData(this, (StringExpression)obj);
        } else if (obj instanceof ClassDeclaration) {
            data = new ClassConstantData(this, (ClassDeclaration)obj);
        } else if (obj instanceof Type) {
            data = new ClassConstantData(this, (Type)obj);
        } else if (obj instanceof MemberDefinition) {
            data = new FieldConstantData(this, (MemberDefinition)obj);
        } else if (obj instanceof NameAndTypeData) {
            data = new NameAndTypeConstantData(this, (NameAndTypeData)obj);
        } else if (obj instanceof Number) {
            data = new NumberConstantData(this, (Number)obj);
        }
        hash.put(obj, data);
    }
}
 
Example #3
Source File: ConstantPool.java    From jdk8u-jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Add an entry
 */
public void put(Object obj) {
    ConstantPoolData data = hash.get(obj);
    if (data == null) {
        if (obj instanceof String) {
            data = new StringConstantData(this, (String)obj);
        } else if (obj instanceof StringExpression) {
            data = new StringExpressionConstantData(this, (StringExpression)obj);
        } else if (obj instanceof ClassDeclaration) {
            data = new ClassConstantData(this, (ClassDeclaration)obj);
        } else if (obj instanceof Type) {
            data = new ClassConstantData(this, (Type)obj);
        } else if (obj instanceof MemberDefinition) {
            data = new FieldConstantData(this, (MemberDefinition)obj);
        } else if (obj instanceof NameAndTypeData) {
            data = new NameAndTypeConstantData(this, (NameAndTypeData)obj);
        } else if (obj instanceof Number) {
            data = new NumberConstantData(this, (Number)obj);
        }
        hash.put(obj, data);
    }
}
 
Example #4
Source File: ConstantPool.java    From jdk8u_jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Add an entry
 */
public void put(Object obj) {
    ConstantPoolData data = hash.get(obj);
    if (data == null) {
        if (obj instanceof String) {
            data = new StringConstantData(this, (String)obj);
        } else if (obj instanceof StringExpression) {
            data = new StringExpressionConstantData(this, (StringExpression)obj);
        } else if (obj instanceof ClassDeclaration) {
            data = new ClassConstantData(this, (ClassDeclaration)obj);
        } else if (obj instanceof Type) {
            data = new ClassConstantData(this, (Type)obj);
        } else if (obj instanceof MemberDefinition) {
            data = new FieldConstantData(this, (MemberDefinition)obj);
        } else if (obj instanceof NameAndTypeData) {
            data = new NameAndTypeConstantData(this, (NameAndTypeData)obj);
        } else if (obj instanceof Number) {
            data = new NumberConstantData(this, (Number)obj);
        }
        hash.put(obj, data);
    }
}
 
Example #5
Source File: ConstantPool.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Add an entry
 */
public void put(Object obj) {
    ConstantPoolData data = hash.get(obj);
    if (data == null) {
        if (obj instanceof String) {
            data = new StringConstantData(this, (String)obj);
        } else if (obj instanceof StringExpression) {
            data = new StringExpressionConstantData(this, (StringExpression)obj);
        } else if (obj instanceof ClassDeclaration) {
            data = new ClassConstantData(this, (ClassDeclaration)obj);
        } else if (obj instanceof Type) {
            data = new ClassConstantData(this, (Type)obj);
        } else if (obj instanceof MemberDefinition) {
            data = new FieldConstantData(this, (MemberDefinition)obj);
        } else if (obj instanceof NameAndTypeData) {
            data = new NameAndTypeConstantData(this, (NameAndTypeData)obj);
        } else if (obj instanceof Number) {
            data = new NumberConstantData(this, (Number)obj);
        }
        hash.put(obj, data);
    }
}
 
Example #6
Source File: ConstantPool.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Add an entry
 */
public void put(Object obj) {
    ConstantPoolData data = hash.get(obj);
    if (data == null) {
        if (obj instanceof String) {
            data = new StringConstantData(this, (String)obj);
        } else if (obj instanceof StringExpression) {
            data = new StringExpressionConstantData(this, (StringExpression)obj);
        } else if (obj instanceof ClassDeclaration) {
            data = new ClassConstantData(this, (ClassDeclaration)obj);
        } else if (obj instanceof Type) {
            data = new ClassConstantData(this, (Type)obj);
        } else if (obj instanceof MemberDefinition) {
            data = new FieldConstantData(this, (MemberDefinition)obj);
        } else if (obj instanceof NameAndTypeData) {
            data = new NameAndTypeConstantData(this, (NameAndTypeData)obj);
        } else if (obj instanceof Number) {
            data = new NumberConstantData(this, (Number)obj);
        }
        hash.put(obj, data);
    }
}
 
Example #7
Source File: ConstantPool.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Add an entry
 */
public void put(Object obj) {
    ConstantPoolData data = hash.get(obj);
    if (data == null) {
        if (obj instanceof String) {
            data = new StringConstantData(this, (String)obj);
        } else if (obj instanceof StringExpression) {
            data = new StringExpressionConstantData(this, (StringExpression)obj);
        } else if (obj instanceof ClassDeclaration) {
            data = new ClassConstantData(this, (ClassDeclaration)obj);
        } else if (obj instanceof Type) {
            data = new ClassConstantData(this, (Type)obj);
        } else if (obj instanceof MemberDefinition) {
            data = new FieldConstantData(this, (MemberDefinition)obj);
        } else if (obj instanceof NameAndTypeData) {
            data = new NameAndTypeConstantData(this, (NameAndTypeData)obj);
        } else if (obj instanceof Number) {
            data = new NumberConstantData(this, (Number)obj);
        }
        hash.put(obj, data);
    }
}
 
Example #8
Source File: ConstantPool.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Add an entry
 */
public void put(Object obj) {
    ConstantPoolData data = hash.get(obj);
    if (data == null) {
        if (obj instanceof String) {
            data = new StringConstantData(this, (String)obj);
        } else if (obj instanceof StringExpression) {
            data = new StringExpressionConstantData(this, (StringExpression)obj);
        } else if (obj instanceof ClassDeclaration) {
            data = new ClassConstantData(this, (ClassDeclaration)obj);
        } else if (obj instanceof Type) {
            data = new ClassConstantData(this, (Type)obj);
        } else if (obj instanceof MemberDefinition) {
            data = new FieldConstantData(this, (MemberDefinition)obj);
        } else if (obj instanceof NameAndTypeData) {
            data = new NameAndTypeConstantData(this, (NameAndTypeData)obj);
        } else if (obj instanceof Number) {
            data = new NumberConstantData(this, (Number)obj);
        }
        hash.put(obj, data);
    }
}
 
Example #9
Source File: ConstantPool.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Add an entry
 */
public void put(Object obj) {
    ConstantPoolData data = hash.get(obj);
    if (data == null) {
        if (obj instanceof String) {
            data = new StringConstantData(this, (String)obj);
        } else if (obj instanceof StringExpression) {
            data = new StringExpressionConstantData(this, (StringExpression)obj);
        } else if (obj instanceof ClassDeclaration) {
            data = new ClassConstantData(this, (ClassDeclaration)obj);
        } else if (obj instanceof Type) {
            data = new ClassConstantData(this, (Type)obj);
        } else if (obj instanceof MemberDefinition) {
            data = new FieldConstantData(this, (MemberDefinition)obj);
        } else if (obj instanceof NameAndTypeData) {
            data = new NameAndTypeConstantData(this, (NameAndTypeData)obj);
        } else if (obj instanceof Number) {
            data = new NumberConstantData(this, (Number)obj);
        }
        hash.put(obj, data);
    }
}
 
Example #10
Source File: ConstantPool.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Add an entry
 */
public void put(Object obj) {
    ConstantPoolData data = hash.get(obj);
    if (data == null) {
        if (obj instanceof String) {
            data = new StringConstantData(this, (String)obj);
        } else if (obj instanceof StringExpression) {
            data = new StringExpressionConstantData(this, (StringExpression)obj);
        } else if (obj instanceof ClassDeclaration) {
            data = new ClassConstantData(this, (ClassDeclaration)obj);
        } else if (obj instanceof Type) {
            data = new ClassConstantData(this, (Type)obj);
        } else if (obj instanceof MemberDefinition) {
            data = new FieldConstantData(this, (MemberDefinition)obj);
        } else if (obj instanceof NameAndTypeData) {
            data = new NameAndTypeConstantData(this, (NameAndTypeData)obj);
        } else if (obj instanceof Number) {
            data = new NumberConstantData(this, (Number)obj);
        }
        hash.put(obj, data);
    }
}
 
Example #11
Source File: ConstantPool.java    From dragonwell8_jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Add an entry
 */
public void put(Object obj) {
    ConstantPoolData data = hash.get(obj);
    if (data == null) {
        if (obj instanceof String) {
            data = new StringConstantData(this, (String)obj);
        } else if (obj instanceof StringExpression) {
            data = new StringExpressionConstantData(this, (StringExpression)obj);
        } else if (obj instanceof ClassDeclaration) {
            data = new ClassConstantData(this, (ClassDeclaration)obj);
        } else if (obj instanceof Type) {
            data = new ClassConstantData(this, (Type)obj);
        } else if (obj instanceof MemberDefinition) {
            data = new FieldConstantData(this, (MemberDefinition)obj);
        } else if (obj instanceof NameAndTypeData) {
            data = new NameAndTypeConstantData(this, (NameAndTypeData)obj);
        } else if (obj instanceof Number) {
            data = new NumberConstantData(this, (Number)obj);
        }
        hash.put(obj, data);
    }
}
 
Example #12
Source File: ConstantPool.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Add an entry
 */
public void put(Object obj) {
    ConstantPoolData data = hash.get(obj);
    if (data == null) {
        if (obj instanceof String) {
            data = new StringConstantData(this, (String)obj);
        } else if (obj instanceof StringExpression) {
            data = new StringExpressionConstantData(this, (StringExpression)obj);
        } else if (obj instanceof ClassDeclaration) {
            data = new ClassConstantData(this, (ClassDeclaration)obj);
        } else if (obj instanceof Type) {
            data = new ClassConstantData(this, (Type)obj);
        } else if (obj instanceof MemberDefinition) {
            data = new FieldConstantData(this, (MemberDefinition)obj);
        } else if (obj instanceof NameAndTypeData) {
            data = new NameAndTypeConstantData(this, (NameAndTypeData)obj);
        } else if (obj instanceof Number) {
            data = new NumberConstantData(this, (Number)obj);
        }
        hash.put(obj, data);
    }
}
 
Example #13
Source File: ConstantPool.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Add an entry
 */
public void put(Object obj) {
    ConstantPoolData data = hash.get(obj);
    if (data == null) {
        if (obj instanceof String) {
            data = new StringConstantData(this, (String)obj);
        } else if (obj instanceof StringExpression) {
            data = new StringExpressionConstantData(this, (StringExpression)obj);
        } else if (obj instanceof ClassDeclaration) {
            data = new ClassConstantData(this, (ClassDeclaration)obj);
        } else if (obj instanceof Type) {
            data = new ClassConstantData(this, (Type)obj);
        } else if (obj instanceof MemberDefinition) {
            data = new FieldConstantData(this, (MemberDefinition)obj);
        } else if (obj instanceof NameAndTypeData) {
            data = new NameAndTypeConstantData(this, (NameAndTypeData)obj);
        } else if (obj instanceof Number) {
            data = new NumberConstantData(this, (Number)obj);
        }
        hash.put(obj, data);
    }
}
 
Example #14
Source File: StringExpressionConstantData.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Constructor
 */
StringExpressionConstantData(ConstantPool tab, StringExpression str) {
    this.str = str;
    tab.put(str.getValue());
}
 
Example #15
Source File: StringExpressionConstantData.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Constructor
 */
StringExpressionConstantData(ConstantPool tab, StringExpression str) {
    this.str = str;
    tab.put(str.getValue());
}
 
Example #16
Source File: StringExpressionConstantData.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Constructor
 */
StringExpressionConstantData(ConstantPool tab, StringExpression str) {
    this.str = str;
    tab.put(str.getValue());
}
 
Example #17
Source File: StringExpressionConstantData.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Constructor
 */
StringExpressionConstantData(ConstantPool tab, StringExpression str) {
    this.str = str;
    tab.put(str.getValue());
}
 
Example #18
Source File: StringExpressionConstantData.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Constructor
 */
StringExpressionConstantData(ConstantPool tab, StringExpression str) {
    this.str = str;
    tab.put(str.getValue());
}
 
Example #19
Source File: StringExpressionConstantData.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Constructor
 */
StringExpressionConstantData(ConstantPool tab, StringExpression str) {
    this.str = str;
    tab.put(str.getValue());
}
 
Example #20
Source File: StringExpressionConstantData.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Constructor
 */
StringExpressionConstantData(ConstantPool tab, StringExpression str) {
    this.str = str;
    tab.put(str.getValue());
}
 
Example #21
Source File: StringExpressionConstantData.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Constructor
 */
StringExpressionConstantData(ConstantPool tab, StringExpression str) {
    this.str = str;
    tab.put(str.getValue());
}
 
Example #22
Source File: StringExpressionConstantData.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Constructor
 */
StringExpressionConstantData(ConstantPool tab, StringExpression str) {
    this.str = str;
    tab.put(str.getValue());
}
 
Example #23
Source File: StringExpressionConstantData.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Constructor
 */
StringExpressionConstantData(ConstantPool tab, StringExpression str) {
    this.str = str;
    tab.put(str.getValue());
}
 
Example #24
Source File: StringExpressionConstantData.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Constructor
 */
StringExpressionConstantData(ConstantPool tab, StringExpression str) {
    this.str = str;
    tab.put(str.getValue());
}
 
Example #25
Source File: StringExpressionConstantData.java    From jdk8u-dev-jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Constructor
 */
StringExpressionConstantData(ConstantPool tab, StringExpression str) {
    this.str = str;
    tab.put(str.getValue());
}
 
Example #26
Source File: StringExpressionConstantData.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Constructor
 */
StringExpressionConstantData(ConstantPool tab, StringExpression str) {
    this.str = str;
    tab.put(str.getValue());
}