com.sun.tools.corba.se.idl.ConstEntry Java Examples
The following examples show how to use
com.sun.tools.corba.se.idl.ConstEntry.
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: Util.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Extract the global constants from the supplied integer expression * representation (string) and add them to the supplied import list. **/ static private void checkForGlobalConstants (String exprRep, Vector importTypes, Vector importList) { // NOTE: Do not use '/' as a delimiter. Symbol table names use '/' as a // delimiter and would not be otherwise properly collected. Blanks and // arithmetic symbols do not appear in tokens, except for '/'. java.util.StringTokenizer st = new java.util.StringTokenizer (exprRep, " +-*()~&|^%<>"); while (st.hasMoreTokens ()) { String token = st.nextToken (); // When token contains '/', it represents the division symbol or // a nested type (e.g., I/x). Ignore the division symbol, and don't // forget constants declared within global interfaces! if (!token.equals ("/")) { SymtabEntry typeEntry = (SymtabEntry)symbolTable.get (token); if (typeEntry instanceof ConstEntry) { int slashIdx = token.indexOf ('/'); if (slashIdx < 0) // Possible global constant { if (importTypes.contains (typeEntry)) addTo (importList, typeEntry.name ()); } else // Possible constant in global interface { SymtabEntry constContainer = (SymtabEntry)symbolTable.get (token.substring (0, slashIdx)); if (constContainer instanceof InterfaceEntry && importTypes.contains (constContainer)) addTo (importList, constContainer.name ()); } } } } }
Example #2
Source File: Terminal.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public Object evaluate () throws EvaluationException { if (value () instanceof ConstEntry) return ((ConstEntry)value ()).value ().evaluate (); else return value (); }
Example #3
Source File: Util.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Extract the global constants from the supplied integer expression * representation (string) and add them to the supplied import list. **/ static private void checkForGlobalConstants (String exprRep, Vector importTypes, Vector importList) { // NOTE: Do not use '/' as a delimiter. Symbol table names use '/' as a // delimiter and would not be otherwise properly collected. Blanks and // arithmetic symbols do not appear in tokens, except for '/'. java.util.StringTokenizer st = new java.util.StringTokenizer (exprRep, " +-*()~&|^%<>"); while (st.hasMoreTokens ()) { String token = st.nextToken (); // When token contains '/', it represents the division symbol or // a nested type (e.g., I/x). Ignore the division symbol, and don't // forget constants declared within global interfaces! if (!token.equals ("/")) { SymtabEntry typeEntry = (SymtabEntry)symbolTable.get (token); if (typeEntry instanceof ConstEntry) { int slashIdx = token.indexOf ('/'); if (slashIdx < 0) // Possible global constant { if (importTypes.contains (typeEntry)) addTo (importList, typeEntry.name ()); } else // Possible constant in global interface { SymtabEntry constContainer = (SymtabEntry)symbolTable.get (token.substring (0, slashIdx)); if (constContainer instanceof InterfaceEntry && importTypes.contains (constContainer)) addTo (importList, constContainer.name ()); } } } } }
Example #4
Source File: ConstGen.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Generate Java code for an IDL constant. A constant is written to * a new class only when it is not a member of an interface; otherwise * it written to the interface class in which it resides. **/ public void generate (Hashtable symbolTable, ConstEntry c, PrintWriter s) { this.symbolTable = symbolTable; this.c = c; this.stream = s; init (); if (c.container () instanceof ModuleEntry) generateConst (); else if (stream != null) writeConstExpr (); }
Example #5
Source File: Util.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Extract the global constants from the supplied integer expression * representation (string) and add them to the supplied import list. **/ static private void checkForGlobalConstants (String exprRep, Vector importTypes, Vector importList) { // NOTE: Do not use '/' as a delimiter. Symbol table names use '/' as a // delimiter and would not be otherwise properly collected. Blanks and // arithmetic symbols do not appear in tokens, except for '/'. java.util.StringTokenizer st = new java.util.StringTokenizer (exprRep, " +-*()~&|^%<>"); while (st.hasMoreTokens ()) { String token = st.nextToken (); // When token contains '/', it represents the division symbol or // a nested type (e.g., I/x). Ignore the division symbol, and don't // forget constants declared within global interfaces! if (!token.equals ("/")) { SymtabEntry typeEntry = (SymtabEntry)symbolTable.get (token); if (typeEntry instanceof ConstEntry) { int slashIdx = token.indexOf ('/'); if (slashIdx < 0) // Possible global constant { if (importTypes.contains (typeEntry)) addTo (importList, typeEntry.name ()); } else // Possible constant in global interface { SymtabEntry constContainer = (SymtabEntry)symbolTable.get (token.substring (0, slashIdx)); if (constContainer instanceof InterfaceEntry && importTypes.contains (constContainer)) addTo (importList, constContainer.name ()); } } } } }
Example #6
Source File: ConstGen.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Generate Java code for an IDL constant. A constant is written to * a new class only when it is not a member of an interface; otherwise * it written to the interface class in which it resides. **/ public void generate (Hashtable symbolTable, ConstEntry c, PrintWriter s) { this.symbolTable = symbolTable; this.c = c; this.stream = s; init (); if (c.container () instanceof ModuleEntry) generateConst (); else if (stream != null) writeConstExpr (); }
Example #7
Source File: Terminal.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public Object evaluate () throws EvaluationException { if (value () instanceof ConstEntry) return ((ConstEntry)value ()).value ().evaluate (); else return value (); }
Example #8
Source File: Terminal.java From hottub with GNU General Public License v2.0 | 5 votes |
public Object evaluate () throws EvaluationException { if (value () instanceof ConstEntry) return ((ConstEntry)value ()).value ().evaluate (); else return value (); }
Example #9
Source File: Terminal.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public Object evaluate () throws EvaluationException { if (value () instanceof ConstEntry) return ((ConstEntry)value ()).value ().evaluate (); else return value (); }
Example #10
Source File: ConstGen.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Generate Java code for an IDL constant. A constant is written to * a new class only when it is not a member of an interface; otherwise * it written to the interface class in which it resides. **/ public void generate (Hashtable symbolTable, ConstEntry c, PrintWriter s) { this.symbolTable = symbolTable; this.c = c; this.stream = s; init (); if (c.container () instanceof ModuleEntry) generateConst (); else if (stream != null) writeConstExpr (); }
Example #11
Source File: Util.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Extract the global constants from the supplied integer expression * representation (string) and add them to the supplied import list. **/ static private void checkForGlobalConstants (String exprRep, Vector importTypes, Vector importList) { // NOTE: Do not use '/' as a delimiter. Symbol table names use '/' as a // delimiter and would not be otherwise properly collected. Blanks and // arithmetic symbols do not appear in tokens, except for '/'. java.util.StringTokenizer st = new java.util.StringTokenizer (exprRep, " +-*()~&|^%<>"); while (st.hasMoreTokens ()) { String token = st.nextToken (); // When token contains '/', it represents the division symbol or // a nested type (e.g., I/x). Ignore the division symbol, and don't // forget constants declared within global interfaces! if (!token.equals ("/")) { SymtabEntry typeEntry = (SymtabEntry)symbolTable.get (token); if (typeEntry instanceof ConstEntry) { int slashIdx = token.indexOf ('/'); if (slashIdx < 0) // Possible global constant { if (importTypes.contains (typeEntry)) addTo (importList, typeEntry.name ()); } else // Possible constant in global interface { SymtabEntry constContainer = (SymtabEntry)symbolTable.get (token.substring (0, slashIdx)); if (constContainer instanceof InterfaceEntry && importTypes.contains (constContainer)) addTo (importList, constContainer.name ()); } } } } }
Example #12
Source File: Util.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Extract the global constants from the supplied integer expression * representation (string) and add them to the supplied import list. **/ static private void checkForGlobalConstants (String exprRep, Vector importTypes, Vector importList) { // NOTE: Do not use '/' as a delimiter. Symbol table names use '/' as a // delimiter and would not be otherwise properly collected. Blanks and // arithmetic symbols do not appear in tokens, except for '/'. java.util.StringTokenizer st = new java.util.StringTokenizer (exprRep, " +-*()~&|^%<>"); while (st.hasMoreTokens ()) { String token = st.nextToken (); // When token contains '/', it represents the division symbol or // a nested type (e.g., I/x). Ignore the division symbol, and don't // forget constants declared within global interfaces! if (!token.equals ("/")) { SymtabEntry typeEntry = (SymtabEntry)symbolTable.get (token); if (typeEntry instanceof ConstEntry) { int slashIdx = token.indexOf ('/'); if (slashIdx < 0) // Possible global constant { if (importTypes.contains (typeEntry)) addTo (importList, typeEntry.name ()); } else // Possible constant in global interface { SymtabEntry constContainer = (SymtabEntry)symbolTable.get (token.substring (0, slashIdx)); if (constContainer instanceof InterfaceEntry && importTypes.contains (constContainer)) addTo (importList, constContainer.name ()); } } } } }
Example #13
Source File: Terminal.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public Object evaluate () throws EvaluationException { if (value () instanceof ConstEntry) return ((ConstEntry)value ()).value ().evaluate (); else return value (); }
Example #14
Source File: ConstGen.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Generate Java code for an IDL constant. A constant is written to * a new class only when it is not a member of an interface; otherwise * it written to the interface class in which it resides. **/ public void generate (Hashtable symbolTable, ConstEntry c, PrintWriter s) { this.symbolTable = symbolTable; this.c = c; this.stream = s; init (); if (c.container () instanceof ModuleEntry) generateConst (); else if (stream != null) writeConstExpr (); }
Example #15
Source File: ConstGen.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Generate Java code for an IDL constant. A constant is written to * a new class only when it is not a member of an interface; otherwise * it written to the interface class in which it resides. **/ public void generate (Hashtable symbolTable, ConstEntry c, PrintWriter s) { this.symbolTable = symbolTable; this.c = c; this.stream = s; init (); if (c.container () instanceof ModuleEntry) generateConst (); else if (stream != null) writeConstExpr (); }
Example #16
Source File: Util.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Extract the global constants from the supplied integer expression * representation (string) and add them to the supplied import list. **/ static private void checkForGlobalConstants (String exprRep, Vector importTypes, Vector importList) { // NOTE: Do not use '/' as a delimiter. Symbol table names use '/' as a // delimiter and would not be otherwise properly collected. Blanks and // arithmetic symbols do not appear in tokens, except for '/'. java.util.StringTokenizer st = new java.util.StringTokenizer (exprRep, " +-*()~&|^%<>"); while (st.hasMoreTokens ()) { String token = st.nextToken (); // When token contains '/', it represents the division symbol or // a nested type (e.g., I/x). Ignore the division symbol, and don't // forget constants declared within global interfaces! if (!token.equals ("/")) { SymtabEntry typeEntry = (SymtabEntry)symbolTable.get (token); if (typeEntry instanceof ConstEntry) { int slashIdx = token.indexOf ('/'); if (slashIdx < 0) // Possible global constant { if (importTypes.contains (typeEntry)) addTo (importList, typeEntry.name ()); } else // Possible constant in global interface { SymtabEntry constContainer = (SymtabEntry)symbolTable.get (token.substring (0, slashIdx)); if (constContainer instanceof InterfaceEntry && importTypes.contains (constContainer)) addTo (importList, constContainer.name ()); } } } } }
Example #17
Source File: ConstGen.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Generate Java code for an IDL constant. A constant is written to * a new class only when it is not a member of an interface; otherwise * it written to the interface class in which it resides. **/ public void generate (Hashtable symbolTable, ConstEntry c, PrintWriter s) { this.symbolTable = symbolTable; this.c = c; this.stream = s; init (); if (c.container () instanceof ModuleEntry) generateConst (); else if (stream != null) writeConstExpr (); }
Example #18
Source File: Terminal.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public Object evaluate () throws EvaluationException { if (value () instanceof ConstEntry) return ((ConstEntry)value ()).value ().evaluate (); else return value (); }
Example #19
Source File: Terminal.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public Object evaluate () throws EvaluationException { if (value () instanceof ConstEntry) return ((ConstEntry)value ()).value ().evaluate (); else return value (); }
Example #20
Source File: ConstGen.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Generate Java code for an IDL constant. A constant is written to * a new class only when it is not a member of an interface; otherwise * it written to the interface class in which it resides. **/ public void generate (Hashtable symbolTable, ConstEntry c, PrintWriter s) { this.symbolTable = symbolTable; this.c = c; this.stream = s; init (); if (c.container () instanceof ModuleEntry) generateConst (); else if (stream != null) writeConstExpr (); }
Example #21
Source File: Util.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Extract the global constants from the supplied integer expression * representation (string) and add them to the supplied import list. **/ static private void checkForGlobalConstants (String exprRep, Vector importTypes, Vector importList) { // NOTE: Do not use '/' as a delimiter. Symbol table names use '/' as a // delimiter and would not be otherwise properly collected. Blanks and // arithmetic symbols do not appear in tokens, except for '/'. java.util.StringTokenizer st = new java.util.StringTokenizer (exprRep, " +-*()~&|^%<>"); while (st.hasMoreTokens ()) { String token = st.nextToken (); // When token contains '/', it represents the division symbol or // a nested type (e.g., I/x). Ignore the division symbol, and don't // forget constants declared within global interfaces! if (!token.equals ("/")) { SymtabEntry typeEntry = (SymtabEntry)symbolTable.get (token); if (typeEntry instanceof ConstEntry) { int slashIdx = token.indexOf ('/'); if (slashIdx < 0) // Possible global constant { if (importTypes.contains (typeEntry)) addTo (importList, typeEntry.name ()); } else // Possible constant in global interface { SymtabEntry constContainer = (SymtabEntry)symbolTable.get (token.substring (0, slashIdx)); if (constContainer instanceof InterfaceEntry && importTypes.contains (constContainer)) addTo (importList, constContainer.name ()); } } } } }
Example #22
Source File: Util.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Extract the global constants from the supplied integer expression * representation (string) and add them to the supplied import list. **/ static private void checkForGlobalConstants (String exprRep, Vector importTypes, Vector importList) { // NOTE: Do not use '/' as a delimiter. Symbol table names use '/' as a // delimiter and would not be otherwise properly collected. Blanks and // arithmetic symbols do not appear in tokens, except for '/'. java.util.StringTokenizer st = new java.util.StringTokenizer (exprRep, " +-*()~&|^%<>"); while (st.hasMoreTokens ()) { String token = st.nextToken (); // When token contains '/', it represents the division symbol or // a nested type (e.g., I/x). Ignore the division symbol, and don't // forget constants declared within global interfaces! if (!token.equals ("/")) { SymtabEntry typeEntry = (SymtabEntry)symbolTable.get (token); if (typeEntry instanceof ConstEntry) { int slashIdx = token.indexOf ('/'); if (slashIdx < 0) // Possible global constant { if (importTypes.contains (typeEntry)) addTo (importList, typeEntry.name ()); } else // Possible constant in global interface { SymtabEntry constContainer = (SymtabEntry)symbolTable.get (token.substring (0, slashIdx)); if (constContainer instanceof InterfaceEntry && importTypes.contains (constContainer)) addTo (importList, constContainer.name ()); } } } } }
Example #23
Source File: Terminal.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public Object evaluate () throws EvaluationException { if (value () instanceof ConstEntry) return ((ConstEntry)value ()).value ().evaluate (); else return value (); }
Example #24
Source File: ConstGen.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Generate Java code for an IDL constant. A constant is written to * a new class only when it is not a member of an interface; otherwise * it written to the interface class in which it resides. **/ public void generate (Hashtable symbolTable, ConstEntry c, PrintWriter s) { this.symbolTable = symbolTable; this.c = c; this.stream = s; init (); if (c.container () instanceof ModuleEntry) generateConst (); else if (stream != null) writeConstExpr (); }
Example #25
Source File: Terminal.java From hottub with GNU General Public License v2.0 | 4 votes |
protected Terminal (ConstEntry constReference) { rep (constReference.fullName ()); value (constReference); }
Example #26
Source File: Terminal.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
protected Terminal (ConstEntry constReference) { rep (constReference.fullName ()); value (constReference); }
Example #27
Source File: DefaultExprFactory.java From hottub with GNU General Public License v2.0 | 4 votes |
public Terminal terminal (ConstEntry constReference) { return new Terminal (constReference); }
Example #28
Source File: Terminal.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
protected Terminal (ConstEntry constReference) { rep (constReference.fullName ()); value (constReference); }
Example #29
Source File: DefaultExprFactory.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public Terminal terminal (ConstEntry constReference) { return new Terminal (constReference); }
Example #30
Source File: Terminal.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
protected Terminal (ConstEntry constReference) { rep (constReference.fullName ()); value (constReference); }