-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
apex.scroll
157 lines (140 loc) · 9.95 KB
/
apex.scroll
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
import ../code/conceptPage.scroll
id apex
name Apex
appeared 2007
tags pl
website https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_intro_what_is_apex.htm
firstAnnouncement http://www.zdnet.com/article/inside-the-salesforce-apex-language/
announcementMethod interview
conceptDescription Apex is a proprietary programming language provided by the Force.com platform to developers similar to Java and C#. It is a strongly typed, object-oriented, case-insensitive programming language, following a dot-notation and curly-brackets syntax. Apex can be used to execute programmed functions during most processes on the Force.com platform including custom buttons and links, event handlers on record insertion, update, or deletion, via scheduling, or via the custom controllers of Visualforce pages. Due to the multitenant nature of the platform, the language has strictly imposed governor limitations[61] to guard against any code monopolizing shared resources. Salesforce provides a series of asynchronous processing methods for Apex to allow developers to produce longer running and more complex Apex code.
fileType text
antlr https://github.com/antlr/grammars-v4/tree/master/apex
monaco apex
rosettaCode http://www.rosettacode.org/wiki/Category:Apex
centralPackageRepositoryCount 0
originCommunity Salesforce
reference https://en.wikipedia.org/wiki/Salesforce.com#Apex
leachim6 Apex
filepath a/Apex.cls
fileExtensions cls
example
global with sharing class HelloWorld {
global static void main() {
System.debug('Hello World');
}
}
languageServerProtocolProject https://marketplace.visualstudio.com/items?itemName=salesforce.salesforcedx-vscode-apex
writtenIn typescript
keywords abstract ABSTRACT Abstract activate ACTIVATE Activate and AND And any ANY Any array ARRAY Array as AS As asc ASC Asc assert ASSERT Assert autonomous AUTONOMOUS Autonomous begin BEGIN Begin bigdecimal BIGDECIMAL Bigdecimal blob BLOB Blob boolean BOOLEAN Boolean break BREAK Break bulk BULK Bulk by BY By case CASE Case cast CAST Cast catch CATCH Catch char CHAR Char class CLASS Class collect COLLECT Collect commit COMMIT Commit const CONST Const continue CONTINUE Continue convertcurrency CONVERTCURRENCY Convertcurrency decimal DECIMAL Decimal default DEFAULT Default delete DELETE Delete desc DESC Desc do DO Do double DOUBLE Double else ELSE Else end END End enum ENUM Enum exception EXCEPTION Exception exit EXIT Exit export EXPORT Export extends EXTENDS Extends false FALSE False final FINAL Final finally FINALLY Finally float FLOAT Float for FOR For from FROM From future FUTURE Future get GET Get global GLOBAL Global goto GOTO Goto group GROUP Group having HAVING Having hint HINT Hint if IF If implements IMPLEMENTS Implements import IMPORT Import in IN In inner INNER Inner insert INSERT Insert instanceof INSTANCEOF Instanceof int INT Int interface INTERFACE Interface into INTO Into join JOIN Join last_90_days LAST_90_DAYS Last_90_days last_month LAST_MONTH Last_month last_n_days LAST_N_DAYS Last_n_days last_week LAST_WEEK Last_week like LIKE Like limit LIMIT Limit list LIST List long LONG Long loop LOOP Loop map MAP Map merge MERGE Merge native NATIVE Native new NEW New next_90_days NEXT_90_DAYS Next_90_days next_month NEXT_MONTH Next_month next_n_days NEXT_N_DAYS Next_n_days next_week NEXT_WEEK Next_week not NOT Not null NULL Null nulls NULLS Nulls number NUMBER Number object OBJECT Object of OF Of on ON On or OR Or outer OUTER Outer override OVERRIDE Override package PACKAGE Package parallel PARALLEL Parallel pragma PRAGMA Pragma private PRIVATE Private protected PROTECTED Protected public PUBLIC Public retrieve RETRIEVE Retrieve return RETURN Return returning RETURNING Returning rollback ROLLBACK Rollback savepoint SAVEPOINT Savepoint search SEARCH Search select SELECT Select set SET Set short SHORT Short sort SORT Sort stat STAT Stat static STATIC Static strictfp STRICTFP Strictfp super SUPER Super switch SWITCH Switch synchronized SYNCHRONIZED Synchronized system SYSTEM System testmethod TESTMETHOD Testmethod then THEN Then this THIS This this_month THIS_MONTH This_month this_week THIS_WEEK This_week throw THROW Throw throws THROWS Throws today TODAY Today tolabel TOLABEL Tolabel tomorrow TOMORROW Tomorrow transaction TRANSACTION Transaction transient TRANSIENT Transient trigger TRIGGER Trigger true TRUE True try TRY Try type TYPE Type undelete UNDELETE Undelete update UPDATE Update upsert UPSERT Upsert using USING Using virtual VIRTUAL Virtual void VOID Void volatile VOLATILE Volatile webservice WEBSERVICE Webservice when WHEN When where WHERE Where while WHILE While yesterday YESTERDAY Yesterday
lineCommentToken //
multiLineCommentTokens /* */
stringToken '
booleanTokens true false
hasComments true
hasLineComments true
// A comment
hasSemanticIndentation false
hasStrings true
hasMultiLineComments true
/* A comment
*/
hasBooleans true
hasWhileLoops true
hasClasses true
hasConstants true
hasExceptions true
hasSwitch true
hasAccessModifiers true
hasInheritance true
hasConditionals true
tiobe Apex
currentRank 43
githubBigQuery Apex
repos 778
users 537
linguistGrammarRepo https://github.com/textmate/java.tmbundle
firstCommit 2004
lastCommit 2018
committerCount 21
commitCount 283
sampleCount 6
example
public class GeoUtils {
// generate a KML string given a page reference, call getContent()
// then cleanup the output.
public static string generateFromContent(PageReference pr) {
string ret = '';
try {
ret = (string) pr.getContent().toString();
ret = ret.replaceAll('"','\'' ); // get content produces quote chars \"
ret = ret.replaceAll( '&','&');// we need to escape these in the node value
} catch (exception e ) {
system.debug( 'ERROR '+e);
}
ret = ret.replaceAll('\n',' '); // must use ALL since many new line may get
ret = ret.replaceAll('\r',' '); // get these also!
// system.debug( ret); // dump the KML
return ret ;
}
public static Map<String, String> geo_response = new Map<String, String>{'200'=>'G_GEO_SUCCESS',
'400'=>'G_GEO_BAD_REQUEST',
'500'=>'G_GEO_SERVER_ERROR',
'601'=>'G_GEO_MISSING_ADDRESS',
'602'=>'G_GEO_UNKNOWN_ADDRESS',
'603'=>'G_GEO_UNAVAILABLE_ADDRESS',
'604'=>'G_GEO_UNKNOWN_DIRECTIONS',
'610'=>'G_GEO_BAD_KEY',
'620'=>'G_GEO_TOO_MANY_QUERIES'
};
public static string accountAddressString ( account acct ) {
// form an address string given an account object
string adr = acct.billingstreet + ',' + acct.billingcity + ',' + acct.billingstate;
if ( acct.billingpostalcode != null ) adr += ',' + acct.billingpostalcode;
if ( acct.billingcountry != null ) adr += ',' + acct.billingcountry;
adr = adr.replaceAll('\"', '' );
adr = adr.replaceAll('\'', '' );
adr = adr.replaceAll( '\n', ' ' );
adr = adr.replaceAll( '\r', ' ' );
system.debug( adr );
return adr;
}
public static testmethod void t1() {
PageReference pageRef = Page.kmlPreviewTemplate;
Test.setCurrentPage(pageRef);
system.assert ( GeoUtils.generateFromContent( pageRef ) != null );
Account a = new Account( name='foo', billingstreet='main', billingcity='springfield',billingstate='il',
billingpostalcode='9',billingcountry='us');
insert a;
system.assertEquals( 'main,springfield,il,9,us',accountAddressString( a) );
}
}
isbndb 19
year|publisher|title|authors|isbn13
2015|Desaware Publishing|Advanced Apex Programming for Salesforce.com and Force.com|Appleman, Dan|9781936754106
2010|Packt Publishing|Oracle Apex 4.0 Cookbook|M. van Zoest and M. van der Plas|9781849681346
2018|Desaware Publishing|Advanced Apex Programming in Salesforce|Appleman, Dan|9781936754120
2021|Desaware Publishing|Advanced Apex Programming in Salesforce|Appleman, Dan|9781936754144
2021|Desaware Publishing|Advanced Apex Programming in Salesforce|Appleman, Dan|9781936754151
2020|BPB Publications|Learning Salesforce Development with Apex: Write, Run and Deploy Apex Code with Ease (English Edition)|Battisson, Paul|9789389898187
2020-11-20T00:00:01Z|Packt Publishing|Mastering Apex Programming: A developer's guide to learning advanced techniques and best practices for building robust Salesforce applications|Battisson, Paul|9781800200920
2016|Packt Publishing|Apex Design Patterns: Harness the power of Apex design patterns to build robust and scalable code architectures on the Force.com platform|Zaa, Jitendra and Verma, Anshul|9781782173656
2013-10-25T00:00:01Z|Desaware Publishing|Advanced Apex Programming for Salesforce.com and Force.com|Appleman, Dan|9781936754076
2015|Packt Publishing|Learning Apex Programming|Kaufman, Matt and Wicherski, Michael|9781782173977
2013|Packt Publishing|Oracle APEX Cookbook, Second Edition|der Plas, Marcel van and Zoest, Michel van|9781782179689
2017|McGraw-Hill Education|Oracle Application Express: Build Powerful Data-Centric Web Apps with APEX (Oracle Press)|Geller, Arie and Spendolini, Brian|9780071843041
20150131|Packt Publishing|Learning Apex Programming|Matt Kaufman; Michael Wicherski|9781782173984
27-04-2016|Packt Publishing|Apex Design Patterns|Jitendra Zaa|9781782173663
20-11-2020|Packt Publishing|Mastering Apex Programming|Paul Battisson; Mike Wheeler|9781800204331
2010-12-14|Packt Publishing|Oracle APEX 4.0 Cookbook|Michel van Zoest and Marcel van der Plas|9781849681353
20200921|Springer Nature|Understanding Oracle APEX 20 Application Development|Edward Sciore|9781484261651
2012|Desaware Publishing|Advanced Apex Programming For Salesforce.com And Force.com|Dan Appleman|9781936754052
20170505|McGraw-Hill Professional|Oracle Application Express: Build Powerful Data-Centric Web Apps with APEX|Arie Geller; Brian Spendolini|9780071843065
githubLanguage Apex
fileExtensions cls
trendingProjectsCount 0
type programming
aceMode java
codemirrorMode clike
codemirrorMimeType text/x-java
tmScope source.java
repos 22719