Java Code Examples for sun.tools.tree.StringExpression

The following examples show how to use sun.tools.tree.StringExpression. These examples are extracted from open source projects. 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 Project: dragonwell8_jdk   Source File: ConstantPool.java    License: 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 Project: TencentKona-8   Source File: ConstantPool.java    License: 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 Project: jdk8u60   Source File: ConstantPool.java    License: 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 Project: openjdk-jdk8u   Source File: ConstantPool.java    License: 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
/**
 * 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 Project: openjdk-jdk9   Source File: ConstantPool.java    License: 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 Project: jdk8u-jdk   Source File: ConstantPool.java    License: 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 Project: hottub   Source File: ConstantPool.java    License: 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
/**
 * 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 Project: openjdk-8   Source File: ConstantPool.java    License: 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 Project: jdk8u_jdk   Source File: ConstantPool.java    License: 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 Project: jdk8u-jdk   Source File: ConstantPool.java    License: 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 Project: jdk8u-dev-jdk   Source File: ConstantPool.java    License: 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
/**
 * Constructor
 */
StringExpressionConstantData(ConstantPool tab, StringExpression str) {
    this.str = str;
    tab.put(str.getValue());
}
 
Example 15
/**
 * Constructor
 */
StringExpressionConstantData(ConstantPool tab, StringExpression str) {
    this.str = str;
    tab.put(str.getValue());
}
 
Example 16
/**
 * Constructor
 */
StringExpressionConstantData(ConstantPool tab, StringExpression str) {
    this.str = str;
    tab.put(str.getValue());
}
 
Example 17
/**
 * Constructor
 */
StringExpressionConstantData(ConstantPool tab, StringExpression str) {
    this.str = str;
    tab.put(str.getValue());
}
 
Example 18
/**
 * Constructor
 */
StringExpressionConstantData(ConstantPool tab, StringExpression str) {
    this.str = str;
    tab.put(str.getValue());
}
 
Example 19
/**
 * Constructor
 */
StringExpressionConstantData(ConstantPool tab, StringExpression str) {
    this.str = str;
    tab.put(str.getValue());
}
 
Example 20
/**
 * Constructor
 */
StringExpressionConstantData(ConstantPool tab, StringExpression str) {
    this.str = str;
    tab.put(str.getValue());
}
 
Example 21
/**
 * Constructor
 */
StringExpressionConstantData(ConstantPool tab, StringExpression str) {
    this.str = str;
    tab.put(str.getValue());
}
 
Example 22
/**
 * Constructor
 */
StringExpressionConstantData(ConstantPool tab, StringExpression str) {
    this.str = str;
    tab.put(str.getValue());
}
 
Example 23
/**
 * Constructor
 */
StringExpressionConstantData(ConstantPool tab, StringExpression str) {
    this.str = str;
    tab.put(str.getValue());
}
 
Example 24
/**
 * Constructor
 */
StringExpressionConstantData(ConstantPool tab, StringExpression str) {
    this.str = str;
    tab.put(str.getValue());
}
 
Example 25
/**
 * Constructor
 */
StringExpressionConstantData(ConstantPool tab, StringExpression str) {
    this.str = str;
    tab.put(str.getValue());
}
 
Example 26
/**
 * Constructor
 */
StringExpressionConstantData(ConstantPool tab, StringExpression str) {
    this.str = str;
    tab.put(str.getValue());
}